Jalopy 1.0b10

de.hunsicker.jalopy.language
Class NodeFactory

java.lang.Object
  extended byde.hunsicker.antlr.ASTFactory
      extended byde.hunsicker.jalopy.language.NodeFactory

public class NodeFactory
extends de.hunsicker.antlr.ASTFactory

Central facility to create extended nodes.

Version:
$Revision: 1.2 $
Author:
Marco Hunsicker

Field Summary
protected static java.lang.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
 de.hunsicker.antlr.collections.AST create()
          Creates a new empty Node node.
 de.hunsicker.antlr.collections.AST create(de.hunsicker.antlr.collections.AST node)
          Creates a new empty Node node.
 de.hunsicker.antlr.collections.AST create(int type)
          Creates a new empty Node node.
 de.hunsicker.antlr.collections.AST create(int type, java.lang.String text)
          Creates a new empty Node node.
 de.hunsicker.antlr.collections.AST create(de.hunsicker.antlr.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 java.lang.String EMPTY_STRING
The empty string constant.

Constructor Detail

NodeFactory

public NodeFactory()
Creates a new NodeFactory object.

Method Detail

create

public de.hunsicker.antlr.collections.AST create()
Creates a new empty Node node.

Returns:
newly created Node.

create

public de.hunsicker.antlr.collections.AST create(int type)
Creates a new empty Node node.

Parameters:
type - information to setup the node with.
Returns:
newly created Node.

create

public de.hunsicker.antlr.collections.AST create(int type,
                                                 java.lang.String text)
Creates a new empty Node node.

Parameters:
type - type information to setup the node with.
text - text to setup the node with.
Returns:
newly created Node.

create

public de.hunsicker.antlr.collections.AST create(de.hunsicker.antlr.collections.AST node)
Creates a new empty Node node.

Parameters:
node - node to setup the new node with.
Returns:
newly created Node.

create

public de.hunsicker.antlr.collections.AST create(de.hunsicker.antlr.Token tok)
Creates a new empty Node node.

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 17 2003