#someVar.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | generateCode(MethodVisitor
the ASM MethodVisitor into which code should be generated mv, CodeFlow a context object with info about what is on the stack cf)Overrides org. |
| public TypedValue | getValueInternal(ExpressionState state)
Implements abstract org. |
| public ValueRef | |
| public boolean | isCompilable()
Overrides org. |
| public boolean | isWritable(ExpressionState
the current expression state (includes the context) expressionState)Overrides org. Implements org. |
| public TypedValue | setValueInternal(ExpressionState
the current expression state (includes the context) state, Supplier<TypedValue> a supplier of the new value valueSupplier)Overrides org. Supplier on that node.
|
| public String | toStringAST()
Implements org. |
| name | back to summary |
|---|---|
| private final String name | |
| ROOT | back to summary |
|---|---|
| private static final String ROOT | |
| THIS | back to summary |
|---|---|
| private static final String THIS | |
| VariableReference | back to summary |
|---|---|
| public VariableReference(String variableName, int startPos, int endPos) | |
| generateCode | back to summary |
|---|---|
| public void generateCode(MethodVisitor mv, CodeFlow cf) Overrides org. Doc from org. Generate the bytecode for this node into the supplied visitor. Context info about the current expression being compiled is available in the codeflow object, e.g. including information about the type of the object currently on the stack.
| |
| getValueInternal | back to summary |
|---|---|
| public TypedValue getValueInternal(ExpressionState state) throws SpelEvaluationException Implements abstract org.
| |
| getValueRef | back to summary |
|---|---|
| public ValueRef getValueRef(ExpressionState state) throws SpelEvaluationException Overrides org.
| |
| isCompilable | back to summary |
|---|---|
| public boolean isCompilable() Overrides org. Doc from org. Check whether a node can be compiled to bytecode. The reasoning in each node may be different but will typically involve checking whether the exit type descriptor of the node is known and any relevant child nodes are compilable.
| |
| isWritable | back to summary |
|---|---|
| public boolean isWritable(ExpressionState expressionState) throws SpelEvaluationException Overrides org. Implements org. Doc from org. Determine if this expression node will support a setValue() call.
| |
| setValueInternal | back to summary |
|---|---|
| public TypedValue setValueInternal(ExpressionState state, Supplier<TypedValue> valueSupplier) throws EvaluationException Overrides org. Doc from org. Evaluate the expression to a node and then set the new value created by the
specified For example, if the expression evaluates to a property reference, then the property will be set to the new value. Favor this method over By default, this method throws a
| |
| toStringAST | back to summary |
|---|---|
| public String toStringAST() Implements org. Doc from org. Return the string form of this AST node. | |
| Modifier and Type | Field and Description |
|---|---|
| private final EvaluationContext | |
| private final String | |
| private final TypedValue |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public TypedValue | getValue()
Implements org. |
| public boolean | isWritable()
Implements org. |
| public void | setValue(Object
the new value newValue)Implements org. |
| evaluationContext | back to summary |
|---|---|
| private final EvaluationContext evaluationContext | |
| name | back to summary |
|---|---|
| private final String name | |
| value | back to summary |
|---|---|
| private final TypedValue value | |
| VariableRef | back to summary |
|---|---|
| public VariableRef(String name, TypedValue value, EvaluationContext evaluationContext) | |
| getValue | back to summary |
|---|---|
| public TypedValue getValue() Implements org. Doc from org. Returns the value this ValueRef points to, it should not require expression component re-evaluation.
| |
| isWritable | back to summary |
|---|---|
| public boolean isWritable() Implements org. Doc from org. Indicates whether calling setValue(Object) is supported.
| |
| setValue | back to summary |
|---|---|
| public void setValue(Object newValue) Implements org. Doc from org. Sets the value this ValueRef points to, it should not require expression component re-evaluation. | |