Class ClassInstanceCreation

java.lang.Object
org.aspectj.org.eclipse.jdt.core.dom.ASTNode
org.aspectj.org.eclipse.jdt.core.dom.Expression
org.aspectj.org.eclipse.jdt.core.dom.ClassInstanceCreation

public class ClassInstanceCreation extends Expression
Class instance creation expression AST node type.
 ClassInstanceCreation:
        [ Expression . ]
            new [ < Type { , Type } > ]
            Type ( [ Expression { , Expression } ] )
            [ AnonymousClassDeclaration ]
 

Not all node arrangements will represent legal Java constructs. In particular, it is nonsense if the type is a primitive type or an array type (primitive types cannot be instantiated, and array creations must be represented with ArrayCreation nodes). The normal use is when the type is a simple, qualified, or parameterized type.

QualifiedType discusses typical representations of qualified type references.

Since:
2.0