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

OperatorInstanceof

open class OperatorInstanceof : Operator

The operator 'instanceof' checks if an object is of the class specified in the right hand operand, in the same way that instanceof does in Java.

Author
Andy Clement

Since
3.0

Constructors

<init>

OperatorInstanceof(pos: Int, vararg operands: SpelNodeImpl)

Functions

generateCode

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

getValueInternal

open fun getValueInternal(state: ExpressionState): BooleanTypedValue

Compare the left operand to see it is an instance of the type specified as the right operand. The right operand must be a class.

isCompilable

open fun isCompilable(): Boolean