spring-framework / org.springframework.expression.spel.ast / Ternary

Ternary

open class Ternary : SpelNodeImpl

Represents a ternary expression, for example: "someCheck()?true:false".

Author
Andy Clement

Author
Juergen Hoeller

Since
3.0

Constructors

<init>

Ternary(pos: Int, vararg args: SpelNodeImpl)

Functions

generateCode

open fun generateCode(mv: MethodVisitor, cf: CodeFlow): Unit

getValueInternal

open fun getValueInternal(state: ExpressionState): TypedValue

Evaluate the condition and if true evaluate the first alternative, otherwise evaluate the second alternative.

isCompilable

open fun isCompilable(): Boolean

toStringAST

open fun toStringAST(): String