|
|||||||||
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.
Field Summary |
---|
Fields inherited from interface polyglot.ast.Term |
---|
ENTRY, EXIT |
Fields inherited from interface polyglot.ast.Term |
---|
ENTRY, EXIT |
Method Summary | |
---|---|
java.util.List |
arguments()
The call's actual arguments. |
ProcedureCall |
arguments(java.util.List arguments)
Set the call's actual arguments. |
Id |
id()
The name of the method to call. |
Call |
id(Id name)
Set the name of the method to call. |
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, constantValueSet, isConstant, precedence, printSubExpr, printSubExpr, type |
Methods inherited from interface polyglot.ast.Node |
---|
childExpectedType, del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitChild, visitEdge, visitList |
Methods inherited from interface polyglot.ast.JL |
---|
init, node |
Methods inherited from interface polyglot.ast.NodeOps |
---|
addDecls, buildTypes, buildTypesEnter, checkConstants, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, 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, exceptions, exceptions, firstChild, reachable, reachable |
Methods inherited from interface polyglot.ast.ProcedureCall |
---|
procedureInstance |
Methods inherited from interface polyglot.ast.Term |
---|
acceptCFG, exceptions, exceptions, firstChild, reachable, reachable |
Method Detail |
---|
Receiver target()
Call target(Receiver target)
Id id()
Call id(Id name)
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 |