|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Call
is an immutable representation of a Java
method call. It consists of a method name and a list of arguments.
It may also have either a Type upon which the method is being
called or an expression upon which the method is being called.
Method Summary | |
java.util.List |
arguments()
The call's actual arguments. |
ProcedureCall |
arguments(java.util.List arguments)
Set the call's actual arguments. |
boolean |
isTargetImplicit()
Indicates if the target of this call is implicit, that is, was not specified explicitly in the syntax. |
MethodInstance |
methodInstance()
The type object of the method we are calling. |
Call |
methodInstance(MethodInstance mi)
Set the type object of the method we are calling. |
java.lang.String |
name()
The name of the method to call. |
Call |
name(java.lang.String name)
Set the name of the method to call. |
Receiver |
target()
The call's target object. |
Call |
target(Receiver target)
Set the call's target. |
Call |
targetImplicit(boolean targetImplicit)
Set whether the target of this call is implicit. |
Methods inherited from interface polyglot.ast.Expr |
constantValue, isConstant, precedence, printSubExpr, printSubExpr, type |
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.Typed |
type |
Methods inherited from interface polyglot.ast.Term |
acceptCFG, entry, reachable, reachable |
Methods inherited from interface polyglot.ast.ProcedureCall |
procedureInstance |
Method Detail |
public Receiver target()
public Call target(Receiver target)
public java.lang.String name()
public Call name(java.lang.String name)
public boolean isTargetImplicit()
public Call targetImplicit(boolean targetImplicit)
public java.util.List arguments()
arguments
in interface ProcedureCall
Expr
.public ProcedureCall arguments(java.util.List arguments)
arguments
in interface ProcedureCall
arguments
- A list of Expr
.public MethodInstance methodInstance()
public Call methodInstance(MethodInstance mi)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |