Package org.springframework.expression.spel

Examples of org.springframework.expression.spel.ExpressionState


    ast.setValue(new ExpressionState(getEvaluationContext(), toTypedValue(rootObject), configuration), value);
  }
 
  public void setValue(EvaluationContext context, Object rootObject, Object value) throws EvaluationException {
    Assert.notNull(context, "The EvaluationContext is required");   
    ast.setValue(new ExpressionState(context, toTypedValue(rootObject), configuration), value);
  }
View Full Code Here



  // implementing Expression
 
  public Object getValue() throws EvaluationException {
    ExpressionState expressionState = new ExpressionState(getEvaluationContext(), configuration);
    return ast.getValue(expressionState);
  }
View Full Code Here

    ExpressionState expressionState = new ExpressionState(getEvaluationContext(), configuration);
    return ast.getValue(expressionState);
  }

  public Object getValue(Object rootObject) throws EvaluationException {
    ExpressionState expressionState = new ExpressionState(getEvaluationContext(), toTypedValue(rootObject), configuration);
    return ast.getValue(expressionState);
  }
View Full Code Here

    ExpressionState expressionState = new ExpressionState(getEvaluationContext(), toTypedValue(rootObject), configuration);
    return ast.getValue(expressionState);
  }

  public <T> T getValue(Class<T> expectedResultType) throws EvaluationException {
    ExpressionState expressionState = new ExpressionState(getEvaluationContext(), configuration);
    TypedValue typedResultValue = ast.getTypedValue(expressionState);
    return ExpressionUtils.convertTypedValue(expressionState.getEvaluationContext(), typedResultValue, expectedResultType);
  }
View Full Code Here

    TypedValue typedResultValue = ast.getTypedValue(expressionState);
    return ExpressionUtils.convertTypedValue(expressionState.getEvaluationContext(), typedResultValue, expectedResultType);
  }

  public <T> T getValue(Object rootObject, Class<T> expectedResultType) throws EvaluationException {
    ExpressionState expressionState = new ExpressionState(getEvaluationContext(), toTypedValue(rootObject), configuration);
    TypedValue typedResultValue = ast.getTypedValue(expressionState);
    return ExpressionUtils.convertTypedValue(expressionState.getEvaluationContext(), typedResultValue, expectedResultType);
  }
View Full Code Here

    return ExpressionUtils.convertTypedValue(expressionState.getEvaluationContext(), typedResultValue, expectedResultType);
  }

  public Object getValue(EvaluationContext context) throws EvaluationException {
    Assert.notNull(context, "The EvaluationContext is required");
    return ast.getValue(new ExpressionState(context, configuration));
  }
View Full Code Here

    return ast.getValue(new ExpressionState(context, configuration));
  }
 
  public Object getValue(EvaluationContext context, Object rootObject) throws EvaluationException {
    Assert.notNull(context, "The EvaluationContext is required");
    return ast.getValue(new ExpressionState(context, toTypedValue(rootObject), configuration));
  }
View Full Code Here

    Assert.notNull(context, "The EvaluationContext is required");
    return ast.getValue(new ExpressionState(context, toTypedValue(rootObject), configuration));
  }

  public <T> T getValue(EvaluationContext context, Class<T> expectedResultType) throws EvaluationException {
    TypedValue typedResultValue = ast.getTypedValue(new ExpressionState(context, configuration));
    return ExpressionUtils.convertTypedValue(context, typedResultValue, expectedResultType);
  }
View Full Code Here

    TypedValue typedResultValue = ast.getTypedValue(new ExpressionState(context, configuration));
    return ExpressionUtils.convertTypedValue(context, typedResultValue, expectedResultType);
  }
 
  public <T> T getValue(EvaluationContext context, Object rootObject, Class<T> expectedResultType) throws EvaluationException {
    TypedValue typedResultValue = ast.getTypedValue(new ExpressionState(context, toTypedValue(rootObject), configuration));
    return ExpressionUtils.convertTypedValue(context, typedResultValue, expectedResultType);
  }
View Full Code Here

    return getValueType(getEvaluationContext(), rootObject);
  }

  public Class getValueType(EvaluationContext context) throws EvaluationException {
    Assert.notNull(context, "The EvaluationContext is required");
    ExpressionState eState = new ExpressionState(context, configuration);
    TypeDescriptor typeDescriptor = ast.getValueInternal(eState).getTypeDescriptor();
    return typeDescriptor != null ? typeDescriptor.getType() : null;
  }
View Full Code Here

TOP

Related Classes of org.springframework.expression.spel.ExpressionState

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.