Package org.activiti.engine.impl.javax.el

Examples of org.activiti.engine.impl.javax.el.ValueExpression


    }
    ValueExpression[] expressions = null;
    if (!identifiers.isEmpty()) {
      expressions = new ValueExpression[identifiers.size()];
      for (IdentifierNode node: identifiers) {
        ValueExpression expression = null;
        if (varMapper != null) {
          expression = varMapper.resolveVariable(node.getName());
        }
        expressions[node.getIndex()] = expression;
      }
View Full Code Here


  }

 
  public Expression createExpression(String expression) {
    ValueExpression valueExpression = expressionFactory.createValueExpression(parsingElContext, expression.trim(), Object.class);
    return new JuelExpression(valueExpression, expression);
  }
View Full Code Here

    }
    ValueExpression[] expressions = null;
    if (identifiers.size() > 0) {
      expressions = new ValueExpression[identifiers.size()];
      for (IdentifierNode node: identifiers) {
        ValueExpression expression = null;
        if (varMapper != null) {
          expression = varMapper.resolveVariable(node.getName());
        }
        expressions[node.getIndex()] = expression;
      }
View Full Code Here

    this.name = name;
    this.index = index;
  }

  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));
View Full Code Here

  public boolean isLiteralText() {
    return false;
  }

  public ValueReference getValueReference(Bindings bindings, ELContext context) {
    ValueExpression expression = bindings.getVariable(index);
    if (expression != null) {
      return expression.getValueReference(context);
    }
    return new ValueReference(null, name);
  }
View Full Code Here

    return new ValueReference(null, name);
  }
 
  @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));
View Full Code Here

    }
    return result;
  }

  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()) {
View Full Code Here

      throw new PropertyNotFoundException(LocalMessages.get("error.identifier.property.notfound", name));
    }
  }

  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));
View Full Code Here

  public JuelScriptEngine() {
    this(null);
  }

  public CompiledScript compile(String script) throws ScriptException {
    ValueExpression expr = parse(script, context);
    return new JuelCompiledScript(expr);
  }
View Full Code Here

    // Create a String based on the reader and complile it
    return compile(readFully(reader));
  }

  public Object eval(String script, ScriptContext scriptContext) throws ScriptException {
    ValueExpression expr = parse(script, scriptContext);
    return evaluateExpression(expr, scriptContext);
  }
View Full Code Here

TOP

Related Classes of org.activiti.engine.impl.javax.el.ValueExpression

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.