|
|||||||||||
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.IdentifierAST
An AST node that represents an identifier
Field Summary | |
private boolean |
isMethod
true if this is a method name |
private String |
name
The full name of this identifier |
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 | |
IdentifierAST()
Create a new identifier AST |
|
IdentifierAST(antlr.Token token)
Create a new identifier AST |
Method Summary | |
int |
compareTo(IdentifierAST ident)
Compares this identifier with another for order. |
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 |
String |
getName()
Extract the full name of this identifier, even if is is a dotted name |
VarList |
getVarList()
Get the list of variables read and written by this expression |
void |
setMethod()
Identify this as a method name |
void |
setName(String theName)
Set the name of this identifier |
String |
toString()
|
Methods inherited from class jparse.expr.ExpressionAST |
getExceptionTypes, getValue, retrieveType |
Methods inherited from class jparse.JavaAST |
parseComplete, 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 String name
private boolean isMethod
true
if this is a method name
Constructor Detail |
public IdentifierAST()
public IdentifierAST(antlr.Token token)
token
- the token represented by this AST nodeMethod Detail |
public final void setName(String theName)
theName
- the name of this identifierpublic final String getName()
public final void setMethod()
public int compareTo(IdentifierAST ident)
ident
- the IdentifierAST
to compare with this one
IdentifierAST
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 String toString()
toString
in interface antlr.collections.AST
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |