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.
|
java.lang.String |
toStringAST() |
getChild, getChildCount, getEndPosition, getObjectClass, getPreviousChild, getStartPosition, getTypedValue, getValue, getValue, getValueRef, isWritable, nextChildIs, setValuepublic Ternary(int pos,
SpelNodeImpl... args)
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException
getValueInternal in class SpelNodeImplstate - the expression stateEvaluationException - if the condition does not evaluate correctly to a
boolean or there is a problem executing the chosen alternativepublic java.lang.String toStringAST()