|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antlr.ASTFactory
Untamed:
Field Summary | |
protected String |
theASTNodeType
Name of AST class to create during tree construction. |
protected Class |
theASTNodeTypeClass
|
Constructor Summary | |
ASTFactory()
Enabled: |
Method Summary | |
void |
addASTChild(ASTPair currentAST,
AST child)
Enabled: Add a child to the current AST |
AST |
create()
Enabled: Create a new empty AST node; if the user did not specify an AST node type, then create a default one: CommonAST. |
AST |
create(AST tr)
Enabled: Create a new empty AST node; if the user did not specify an AST node type, then create a default one: CommonAST. |
AST |
create(int type)
Enabled: |
AST |
create(int type,
String txt)
Enabled: |
AST |
create(Token tok)
Enabled: |
AST |
dup(AST t)
Enabled: Copy a single node. |
AST |
dupList(AST t)
Enabled: Duplicate tree including siblings of root. |
AST |
dupTree(AST t)
Enabled: Duplicate a tree, assuming this is a root node of a tree-- duplicate that node and what's below; ignore siblings of root node. |
AST |
make(AST[] nodes)
Enabled: Make a tree from a list of nodes. |
AST |
make(ASTArray nodes)
Enabled: Make a tree from a list of nodes, where the nodes are contained in an ASTArray object |
void |
makeASTRoot(ASTPair currentAST,
AST root)
Enabled: Make an AST the root of current AST |
void |
setASTNodeType(String t)
Enabled: |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected String theASTNodeType
protected Class theASTNodeTypeClass
Constructor Detail |
public ASTFactory()
Method Detail |
public void addASTChild(ASTPair currentAST, AST child)
public AST create()
public AST create(int type)
public AST create(int type, String txt)
public AST create(AST tr)
public AST create(Token tok)
public AST dup(AST t)
public AST dupList(AST t)
public AST dupTree(AST t)
public AST make(AST[] nodes)
public AST make(ASTArray nodes)
public void makeASTRoot(ASTPair currentAST, AST root)
public void setASTNodeType(String t)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |