de.hunsicker.jalopy.language
Class NodeFactory
java.lang.Object
|
+--de.hunsicker.antlr.ASTFactory
|
+--de.hunsicker.jalopy.language.NodeFactory
- public class NodeFactory
- extends ASTFactory
Central facility to create extended nodes.
- Version:
- $Revision: 1.2 $
- Author:
- Marco Hunsicker
Constructor Summary |
NodeFactory()
Creates a new NodeFactory object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY_STRING
protected static final String EMPTY_STRING
- The empty string constant.
NodeFactory
public NodeFactory()
- Creates a new NodeFactory object.
create
public AST create()
- Creates a new empty Node node.
- Overrides:
create
in class ASTFactory
- Returns:
- newly created Node.
create
public AST create(int type)
- Creates a new empty Node node.
- Overrides:
create
in class ASTFactory
- Parameters:
type
- information to setup the node with.- Returns:
- newly created Node.
create
public AST create(int type,
String text)
- Creates a new empty Node node.
- Overrides:
create
in class ASTFactory
- Parameters:
type
- type information to setup the node with.text
- text to setup the node with.- Returns:
- newly created Node.
create
public AST create(AST node)
- Creates a new empty Node node.
- Overrides:
create
in class ASTFactory
- Parameters:
node
- node to setup the new node with.- Returns:
- newly created Node.
create
public AST create(Token tok)
- Creates a new empty Node node.
- Overrides:
create
in class ASTFactory
- Parameters:
tok
- token to setup the new node with.- Returns:
- newly created Node.