It also acts as a place to define common utility routines that the various AST nodes might need.
| Modifier and Type | Class and Description |
|---|---|
| private static class | ExpressionState.VariableScope
A new scope is entered when a function is called and it is used to hold the parameters to the function call. |
| Modifier and Type | Field and Description |
|---|---|
| private final SpelParserConfiguration | |
| private Deque | |
| private final EvaluationContext | |
| private final TypedValue | |
| private ArrayDeque | |
| private Deque |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | ExpressionState(EvaluationContext context, TypedValue rootObject, SpelParserConfiguration configuration)
|
| Modifier and Type | Method and Description |
|---|---|
| public TypedValue | Returns: aTypedValue wrapping the assigned valuethe name of the variable to assign name, Supplier<TypedValue> the supplier of the value to be assigned to the variable valueSupplier)Assign the value created by the specified |
| public Object | |
| public Object | |
| public void | |
| public void | |
| public void | |
| public void | |
| public Class | |
| public TypedValue | getActiveContextObject()
The active context object is what unqualified references to properties/etc are resolved against. |
| public SpelParserConfiguration | |
| public EvaluationContext | |
| public List | |
| public TypedValue | |
| public TypedValue | |
| public TypeComparator | |
| public TypeConverter | |
| private Deque | |
| private Deque | |
| public Object | |
| public TypedValue | |
| public TypedValue | |
| public void | |
| public void | |
| public void | |
| public void | setVariable(String
the name of the variable to set name, Object the value to be placed in the variable value)Set a named variable in the evaluation context to a specified value. |
| configuration | back to summary |
|---|---|
| private final SpelParserConfiguration configuration | |
| contextObjects | back to summary |
|---|---|
| private Deque<TypedValue> contextObjects
| |
| relatedContext | back to summary |
|---|---|
| private final EvaluationContext relatedContext | |
| rootObject | back to summary |
|---|---|
| private final TypedValue rootObject | |
| scopeRootObjects | back to summary |
|---|---|
| private ArrayDeque<TypedValue> scopeRootObjects
| |
| variableScopes | back to summary |
|---|---|
| private Deque<ExpressionState. | |
| ExpressionState | back to summary |
|---|---|
| public ExpressionState(EvaluationContext context) | |
| ExpressionState | back to summary |
|---|---|
| public ExpressionState(EvaluationContext context, SpelParserConfiguration configuration) | |
| ExpressionState | back to summary |
|---|---|
| public ExpressionState(EvaluationContext context, TypedValue rootObject) | |
| ExpressionState | back to summary |
|---|---|
| public ExpressionState(EvaluationContext context, TypedValue rootObject, SpelParserConfiguration configuration) | |
| assignVariable | back to summary |
|---|---|
| public TypedValue assignVariable(String name, Supplier<TypedValue> valueSupplier) Assign the value created by the specified In contrast to
| |
| convertValue | back to summary |
|---|---|
| public Object convertValue(Object value, TypeDescriptor targetTypeDescriptor) throws EvaluationException | |
| convertValue | back to summary |
|---|---|
public Object convertValue(TypedValue value, TypeDescriptor targetTypeDescriptor) throws EvaluationException
| |
| enterScope | back to summary |
|---|---|
| public void enterScope(Map<String, Object> argMap) | |
| enterScope | back to summary |
|---|---|
| public void enterScope() | |
| enterScope | back to summary |
|---|---|
| public void enterScope(String name, Object value) | |
| exitScope | back to summary |
|---|---|
| public void exitScope() | |
| findType | back to summary |
|---|---|
| public Class | |
| getActiveContextObject | back to summary |
|---|---|
| public TypedValue getActiveContextObject() The active context object is what unqualified references to properties/etc are resolved against. | |
| getConfiguration | back to summary |
|---|---|
| public SpelParserConfiguration getConfiguration() | |
| getEvaluationContext | back to summary |
|---|---|
| public EvaluationContext getEvaluationContext() | |
| getPropertyAccessors | back to summary |
|---|---|
| public List | |
| getRootContextObject | back to summary |
|---|---|
| public TypedValue getRootContextObject() | |
| getScopeRootContextObject | back to summary |
|---|---|
| public TypedValue getScopeRootContextObject() | |
| getTypeComparator | back to summary |
|---|---|
| public TypeComparator getTypeComparator() | |
| getTypeConverter | back to summary |
|---|---|
| public TypeConverter getTypeConverter() | |
| initScopeRootObjects | back to summary |
|---|---|
| private Deque | |
| initVariableScopes | back to summary |
|---|---|
| private Deque | |
| lookupLocalVariable | back to summary |
|---|---|
public Object lookupLocalVariable(String name)
| |
| lookupVariable | back to summary |
|---|---|
| public TypedValue lookupVariable(String name) | |
| operate | back to summary |
|---|---|
| public TypedValue operate(Operation op, Object left, Object right) throws EvaluationException | |
| popActiveContextObject | back to summary |
|---|---|
| public void popActiveContextObject() | |
| pushActiveContextObject | back to summary |
|---|---|
| public void pushActiveContextObject(TypedValue obj) | |
| setLocalVariable | back to summary |
|---|---|
| public void setLocalVariable(String name, Object value) | |
| setVariable | back to summary |
|---|---|
| public void setVariable(String name, Object value) Set a named variable in the evaluation context to a specified value. In contrast to
| |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Object | |
| public void |
| vars | back to summary |
|---|---|
| private final Map<String, Object> vars | |
| VariableScope | back to summary |
|---|---|
| public VariableScope() | |
| VariableScope | back to summary |
|---|---|
| public VariableScope(Map<String, Object> arguments) | |
| VariableScope | back to summary |
|---|---|
| public VariableScope(String name, Object value) | |
| definesVariable | back to summary |
|---|---|
| public boolean definesVariable(String name) | |
| lookupVariable | back to summary |
|---|---|
public Object lookupVariable(String name)
| |
| setVariable | back to summary |
|---|---|
| public void setVariable(String name, Object value) | |