当前位置: 首页>>代码示例>>Java>>正文


Java ELContext.isPropertyResolved方法代码示例

本文整理汇总了Java中org.activiti.engine.impl.javax.el.ELContext.isPropertyResolved方法的典型用法代码示例。如果您正苦于以下问题:Java ELContext.isPropertyResolved方法的具体用法?Java ELContext.isPropertyResolved怎么用?Java ELContext.isPropertyResolved使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.activiti.engine.impl.javax.el.ELContext的用法示例。


在下文中一共展示了ELContext.isPropertyResolved方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: eval

import org.activiti.engine.impl.javax.el.ELContext; //导入方法依赖的package包/类
@Override
public Object eval(Bindings bindings, ELContext context) {
    Object base = prefix.eval(bindings, context);
    if (base == null) {
        return null;
    }
    Object property = getProperty(bindings, context);
    if (property == null && strict) {
        return null;
    }
    context.setPropertyResolved(false);
    Object result = context.getELResolver().getValue(context, base, property);
    if (!context.isPropertyResolved()) {
        throw new PropertyNotFoundException(LocalMessages.get("error.property.property.notfound", property, base));
    }
    return result;
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:18,代码来源:AstProperty.java

示例2: getType

import org.activiti.engine.impl.javax.el.ELContext; //导入方法依赖的package包/类
@Override
public Class<?> getType(Bindings bindings, ELContext context) {
    if (!lvalue) {
        return null;
    }
    Object base = prefix.eval(bindings, context);
    if (base == null) {
        throw new PropertyNotFoundException(LocalMessages.get("error.property.base.null", prefix));
    }
    Object property = getProperty(bindings, context);
    if (property == null && strict) {
        throw new PropertyNotFoundException(LocalMessages.get("error.property.property.notfound", "null", base));
    }
    context.setPropertyResolved(false);
    Class<?> result = context.getELResolver().getType(context, base, property);
    if (!context.isPropertyResolved()) {
        throw new PropertyNotFoundException(LocalMessages.get("error.property.property.notfound", property, base));
    }
    return result;
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:21,代码来源:AstProperty.java

示例3: isReadOnly

import org.activiti.engine.impl.javax.el.ELContext; //导入方法依赖的package包/类
@Override
public boolean isReadOnly(Bindings bindings, ELContext context) throws ELException {
    if (!lvalue) {
        return true;
    }
    Object base = prefix.eval(bindings, context);
    if (base == null) {
        throw new PropertyNotFoundException(LocalMessages.get("error.property.base.null", prefix));
    }
    Object property = getProperty(bindings, context);
    if (property == null && strict) {
        throw new PropertyNotFoundException(LocalMessages.get("error.property.property.notfound", "null", base));
    }
    context.setPropertyResolved(false);
    boolean result = context.getELResolver().isReadOnly(context, base, property);
    if (!context.isPropertyResolved()) {
        throw new PropertyNotFoundException(LocalMessages.get("error.property.property.notfound", property, base));
    }
    return result;
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:21,代码来源:AstProperty.java

示例4: setValue

import org.activiti.engine.impl.javax.el.ELContext; //导入方法依赖的package包/类
@Override
public void setValue(Bindings bindings, ELContext context, Object value) throws ELException {
    if (!lvalue) {
        throw new ELException(LocalMessages.get("error.value.set.rvalue", getStructuralId(bindings)));
    }
    Object base = prefix.eval(bindings, context);
    if (base == null) {
        throw new PropertyNotFoundException(LocalMessages.get("error.property.base.null", prefix));
    }
    Object property = getProperty(bindings, context);
    if (property == null && strict) {
        throw new PropertyNotFoundException(LocalMessages.get("error.property.property.notfound", "null", base));
    }
    context.setPropertyResolved(false);
    context.getELResolver().setValue(context, base, property, value);
    if (!context.isPropertyResolved()) {
        throw new PropertyNotFoundException(LocalMessages.get("error.property.property.notfound", property, base));
    }
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:20,代码来源:AstProperty.java

示例5: invoke

import org.activiti.engine.impl.javax.el.ELContext; //导入方法依赖的package包/类
@Override
public Object invoke(Bindings bindings, ELContext context, Class<?> returnType, Class<?>[] paramTypes, Object[] paramValues) {
    Object base = property.getPrefix().eval(bindings, context);
    if (base == null) {
        throw new PropertyNotFoundException(LocalMessages.get("error.property.base.null", property.getPrefix()));
    }
    Object method = property.getProperty(bindings, context);
    if (method == null) {
        throw new PropertyNotFoundException(LocalMessages.get("error.property.method.notfound", "null", base));
    }
    String name = bindings.convert(method, String.class);
    paramValues = params.eval(bindings, context);

    context.setPropertyResolved(false);
    Object result = context.getELResolver().invoke(context, base, name, paramTypes, paramValues);
    if (!context.isPropertyResolved()) {
        throw new MethodNotFoundException(LocalMessages.get("error.property.method.notfound", name, base.getClass()));
    }
    // if (returnType != null && !returnType.isInstance(result)) { // should we check returnType for method invocations?
    // throw new MethodNotFoundException(LocalMessages.get("error.property.method.notfound", name, base.getClass()));
    // }
    return result;
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:24,代码来源:AstMethod.java

示例6: getType

import org.activiti.engine.impl.javax.el.ELContext; //导入方法依赖的package包/类
@Override
public Class<?> getType(Bindings bindings, ELContext context) {
    ValueExpression expression = bindings.getVariable(index);
    if (expression != null) {
        return expression.getType(context);
    }
    context.setPropertyResolved(false);
    Class<?> result = context.getELResolver().getType(context, null, name);
    if (!context.isPropertyResolved()) {
        throw new PropertyNotFoundException(LocalMessages.get("error.identifier.property.notfound", name));
    }
    return result;
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:14,代码来源:AstIdentifier.java

示例7: eval

import org.activiti.engine.impl.javax.el.ELContext; //导入方法依赖的package包/类
@Override
public Object eval(Bindings bindings, ELContext context) {
    ValueExpression expression = bindings.getVariable(index);
    if (expression != null) {
        return expression.getValue(context);
    }
    context.setPropertyResolved(false);
    Object result = context.getELResolver().getValue(context, null, name);
    if (!context.isPropertyResolved()) {
        throw new PropertyNotFoundException(LocalMessages.get("error.identifier.property.notfound", name));
    }
    return result;
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:14,代码来源:AstIdentifier.java

示例8: setValue

import org.activiti.engine.impl.javax.el.ELContext; //导入方法依赖的package包/类
@Override
public void setValue(Bindings bindings, ELContext context, Object value) {
    ValueExpression expression = bindings.getVariable(index);
    if (expression != null) {
        expression.setValue(context, value);
        return;
    }
    context.setPropertyResolved(false);
    context.getELResolver().setValue(context, null, name, value);
    if (!context.isPropertyResolved()) {
        throw new PropertyNotFoundException(LocalMessages.get("error.identifier.property.notfound", name));
    }
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:14,代码来源:AstIdentifier.java

示例9: isReadOnly

import org.activiti.engine.impl.javax.el.ELContext; //导入方法依赖的package包/类
@Override
public boolean isReadOnly(Bindings bindings, ELContext context) {
    ValueExpression expression = bindings.getVariable(index);
    if (expression != null) {
        return expression.isReadOnly(context);
    }
    context.setPropertyResolved(false);
    boolean result = context.getELResolver().isReadOnly(context, null, name);
    if (!context.isPropertyResolved()) {
        throw new PropertyNotFoundException(LocalMessages.get("error.identifier.property.notfound", name));
    }
    return result;
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:14,代码来源:AstIdentifier.java

示例10: resolve

import org.activiti.engine.impl.javax.el.ELContext; //导入方法依赖的package包/类
private boolean resolve(ELContext context, Object base, Object property) {
    context.setPropertyResolved(isResolvable(base) && property instanceof String);
    return context.isPropertyResolved();
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:5,代码来源:RootPropertyResolver.java


注:本文中的org.activiti.engine.impl.javax.el.ELContext.isPropertyResolved方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。