org.springframework.expression.spel.ast
Class ConstructorReference

java.lang.Object
  extended by org.antlr.runtime.tree.BaseTree
      extended by org.antlr.runtime.tree.CommonTree
          extended by org.springframework.expression.spel.ast.SpelNodeImpl
              extended by org.springframework.expression.spel.ast.ConstructorReference
All Implemented Interfaces:
java.io.Serializable, org.antlr.runtime.tree.Tree, CommonTypeDescriptors, SpelNode

public class ConstructorReference
extends 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}

Since:
3.0
Author:
Andy Clement, Juergen Hoeller
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.antlr.runtime.tree.CommonTree
startIndex, stopIndex, token
 
Fields inherited from class org.antlr.runtime.tree.BaseTree
children
 
Fields inherited from interface org.springframework.expression.spel.ast.CommonTypeDescriptors
BOOLEAN_TYPE_DESCRIPTOR, BYTE_TYPE_DESCRIPTOR, CHARACTER_TYPE_DESCRIPTOR, CLASS_TYPE_DESCRIPTOR, DOUBLE_TYPE_DESCRIPTOR, FLOAT_TYPE_DESCRIPTOR, INTEGER_TYPE_DESCRIPTOR, LONG_TYPE_DESCRIPTOR, OBJECT_TYPE_DESCRIPTOR, SHORT_TYPE_DESCRIPTOR, STRING_TYPE_DESCRIPTOR
 
Fields inherited from interface org.antlr.runtime.tree.Tree
INVALID_NODE
 
Constructor Summary
ConstructorReference(org.antlr.runtime.Token payload)
           
 
Method Summary
 TypedValue getValueInternal(ExpressionState state)
          Implements getValue() - delegating to the code for building an array or a simple type.
 java.lang.String toStringAST()
           
 
Methods inherited from class org.springframework.expression.spel.ast.SpelNodeImpl
getChild, getObjectClass, getStartPosition, getTokenName, getValue, getValue, isWritable, setValue
 
Methods inherited from class org.antlr.runtime.tree.CommonTree
dupNode, getCharPositionInLine, getLine, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setTokenStartIndex, setTokenStopIndex, toString
 
Methods inherited from class org.antlr.runtime.tree.BaseTree
addChild, addChildren, createChildrenList, deleteChild, dupTree, getChildCount, getFirstChildWithType, setChild, toStringTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.expression.spel.SpelNode
getChildCount
 

Constructor Detail

ConstructorReference

public ConstructorReference(org.antlr.runtime.Token payload)
Method Detail

getValueInternal

public TypedValue getValueInternal(ExpressionState state)
                            throws EvaluationException
Implements getValue() - delegating to the code for building an array or a simple type.

Specified by:
getValueInternal in class SpelNodeImpl
Throws:
EvaluationException

toStringAST

public java.lang.String toStringAST()
Specified by:
toStringAST in interface SpelNode
Specified by:
toStringAST in class SpelNodeImpl
Returns:
the string form of this AST node