|
|||||||||||
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
An AST node that is a superclass for all Java AST types.
Field Summary | |
protected static CompileContext |
context
The current compilation context |
protected static SymbolTable |
currSymTable
The current symbol table under construction |
protected static Type[] |
noTypes
An empty array of types, for use in parameter and exception lists when there are none; avoids creating new arrays when it is unnecessary without resorting to lots of null checks |
SymbolTable |
symTable
The symbols in the context of this AST node |
FileAST |
topLevel
The top-level node for this file |
TypeAST |
typeAST
The type (class or interface) containing this AST node |
Fields inherited from class antlr.CommonASTWithHiddenTokens |
hiddenAfter, hiddenBefore |
Fields inherited from class antlr.CommonAST |
|
Fields inherited from class antlr.BaseAST |
down, right |
Constructor Summary | |
JavaAST()
Create a new Java AST |
|
JavaAST(SymbolTable table)
Create a new Java AST with an existing symbol table |
|
JavaAST(antlr.Token token)
Create a new Java AST from a token |
|
JavaAST(antlr.Token token,
SymbolTable table)
Create a new Java AST from a token, with an existing symbol table |
Method Summary | |
void |
parseComplete()
Compute any derived attributes that must be evaluated after the initial parse. |
void |
print(PrintWriter output)
Print a representation of this AST node, and its following hidden tokens |
void |
printHiddenAfter(PrintWriter output)
Print any hidden tokens after this AST node |
void |
printHiddenBefore(PrintWriter output)
Print any hidden tokens before this AST node |
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 |
protected static final Type[] noTypes
null
checks
protected static SymbolTable currSymTable
protected static CompileContext context
public final SymbolTable symTable
public final FileAST topLevel
public final TypeAST typeAST
Constructor Detail |
public JavaAST()
public JavaAST(SymbolTable table)
table
- the symbol table to usepublic JavaAST(antlr.Token token)
token
- the token represented by this AST nodepublic JavaAST(antlr.Token token, SymbolTable table)
token
- the token represented by this AST nodetable
- the symbol table to useMethod Detail |
public final void print(PrintWriter output)
output
- the output stream on which to printpublic final void printHiddenAfter(PrintWriter output)
output
- the output stream on which to printpublic final void printHiddenBefore(PrintWriter output)
output
- the output stream on which to printpublic void parseComplete()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |