polyglot.ast
Interface ConstructorCall

All Superinterfaces:
java.lang.Cloneable, Copy, JL, Node, NodeOps, ProcedureCall, Stmt, Term
All Known Implementing Classes:
ConstructorCall_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, exceptions, exceptions, reachable, reachable
 
Methods inherited from interface polyglot.ast.Node
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge, visitList
 
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.ast.ProcedureCall
procedureInstance
 
Methods inherited from interface polyglot.ast.Term
acceptCFG, entry, exceptions, exceptions, reachable, reachable
 
Methods inherited from interface polyglot.ast.Node
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge, visitList
 
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
 

Field Detail

SUPER

static final ConstructorCall.Kind SUPER

THIS

static final ConstructorCall.Kind THIS
Method Detail

qualifier

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


qualifier

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


kind

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


kind

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


arguments

java.util.List arguments()
Actual arguments.

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

arguments

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

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

constructorInstance

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


constructorInstance

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