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, nextChildIspublic VariableReference(String variableName, int pos)
public ValueRef getValueRef(ExpressionState state) throws SpelEvaluationException
getValueRef in class SpelNodeImplSpelEvaluationExceptionpublic TypedValue getValueInternal(ExpressionState state) throws SpelEvaluationException
getValueInternal in class SpelNodeImplSpelEvaluationExceptionpublic void setValue(ExpressionState state, Object value) throws SpelEvaluationException
SpelNodesetValue in interface SpelNodesetValue in class SpelNodeImplstate - the current expression state (includes the context)value - the new valueSpelEvaluationExceptionpublic String toStringAST()
toStringAST in interface SpelNodetoStringAST in class SpelNodeImplpublic boolean isWritable(ExpressionState expressionState) throws SpelEvaluationException
SpelNodeisWritable in interface SpelNodeisWritable in class SpelNodeImplexpressionState - the current expression state (includes the context)SpelEvaluationException