|
|||||||||||
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.stmt.StatementAST
jparse.stmt.DeclarationAST
An AST node that represents a variable declaration statement
Field Summary | |
private ModifierAST |
modifiers
The modifiers for this declaration |
private TypeAST |
typeSpec
The type for this declaration |
private VarAST[] |
variables
The variables declared in this declaration |
Fields inherited from class jparse.stmt.StatementAST |
control, exceptions, next, nonlocal |
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 | |
DeclarationAST(ModifierAST mods,
TypeAST type,
antlr.collections.AST vars)
Create a new declaration statement AST |
Method Summary | |
protected StatementAST[] |
computeControl()
Compute the list of points to which control might flow after this statement |
protected Type[] |
computeExceptions()
Compute the checked exception types that might be thrown by this statement |
ModifierAST |
getModifiers()
Get the modifiers for this declaration |
TypeAST |
getTypeName()
Get the type name for this declaration |
VarAST[] |
getVariables()
Get the variables declared in this declaration |
VarList |
getVarList()
Get the list of variables read, written, and declared by this statement |
void |
parseComplete()
Compute any derived attributes that must be evaluated after the initial parse. |
Methods inherited from class jparse.stmt.StatementAST |
getExceptionTypes, nextControlPoints |
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, toString, 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 final ModifierAST modifiers
private final TypeAST typeSpec
private final VarAST[] variables
Constructor Detail |
public DeclarationAST(ModifierAST mods, TypeAST type, antlr.collections.AST vars)
mods
- the modifiers for this declarationtype
- the type for this declarationvars
- the varaibles declared in this declarationMethod Detail |
public void parseComplete()
JavaAST
parseComplete
in class StatementAST
protected Type[] computeExceptions()
StatementAST
computeExceptions
in class StatementAST
protected StatementAST[] computeControl()
StatementAST
computeControl
in class StatementAST
public VarList getVarList()
StatementAST
getVarList
in class StatementAST
public ModifierAST getModifiers()
public TypeAST getTypeName()
public VarAST[] getVariables()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |