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

Elvis

open class Elvis : SpelNodeImpl

Represents the elvis operator ?:. For an expression "a?:b" if a is not null, the value of the expression is "a", if a is null then the value of the expression is "b".

Author
Andy Clement

Author
Juergen Hoeller

Since
3.0

Constructors

<init>

Elvis(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 not null, return it. If it is null, return the other value.

isCompilable

open fun isCompilable(): Boolean

toStringAST

open fun toStringAST(): String