|
|||||||||||
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.TypeAST
An AST node that represents a type.
Field Summary | |
private int |
anon
The count of anonymous inner classes |
(package private) ConstrAST[] |
constructors
The constructors for this type |
(package private) static TypeAST |
currType
The type currently being parsed |
(package private) TypeAST[] |
inner
The inner classes of this class |
(package private) String[] |
interfaces
The interfaces implemented by this class or the superinterfaces of this interface |
(package private) ModifierAST |
modifiers
The modifiers for this type |
(package private) String |
name
The fully qualified name of this type |
(package private) TypeAST |
outer
The outer class for this type |
(package private) String |
superclass
The superclass of this class |
(package private) SourceType |
type
The type object corresponding to this AST |
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 | |
|
TypeAST()
Create a new Type AST |
protected |
TypeAST(String name)
Create a new Type AST |
protected |
TypeAST(antlr.Token token)
Create a new Type AST |
Method Summary | |
(package private) void |
addAnonymous(String pkg,
TypeAST type)
Add an anonymous inner class to the list |
protected void |
addConstructor(ConstrAST cons)
Add a constructor to the list for this type |
(package private) void |
addInner(TypeAST type)
Add an inner class to the list |
JavaAST[] |
getMembers()
Get the members of this type |
String |
getSuperclass()
Get the name of the superclass of this class |
void |
parseComplete()
Compute any derived attributes that must be evaluated after the initial parse. |
Type |
retrieveType()
Retrieve the type represented by this AST node |
protected void |
setInfo(String pkg,
String typeName,
TypeAST out,
ModifierAST mods)
Set the name and outer class for this type |
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 TypeAST currType
SourceType type
String name
TypeAST outer
TypeAST[] inner
ModifierAST modifiers
String superclass
String[] interfaces
ConstrAST[] constructors
private int anon
Constructor Detail |
public TypeAST()
protected TypeAST(String name)
name
- the name of the superclassprotected TypeAST(antlr.Token token)
token
- the token represented by this AST nodeMethod Detail |
protected void setInfo(String pkg, String typeName, TypeAST out, ModifierAST mods)
pkg
- the name of the package for this typetypeName
- the name of this typeout
- the outer class or interface for this typemods
- the modifiers for this classpublic void parseComplete()
JavaAST
parseComplete
in class JavaAST
protected void addConstructor(ConstrAST cons)
cons
- the constructor to add to the listvoid addAnonymous(String pkg, TypeAST type)
pkg
- the name of the package for this typetype
- the anonymous inner class to addvoid addInner(TypeAST type)
type
- the inner class to addpublic String getSuperclass()
public JavaAST[] getMembers()
public Type retrieveType()
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 |