|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Call
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, 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.util.Copy |
---|
copy |
Methods inherited from interface polyglot.ast.Typed |
---|
type |
Methods inherited from interface polyglot.ast.Term |
---|
acceptCFG, entry, exceptions, exceptions, reachable, reachable |
Methods inherited from interface polyglot.ast.ProcedureCall |
---|
procedureInstance |
Methods inherited from interface polyglot.ast.Term |
---|
acceptCFG, entry, exceptions, exceptions, reachable, reachable |
Method Detail |
---|
Receiver target()
Call target(Receiver target)
java.lang.String name()
Call name(java.lang.String name)
boolean isTargetImplicit()
Call targetImplicit(boolean targetImplicit)
java.util.List arguments()
arguments
in interface ProcedureCall
Expr
.ProcedureCall arguments(java.util.List arguments)
arguments
in interface ProcedureCall
arguments
- A list of Expr
.MethodInstance methodInstance()
Call methodInstance(MethodInstance mi)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |