public class VariableReference extends SpelNodeImpl
children, pos
Constructor and Description |
---|
VariableReference(String variableName,
int pos) |
Modifier and Type | Method and Description |
---|---|
TypedValue |
getValueInternal(ExpressionState state) |
ValueRef |
getValueRef(ExpressionState state) |
boolean |
isWritable(ExpressionState expressionState)
Determine if this expression node will support a setValue() call.
|
void |
setValue(ExpressionState state,
Object value)
Evaluate the expression to a node and then set the new value on that node.
|
String |
toStringAST() |
getChild, getChildCount, getEndPosition, getObjectClass, getPreviousChild, getStartPosition, getTypedValue, getValue, getValue, nextChildIs
public VariableReference(String variableName, int pos)
public ValueRef getValueRef(ExpressionState state) throws SpelEvaluationException
getValueRef
in class SpelNodeImpl
SpelEvaluationException
public TypedValue getValueInternal(ExpressionState state) throws SpelEvaluationException
getValueInternal
in class SpelNodeImpl
SpelEvaluationException
public void setValue(ExpressionState state, Object value) throws SpelEvaluationException
SpelNode
setValue
in interface SpelNode
setValue
in class SpelNodeImpl
state
- the current expression state (includes the context)value
- the new valueSpelEvaluationException
public String toStringAST()
public boolean isWritable(ExpressionState expressionState) throws SpelEvaluationException
SpelNode
isWritable
in interface SpelNode
isWritable
in class SpelNodeImpl
expressionState
- the current expression state (includes the context)SpelEvaluationException