Package org.springframework.expression.spel

Examples of org.springframework.expression.spel.ExpressionState


    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 ExpressionUtils.convertTypedValue(context, typedResultValue, expectedResultType);
  }


  public Class getValueType() throws EvaluationException {
    return ast.getValueInternal(new ExpressionState(getEvaluationContext(), configuration)).getTypeDescriptor().getType();
  }
View Full Code Here

    return ast.getValueInternal(new ExpressionState(getEvaluationContext(), configuration)).getTypeDescriptor().getType();
  }

  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.getType();
  }
View Full Code Here

    TypeDescriptor typeDescriptor = ast.getValueInternal(eState).getTypeDescriptor();
    return typeDescriptor.getType();
  }

  public Class getValueType(EvaluationContext context, Object rootObject) throws EvaluationException {
    ExpressionState eState = new ExpressionState(context, toTypedValue(rootObject), configuration);
    TypeDescriptor typeDescriptor = ast.getValueInternal(eState).getTypeDescriptor();
    return typeDescriptor.getType();
  }
View Full Code Here

    TypeDescriptor typeDescriptor = ast.getValueInternal(eState).getTypeDescriptor();
    return typeDescriptor.getType();
  }

  public Class getValueType(Object rootObject) throws EvaluationException {
    return ast.getValueInternal(new ExpressionState(getEvaluationContext(), configuration)).getTypeDescriptor().getType();
  }
View Full Code Here

  public Class getValueType(Object rootObject) throws EvaluationException {
    return ast.getValueInternal(new ExpressionState(getEvaluationContext(), configuration)).getTypeDescriptor().getType();
  }

  public TypeDescriptor getValueTypeDescriptor() throws EvaluationException {
    return ast.getValueInternal(new ExpressionState(getEvaluationContext(), configuration)).getTypeDescriptor();
  }
View Full Code Here

  public TypeDescriptor getValueTypeDescriptor() throws EvaluationException {
    return ast.getValueInternal(new ExpressionState(getEvaluationContext(), configuration)).getTypeDescriptor();
  }
 
  public TypeDescriptor getValueTypeDescriptor(Object rootObject) throws EvaluationException {
    ExpressionState eState = new ExpressionState(getEvaluationContext(), toTypedValue(rootObject), configuration);
    return ast.getValueInternal(eState).getTypeDescriptor();
  }
View Full Code Here

    return ast.getValueInternal(eState).getTypeDescriptor();
  }
 
  public TypeDescriptor getValueTypeDescriptor(EvaluationContext context) throws EvaluationException {
    Assert.notNull(context, "The EvaluationContext is required");
    ExpressionState eState = new ExpressionState(context, configuration);
    return ast.getValueInternal(eState).getTypeDescriptor();
  }
View Full Code Here

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

    return expression;
  }

  public boolean isWritable(EvaluationContext context) throws EvaluationException {
    Assert.notNull(context, "The EvaluationContext is required");   
    return ast.isWritable(new ExpressionState(context, configuration));
  }
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.