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

ConstructorReference

open class ConstructorReference : SpelNodeImpl

Represents the invocation of a constructor. Either a constructor on a regular type or construction of an array. When an array is constructed, an initializer can be specified.

Examples: new String('hello world') new int[]{1,2,3,4} new int[3] new int[3]{1,2,3}

Author
Andy Clement

Author
Juergen Hoeller

Since
3.0

Constructors

<init>

ConstructorReference(pos: Int, vararg arguments: SpelNodeImpl)
ConstructorReference(pos: Int, dimensions: Array<SpelNodeImpl>, vararg arguments: SpelNodeImpl)

Create a constructor reference. The first argument is the type, the rest are the parameters to the constructor call

Functions

generateCode

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

getValueInternal

open fun getValueInternal(state: ExpressionState): TypedValue

Implements getValue() - delegating to the code for building an array or a simple type.

isCompilable

open fun isCompilable(): Boolean

toStringAST

open fun toStringAST(): String