public class

ExpressionState

extends Object
java.lang.Object
   ↳ org.springframework.expression.spel.ExpressionState

Class Overview

An ExpressionState is for maintaining per-expression-evaluation state, any changes to it are not seen by other expressions but it gives a place to hold local variables and for component expressions in a compound expression to communicate state. This is in contrast to the EvaluationContext, which is shared amongst expression evaluations, and any changes to it will be seen by other expressions or any code that chooses to ask questions of the context.

It also acts as a place for to define common utility routines that the various Ast nodes might need.

Summary

Public Constructors
ExpressionState(EvaluationContext context)
ExpressionState(EvaluationContext context, SpelParserConfiguration configuration)
ExpressionState(EvaluationContext context, TypedValue rootObject)
ExpressionState(EvaluationContext context, TypedValue rootObject, SpelParserConfiguration configuration)
Public Methods
Object convertValue(Object value, TypeDescriptor targetTypeDescriptor)
Object convertValue(TypedValue value, TypeDescriptor targetTypeDescriptor)
void enterScope(String name, Object value)
void enterScope(Map<StringObject> argMap)
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)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

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 Methods

public Object convertValue (Object value, TypeDescriptor targetTypeDescriptor)

public Object convertValue (TypedValue value, TypeDescriptor targetTypeDescriptor)

public void enterScope (String name, Object value)

public void enterScope (Map<StringObject> argMap)

public void exitScope ()

public Class<?> findType (String type)

public TypedValue getActiveContextObject ()

The active context object is what unqualified references to properties/etc are resolved against.

public SpelParserConfiguration getConfiguration ()

public EvaluationContext getEvaluationContext ()

public List<PropertyAccessor> getPropertyAccessors ()

public TypedValue getRootContextObject ()

public TypeComparator getTypeComparator ()

public Object lookupLocalVariable (String name)

public TypedValue lookupVariable (String name)

public TypedValue operate (Operation op, Object left, Object right)

public void popActiveContextObject ()

public void pushActiveContextObject (TypedValue obj)

public void setLocalVariable (String name, Object value)

public void setVariable (String name, Object value)