public class

ConstructorReference

extends SpelNodeImpl
java.lang.Object
   ↳ org.springframework.expression.spel.ast.SpelNodeImpl
     ↳ org.springframework.expression.spel.ast.ConstructorReference

Class Overview

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}

Summary

[Expand]
Inherited Fields
From class org.springframework.expression.spel.ast.SpelNodeImpl
Public Constructors
ConstructorReference(int pos, SpelNodeImpl... arguments)
Create a constructor reference.
ConstructorReference(int pos, SpelNodeImpl[] dimensions, SpelNodeImpl... arguments)
Create a constructor reference.
Public Methods
TypedValue getValueInternal(ExpressionState state)
Implements getValue() - delegating to the code for building an array or a simple type.
String toStringAST()
[Expand]
Inherited Methods
From class org.springframework.expression.spel.ast.SpelNodeImpl
From class java.lang.Object
From interface org.springframework.expression.spel.SpelNode

Public Constructors

public ConstructorReference (int pos, SpelNodeImpl... arguments)

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

public ConstructorReference (int pos, SpelNodeImpl[] dimensions, SpelNodeImpl... arguments)

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

Public Methods

public TypedValue getValueInternal (ExpressionState state)

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

public String toStringAST ()