|
|||||||||||
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.FileAST
An AST node that represents the contents of a file
Field Summary | |
(package private) static FileAST |
currFile
The file currently being evaluated |
(package private) String[] |
imports
The import statements for this file |
private HashMap |
map
A mapping from class names to types, in the context of the import list for this file |
(package private) String |
pkg
The package for this file, or null for the default package |
(package private) File |
theFile
The file that was parsed to create this AST |
(package private) TypeAST[] |
types
The top-level class and interface definitions for this file |
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 | |
FileAST(File file)
Create a new file AST node |
Method Summary | |
Type |
getType(String name)
Find a type with the given name, using the import list for this file |
void |
parseComplete()
Compute any derived attributes that must be evaluated after the initial parse. |
(package private) void |
setInitialHiddenToken(antlr.CommonHiddenStreamToken hiddenTok)
Set the initial hidden token for the file. |
String |
toString()
|
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 |
static FileAST currFile
final File theFile
String pkg
null
for the default package
String[] imports
TypeAST[] types
private final HashMap map
Constructor Detail |
public FileAST(File file)
file
- the file parsed to create this ASTMethod Detail |
void setInitialHiddenToken(antlr.CommonHiddenStreamToken hiddenTok)
hiddenTok
- the initial hidden tokenpublic Type getType(String name) throws ClassNotFoundException
name
- the name of the type to look up
ClassNotFoundException
- if the class cannot be foundpublic void parseComplete()
JavaAST
parseComplete
in class JavaAST
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 |