public class ExpressionState extends Object
It also acts as a place for to define common utility routines that the various Ast nodes might need.
Constructor and Description |
---|
ExpressionState(EvaluationContext context) |
ExpressionState(EvaluationContext context,
SpelParserConfiguration configuration) |
ExpressionState(EvaluationContext context,
TypedValue rootObject) |
ExpressionState(EvaluationContext context,
TypedValue rootObject,
SpelParserConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
Object |
convertValue(Object value,
TypeDescriptor targetTypeDescriptor) |
Object |
convertValue(TypedValue value,
TypeDescriptor targetTypeDescriptor) |
void |
enterScope(Map<String,Object> argMap) |
void |
enterScope(String name,
Object value) |
void |
exitScope() |
Class<?> |
findType(String type) |
TypedValue |
getActiveContextObject()
The active context object is what unqualified references to properties/etc are resolved against.
|
SpelParserConfiguration |
getConfiguration() |
EvaluationContext |
getEvaluationContext() |
List<PropertyAccessor> |
getPropertyAccessors() |
TypedValue |
getRootContextObject() |
TypeComparator |
getTypeComparator() |
Object |
lookupLocalVariable(String name) |
TypedValue |
lookupVariable(String name) |
TypedValue |
operate(Operation op,
Object left,
Object right) |
void |
popActiveContextObject() |
void |
pushActiveContextObject(TypedValue obj) |
void |
setLocalVariable(String name,
Object value) |
void |
setVariable(String name,
Object value) |
public ExpressionState(EvaluationContext context)
public ExpressionState(EvaluationContext context, SpelParserConfiguration configuration)
public ExpressionState(EvaluationContext context, TypedValue rootObject)
public ExpressionState(EvaluationContext context, TypedValue rootObject, SpelParserConfiguration configuration)
public TypedValue getActiveContextObject()
public void pushActiveContextObject(TypedValue obj)
public void popActiveContextObject()
public TypedValue getRootContextObject()
public TypedValue lookupVariable(String name)
public TypeComparator getTypeComparator()
public Class<?> findType(String type) throws EvaluationException
EvaluationException
public Object convertValue(Object value, TypeDescriptor targetTypeDescriptor) throws EvaluationException
EvaluationException
public Object convertValue(TypedValue value, TypeDescriptor targetTypeDescriptor) throws EvaluationException
EvaluationException
public void exitScope()
public TypedValue operate(Operation op, Object left, Object right) throws EvaluationException
EvaluationException
public List<PropertyAccessor> getPropertyAccessors()
public EvaluationContext getEvaluationContext()
public SpelParserConfiguration getConfiguration()
Copyright © 2012. All Rights Reserved.