Jalopy 1.0b10

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

Field Summary
protected static String EMPTY_STRING
          The empty string constant.
 
Fields inherited from class de.hunsicker.antlr.ASTFactory
theASTNodeType, theASTNodeTypeClass
 
Constructor Summary
NodeFactory()
          Creates a new NodeFactory object.
 
Method Summary
 AST create()
          Creates a new empty Node node.
 AST create(AST node)
          Creates a new empty Node node.
 AST create(int type)
          Creates a new empty Node node.
 AST create(int type, String text)
          Creates a new empty Node node.
 AST create(Token tok)
          Creates a new empty Node node.
 
Methods inherited from class de.hunsicker.antlr.ASTFactory
addASTChild, dup, dupList, dupTree, error, make, make, makeASTRoot, setASTNodeType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_STRING

protected static final String EMPTY_STRING
The empty string constant.
Constructor Detail

NodeFactory

public NodeFactory()
Creates a new NodeFactory object.
Method Detail

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.

Jalopy 1.0b10

Submit a bug or feature.

For further information and documentation, visit the official Jalopy website.
This page generated: November 14 2002