Class ObjectCreationExpr

All Implemented Interfaces:
NodeWithArguments<ObjectCreationExpr>, NodeWithOptionalScope<ObjectCreationExpr>, NodeWithRange<Node>, NodeWithTokenRange<Node>, NodeWithTraversableScope, NodeWithType<ObjectCreationExpr,​ClassOrInterfaceType>, NodeWithTypeArguments<ObjectCreationExpr>, Observable, Visitable, HasParentNode<Node>, Resolvable<ResolvedConstructorDeclaration>, Cloneable

A constructor call.
In new HashMap.Entry<String, Long>(15) {public String getKey() {return null;}}; HashMap.Entry is the type, String and Long are type arguments, 15 is an argument, and everything in { } is the anonymous class body.

In class B { class C { public void a() { new B().new C(); } } } the scope is new B() of ObjectCreationExpr new B().new C()

Author:
Julio Vilmar Gesser