public class Indexer extends SpelNodeImpl
children, pos
Constructor and Description |
---|
Indexer(int pos,
SpelNodeImpl expr) |
Modifier and Type | Method and Description |
---|---|
TypedValue |
getValueInternal(ExpressionState state) |
protected ValueRef |
getValueRef(ExpressionState state) |
boolean |
isWritable(ExpressionState expressionState)
Determine if this expression node will support a setValue() call.
|
void |
setValue(ExpressionState state,
Object newValue)
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 Indexer(int pos, SpelNodeImpl expr)
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException
getValueInternal
in class SpelNodeImpl
EvaluationException
public void setValue(ExpressionState state, Object newValue) throws EvaluationException
SpelNode
setValue
in interface SpelNode
setValue
in class SpelNodeImpl
state
- the current expression state (includes the context)newValue
- the new valueEvaluationException
- if any problem occurs evaluating the expression or setting the new valuepublic boolean isWritable(ExpressionState expressionState) throws SpelEvaluationException
SpelNode
isWritable
in interface SpelNode
isWritable
in class SpelNodeImpl
expressionState
- the current expression state (includes the context)SpelEvaluationException
protected ValueRef getValueRef(ExpressionState state) throws EvaluationException
getValueRef
in class SpelNodeImpl
EvaluationException
public String toStringAST()
toStringAST
in interface SpelNode
toStringAST
in class SpelNodeImpl