polyglot.ast
Interface ConstructorCall

All Superinterfaces:
java.lang.Cloneable, Copy, JL, Node, NodeOps, ProcedureCall, Stmt, Term
All Known Subinterfaces:
PolyJConstructorCall
All Known Implementing Classes:
ConstructorCall_c, PolyJConstructorCall_c

public interface ConstructorCall
extends Stmt, ProcedureCall

A ConstructorCall represents a direct call to a constructor. For instance, super(...) or this(...).


Nested Class Summary
static class ConstructorCall.Kind
          Constructor call kind: either "super" or "this".
 
Field Summary
static ConstructorCall.Kind SUPER
           
static ConstructorCall.Kind THIS
           
 
Method Summary
 java.util.List arguments()
          Actual arguments.
 ProcedureCall arguments(java.util.List arguments)
          Set the actual arguments.
 ConstructorInstance constructorInstance()
          The constructor that is called.
 ConstructorCall constructorInstance(ConstructorInstance ci)
          Set the constructor to call.
 ConstructorCall.Kind kind()
          The kind of the call: THIS or SUPER.
 ConstructorCall kind(ConstructorCall.Kind kind)
          Set the kind of the call: THIS or SUPER.
 Expr qualifier()
          The qualifier of the call, possibly null.
 ConstructorCall qualifier(Expr qualifier)
          Set the qualifier of the call, possibly null.
 
Methods inherited from interface polyglot.ast.Term
acceptCFG, entry, reachable, reachable
 
Methods inherited from interface polyglot.ast.Node
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge
 
Methods inherited from interface polyglot.ast.JL
init, node
 
Methods inherited from interface polyglot.ast.NodeOps
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren
 
Methods inherited from interface polyglot.util.Copy
copy
 
Methods inherited from interface polyglot.ast.ProcedureCall
procedureInstance
 

Field Detail

SUPER

public static final ConstructorCall.Kind SUPER

THIS

public static final ConstructorCall.Kind THIS
Method Detail

qualifier

public Expr qualifier()
The qualifier of the call, possibly null.


qualifier

public ConstructorCall qualifier(Expr qualifier)
Set the qualifier of the call, possibly null.


kind

public ConstructorCall.Kind kind()
The kind of the call: THIS or SUPER.


kind

public ConstructorCall kind(ConstructorCall.Kind kind)
Set the kind of the call: THIS or SUPER.


arguments

public java.util.List arguments()
Actual arguments.

Specified by:
arguments in interface ProcedureCall
Returns:
A list of Expr.

arguments

public ProcedureCall arguments(java.util.List arguments)
Set the actual arguments.

Specified by:
arguments in interface ProcedureCall
Parameters:
arguments - A list of Expr.

constructorInstance

public ConstructorInstance constructorInstance()
The constructor that is called. This field may not be valid until after type checking.


constructorInstance

public ConstructorCall constructorInstance(ConstructorInstance ci)
Set the constructor to call.