Java org.eclipse.jdt.core.dom ClassInstanceCreation fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core.dom ClassInstanceCreation fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core.dom ClassInstanceCreation.

The text is from its open source code.

Field

ChildPropertyDescriptorNAME_PROPERTY
The "name" structural property of this node type (child type: Name ) (JLS2 API only).
ChildPropertyDescriptorTYPE_PROPERTY
The "type" structural property of this node type (child type: Type ) (added in JLS3 API).
ChildListPropertyDescriptorARGUMENTS_PROPERTY
The "arguments" structural property of this node type (element type: Expression ).
ASTNode.NodeListtypeArguments
The type arguments (element type: Type ).
ASTNode.NodeListarguments
The list of argument expressions (element type: Expression ).

Constructor

ClassInstanceCreation(AST ast)
Creates a new AST node for a class instance creation expression owned by the given AST.

Method

AnonymousClassDeclarationgetAnonymousClassDeclaration()
Returns the anonymous class declaration introduced by this class instance creation expression, if it has one.
ExpressiongetExpression()
Returns the expression of this class instance creation expression, or null if there is none.
NamegetName()
Returns the name of the type instantiated in this class instance creation expression (JLS2 API only).
TypegetType()
Returns the type instantiated in this class instance creation expression (added in JLS3 API).
voidinternalSetName(Name name)
Internal synonym for deprecated method.
booleanisResolvedTypeInferredFromExpectedType()
Returns true if the resolved class type has been inferred from the assignment context (JLS4 15.12.2.8), false otherwise.
IMethodBindingresolveConstructorBinding()
Resolves and returns the binding for the constructor invoked by this expression.
voidsetAnonymousClassDeclaration(AnonymousClassDeclaration decl)
Sets whether this class instance creation expression declares an anonymous class (that is, has class body declarations).
voidsetExpression(Expression expression)
Sets or clears the expression of this class instance creation expression.
voidsetType(Type type)
Sets the type instantiated in this class instance creation expression (added in JLS3 API).