|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectantlr.BaseAST
antlr.CommonAST
antlr.CommonASTWithHiddenTokens
jparse.JavaAST
jparse.expr.ExpressionAST
jparse.expr.MethodCallAST
An AST node that represents a method call
Field Summary | |
private IdentifierAST |
method
The name of the method to call |
private ExpressionAST |
object
The object on which to call |
private ListAST |
parameters
The parameters of the call |
private Constructor |
theConstructor
The constructor that this call is calling (for constructor calls) |
private Method |
theMethod
The method that this call is calling (for method calls) |
Fields inherited from class jparse.expr.ExpressionAST |
exceptions, nonconstant, type, value |
Fields inherited from class jparse.JavaAST |
context, currSymTable, noTypes, symTable, topLevel, typeAST |
Fields inherited from class antlr.CommonASTWithHiddenTokens |
hiddenAfter, hiddenBefore |
Fields inherited from class antlr.CommonAST |
|
Fields inherited from class antlr.BaseAST |
down, right |
Constructor Summary | |
MethodCallAST(antlr.Token token)
Create a new method call AST |
Method Summary | |
protected Type[] |
computeExceptions()
Compute the checked exception types that might be thrown by this expression |
protected Type |
computeType()
Compute the type of this expression |
protected Object |
computeValue()
Compute the constant value of this expression, if any |
Constructor |
getConstructor()
Get the constructor that will actually be called |
Method |
getMethod()
Get the method that will actually be called |
IdentifierAST |
getMethodName()
Get the name of the method to call |
ExpressionAST |
getObject()
Get the object on which the method call will be made |
ListAST |
getParameters()
Get the parameters to the method |
VarList |
getVarList()
Get the list of variables read and written by this expression |
void |
parseComplete()
Set the method call values |
String |
toString()
|
Methods inherited from class jparse.expr.ExpressionAST |
getExceptionTypes, getValue, retrieveType |
Methods inherited from class jparse.JavaAST |
print, printHiddenAfter, printHiddenBefore |
Methods inherited from class antlr.CommonASTWithHiddenTokens |
getHiddenAfter, getHiddenBefore, initialize |
Methods inherited from class antlr.CommonAST |
getText, getType, initialize, initialize, setText, setType |
Methods inherited from class antlr.BaseAST |
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private ExpressionAST object
private IdentifierAST method
private ListAST parameters
private Method theMethod
private Constructor theConstructor
Constructor Detail |
public MethodCallAST(antlr.Token token)
token
- the token represented by this AST nodeMethod Detail |
public void parseComplete()
parseComplete
in class JavaAST
protected Type computeType()
ExpressionAST
computeType
in class ExpressionAST
protected Type[] computeExceptions()
ExpressionAST
computeExceptions
in class ExpressionAST
protected Object computeValue()
ExpressionAST
computeValue
in class ExpressionAST
public VarList getVarList()
ExpressionAST
getVarList
in class ExpressionAST
public ExpressionAST getObject()
null
if none was specifiedpublic IdentifierAST getMethodName()
public ListAST getParameters()
public Method getMethod()
Method
object representing the method to callpublic Constructor getConstructor()
Constructor
object representing the constructor
to runpublic String toString()
toString
in interface antlr.collections.AST
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |