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

Selection

open class Selection : SpelNodeImpl

Represents selection over a map or collection. For example: {1,2,3,4,5,6,7,8,9,10}.?{#isEven(#this) == 'y'} returns [2, 4, 6, 8, 10]

Basically a subset of the input data is returned based on the evaluation of the expression supplied as selection criteria.

Author
Andy Clement

Author
Mark Fisher

Author
Sam Brannen

Author
Juergen Hoeller

Since
3.0

Constructors

<init>

Selection(nullSafe: Boolean, variant: Int, pos: Int, expression: SpelNodeImpl)

Properties

ALL

static val ALL: Int

FIRST

static val FIRST: Int

LAST

static val LAST: Int

Functions

getValueInternal

open fun getValueInternal(state: ExpressionState): TypedValue

toStringAST

open fun toStringAST(): String