public class Elvis extends SpelNodeImpl
children, pos
Constructor and Description |
---|
Elvis(int pos,
SpelNodeImpl... args) |
Modifier and Type | Method and Description |
---|---|
TypedValue |
getValueInternal(ExpressionState state)
Evaluate the condition and if not null, return it.
|
String |
toStringAST() |
getChild, getChildCount, getEndPosition, getObjectClass, getPreviousChild, getStartPosition, getTypedValue, getValue, getValue, getValueRef, isWritable, nextChildIs, setValue
public Elvis(int pos, SpelNodeImpl... args)
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException
getValueInternal
in class SpelNodeImpl
state
- the expression stateEvaluationException
- if the condition does not evaluate correctly to a boolean or there is a problem
executing the chosen alternativepublic String toStringAST()
toStringAST
in interface SpelNode
toStringAST
in class SpelNodeImpl