public class CompoundExpression extends SpelNodeImpl
children, pos
Constructor and Description |
---|
CompoundExpression(int pos,
SpelNodeImpl... expressionComponents) |
Modifier and Type | Method and Description |
---|---|
TypedValue |
getValueInternal(ExpressionState state)
Evaluates a compound expression.
|
protected ValueRef |
getValueRef(ExpressionState state) |
boolean |
isWritable(ExpressionState state)
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 CompoundExpression(int pos, SpelNodeImpl... expressionComponents)
protected ValueRef getValueRef(ExpressionState state) throws EvaluationException
getValueRef
in class SpelNodeImpl
EvaluationException
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException
getValueInternal
in class SpelNodeImpl
state
- the state in which the expression is being evaluatedEvaluationException
public void setValue(ExpressionState state, Object value) throws EvaluationException
SpelNode
setValue
in interface SpelNode
setValue
in class SpelNodeImpl
state
- the current expression state (includes the context)value
- the new valueEvaluationException
- if any problem occurs evaluating the expression or setting the new valuepublic boolean isWritable(ExpressionState state) throws EvaluationException
SpelNode
isWritable
in interface SpelNode
isWritable
in class SpelNodeImpl
state
- the current expression state (includes the context)EvaluationException
- if something went wrong trying to determine if the node supports writingpublic String toStringAST()
toStringAST
in interface SpelNode
toStringAST
in class SpelNodeImpl