|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antlr.ASTFactory | +--de.hunsicker.jalopy.language.NodeFactory
Central facility to create extended nodes.
Field Summary | |
protected static java.lang.String |
EMPTY_STRING
The empty string constant. |
Fields inherited from class antlr.ASTFactory |
theASTNodeType, theASTNodeTypeClass, tokenTypeToASTClassMap |
Constructor Summary | |
NodeFactory(CompositeFactory compositeFactory)
Creates a new NodeFactory object. |
Method Summary | |
antlr.collections.AST |
create()
Creates a new empty JavaNode node. |
antlr.collections.AST |
create(antlr.collections.AST node)
Creates a new empty Node node. |
antlr.collections.AST |
create(int type)
Creates a new empty Node node. |
antlr.collections.AST |
create(int type,
java.lang.String text)
Creates a new empty Node node. |
antlr.collections.AST |
create(antlr.Token tok)
Creates a new empty Node node. |
antlr.collections.AST |
dup(antlr.collections.AST t)
Copy a single node with same Java AST objec type. |
Methods inherited from class antlr.ASTFactory |
addASTChild, create, create, create, create, createUsingCtor, dupList, dupTree, error, getASTNodeType, getTokenTypeToASTClassMap, make, make, makeASTRoot, setASTNodeClass, setASTNodeClass, setASTNodeType, setTokenTypeASTNodeType, setTokenTypeToASTClassMap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String EMPTY_STRING
Constructor Detail |
public NodeFactory(CompositeFactory compositeFactory)
Method Detail |
public antlr.collections.AST create()
create
in class antlr.ASTFactory
public antlr.collections.AST dup(antlr.collections.AST t)
dup
in class antlr.ASTFactory
public antlr.collections.AST create(int type)
create
in class antlr.ASTFactory
type
- information to setup the node with.
public antlr.collections.AST create(int type, java.lang.String text)
create
in class antlr.ASTFactory
type
- type information to setup the node with.text
- text to setup the node with.
public antlr.collections.AST create(antlr.collections.AST node)
create
in class antlr.ASTFactory
node
- node to setup the new node with.
public antlr.collections.AST create(antlr.Token tok)
create
in class antlr.ASTFactory
tok
- token to setup the new node with.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |