Top Description Fields Constructors Methods
org.springframework.expression.spel.ast

public Class Projection

extends SpelNodeImpl
Class Inheritance
Imports
java.lang.reflect.Array, java.util.ArrayList, .Arrays, .List, .Map, org.springframework.expression.EvaluationException, .TypedValue, org.springframework.expression.spel.ExpressionState, .SpelEvaluationException, .SpelMessage, org.springframework.lang.Nullable, org.springframework.util.ClassUtils, .ObjectUtils

Represents projection, where a given operation is performed on all elements in some input sequence, returning a new sequence of the same size. For example: "{1,2,3,4,5,6,7,8,9,10}.!{#isEven(#this)}" returns "[n, y, n, y, n, y, n, y, n, y]"
Authors
Andy Clement, Mark Fisher, Juergen Hoeller
Since
3.0

Field Summary

Modifier and TypeField and Description
private final boolean
Inherited from org.springframework.expression.spel.ast.SpelNodeImpl:
childrenexitTypeDescriptor

Constructor Summary

AccessConstructor and Description
public
Projection(boolean nullSafe, int startPos, int endPos, SpelNodeImpl expression)

Method Summary

Modifier and TypeMethod and Description
private Class<?>
determineCommonType(Class<?> oldType, Class<?> newType)

public TypedValue
protected ValueRef
public String
toStringAST()

Implements org.springframework.expression.spel.SpelNode.toStringAST.

Return the string form of this AST node.

Inherited from org.springframework.expression.spel.ast.SpelNodeImpl:
generateCodegenerateCodeForArgumentgenerateCodeForArgumentsgetChildgetChildCountgetEndPositiongetExitDescriptorgetObjectClassgetStartPositiongetTypedValuegetValuegetValueisCompilableisWritablenextChildIssetValuesetValueInternal

Field Detail

nullSafeback to summary
private final boolean nullSafe

Constructor Detail

Projectionback to summary
public Projection(boolean nullSafe, int startPos, int endPos, SpelNodeImpl expression)

Method Detail

determineCommonTypeback to summary
private Class<?> determineCommonType(Class<?> oldType, Class<?> newType)
getValueInternalback to summary
public TypedValue getValueInternal(ExpressionState state) throws EvaluationException

Implements abstract org.springframework.expression.spel.ast.SpelNodeImpl.getValueInternal.

Annotations
@Override
getValueRefback to summary
protected ValueRef getValueRef(ExpressionState state) throws EvaluationException

Overrides org.springframework.expression.spel.ast.SpelNodeImpl.getValueRef.

Annotations
@Override
toStringASTback to summary
public String toStringAST()

Implements org.springframework.expression.spel.SpelNode.toStringAST.

Doc from org.springframework.expression.spel.SpelNode.toStringAST.

Return the string form of this AST node.

Returns:String

the string form

Annotations
@Override