|
|||||||||||
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
An AST node that represents a statement
Field Summary | |
protected StatementAST[] |
control
The points to which control might flow from this statement |
protected Type[] |
exceptions
The checked exceptions this statement might throw |
protected StatementAST |
next
The next statement in a sequential list of statements |
static StatementAST |
nonlocal
A special member of the StatementAST class which is used
to indicate that control passes out of the current method due to a
throw or return . |
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 | |
protected |
StatementAST()
Create a new statement AST |
protected |
StatementAST(antlr.Token token)
Create a new statement AST |
Method Summary | |
protected abstract StatementAST[] |
computeControl()
Compute the list of points to which control might flow after this statement |
protected abstract Type[] |
computeExceptions()
Compute the checked exception types that might be thrown by this statement |
Type[] |
getExceptionTypes()
Get the checked exception types that might be thrown by this statement |
abstract VarList |
getVarList()
Get the list of variables read, written, and declared by this statement |
StatementAST[] |
nextControlPoints()
Get the list of points to which control might pass after executing this statement. |
void |
parseComplete()
Compute any derived attributes that must be evaluated after the initial parse. |
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 |
public static final StatementAST nonlocal
StatementAST
class which is used
to indicate that control passes out of the current method due to a
throw
or return
.
protected Type[] exceptions
protected StatementAST next
protected StatementAST[] control
Constructor Detail |
protected StatementAST()
protected StatementAST(antlr.Token token)
token
- the token represented by this AST nodeMethod Detail |
public void parseComplete()
JavaAST
parseComplete
in class JavaAST
public final Type[] getExceptionTypes()
getExceptionTypes
in interface HasExceptions
protected abstract Type[] computeExceptions()
public StatementAST[] nextControlPoints()
StatementAST.nonlocal
if the
statement returns or throws something.
protected abstract StatementAST[] computeControl()
public abstract VarList getVarList()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |