jltools.ast
Interface New
- All Superinterfaces:
- java.lang.Cloneable, Copy, Expr, Node, Prefix, Receiver, java.io.Serializable, Typed
- All Known Implementing Classes:
- New_c
- public interface New
- extends Expr
A New
is an immutable representation of the use of the
new
operator to create a new instance of a class. In
addition to the type of the class being created, a New
has a
list of arguments to be passed to the constructor of the object and an
optional ClassBody
used to support anonymous classes.
Methods inherited from interface jltools.ast.Node |
buildTypes_, buildTypesOverride_, copy, disambiguate_, disambiguateOverride_, disambiguateTypes_, disambiguateTypesOverride_, dump, enterScope, exceptionCheck_, exceptionCheckOverride_, ext, ext, foldConstants_, foldConstantsOverride_, leaveScope, position, position, reconstructTypes_, translate_, typeCheck_, typeCheckOverride_, visit, visitChildren |
Methods inherited from interface jltools.ast.Typed |
type |
objectType
public TypeNode objectType()
objectType
public New objectType(TypeNode t)
arguments
public java.util.List arguments()
arguments
public New arguments(java.util.List a)
body
public ClassBody body()
body
public New body(ClassBody b)
constructorInstance
public ConstructorInstance constructorInstance()