public class Ternary extends SpelNodeImpl
children, pos
Constructor and Description |
---|
Ternary(int pos,
SpelNodeImpl... args) |
Modifier and Type | Method and Description |
---|---|
TypedValue |
getValueInternal(ExpressionState state)
Evaluate the condition and if true evaluate the first alternative, otherwise
evaluate the second alternative.
|
String |
toStringAST() |
getChild, getChildCount, getEndPosition, getObjectClass, getPreviousChild, getStartPosition, getTypedValue, getValue, getValue, getValueRef, isWritable, nextChildIs, setValue
public Ternary(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()