org.jscience.ml.sbml.jep
Class SimpleNode

java.lang.Object
  extended by org.jscience.ml.sbml.jep.SimpleNode
All Implemented Interfaces:
Node
Direct Known Subclasses:
ASTConstant, ASTElse, ASTElseIfThen, ASTFunNode, ASTIfThen, ASTPiecewise, ASTStart, ASTVarNode

public class SimpleNode
extends java.lang.Object
implements Node

DOCUMENT ME!


Field Summary
protected  Node[] children
          DOCUMENT ME!
protected  int id
          DOCUMENT ME!
protected  Node parent
          DOCUMENT ME!
protected  Parser parser
          DOCUMENT ME!
 
Constructor Summary
SimpleNode(int i)
          Creates a new SimpleNode object.
SimpleNode(Parser p, int i)
          Creates a new SimpleNode object.
 
Method Summary
 java.lang.Object childrenAccept(ParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 java.lang.Object childrenAcceptReverse(ParserVisitor visitor, java.lang.Object data)
          Accept the visitor in Reverse.
 void dump(java.lang.String prefix)
           
 int getId()
          Returns the id of the node (for simpler identification).
 java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 void jjtAddChild(Node n, int i)
          DOCUMENT ME!
 void jjtClose()
          DOCUMENT ME!
 Node jjtGetChild(int i)
          DOCUMENT ME!
 int jjtGetNumChildren()
          DOCUMENT ME!
 Node jjtGetParent()
          DOCUMENT ME!
 void jjtOpen()
          DOCUMENT ME!
 void jjtSetParent(Node n)
          DOCUMENT ME!
 java.lang.String toString()
           
 java.lang.String toString(java.lang.String prefix)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

children

protected Node[] children
DOCUMENT ME!


id

protected int id
DOCUMENT ME!


parent

protected Node parent
DOCUMENT ME!


parser

protected Parser parser
DOCUMENT ME!

Constructor Detail

SimpleNode

public SimpleNode(int i)
Creates a new SimpleNode object.

Parameters:
i - DOCUMENT ME!

SimpleNode

public SimpleNode(Parser p,
                  int i)
Creates a new SimpleNode object.

Parameters:
p - DOCUMENT ME!
i - DOCUMENT ME!
Method Detail

childrenAccept

public java.lang.Object childrenAccept(ParserVisitor visitor,
                                       java.lang.Object data)
Accept the visitor.

Parameters:
visitor - DOCUMENT ME!
data - DOCUMENT ME!
Returns:
DOCUMENT ME!

childrenAcceptReverse

public java.lang.Object childrenAcceptReverse(ParserVisitor visitor,
                                              java.lang.Object data)
Accept the visitor in Reverse.

Parameters:
visitor - DOCUMENT ME!
data - DOCUMENT ME!
Returns:
DOCUMENT ME!

dump

public void dump(java.lang.String prefix)

getId

public int getId()
Returns the id of the node (for simpler identification).

Returns:
DOCUMENT ME!

jjtAccept

public java.lang.Object jjtAccept(ParserVisitor visitor,
                                  java.lang.Object data)
Accept the visitor.

Specified by:
jjtAccept in interface Node
Parameters:
visitor - DOCUMENT ME!
data - DOCUMENT ME!
Returns:
DOCUMENT ME!

jjtAddChild

public void jjtAddChild(Node n,
                        int i)
DOCUMENT ME!

Specified by:
jjtAddChild in interface Node
Parameters:
n - DOCUMENT ME!
i - DOCUMENT ME!

jjtClose

public void jjtClose()
DOCUMENT ME!

Specified by:
jjtClose in interface Node

jjtGetChild

public Node jjtGetChild(int i)
DOCUMENT ME!

Specified by:
jjtGetChild in interface Node
Parameters:
i - DOCUMENT ME!
Returns:
DOCUMENT ME!

jjtGetNumChildren

public int jjtGetNumChildren()
DOCUMENT ME!

Specified by:
jjtGetNumChildren in interface Node
Returns:
DOCUMENT ME!

jjtGetParent

public Node jjtGetParent()
DOCUMENT ME!

Specified by:
jjtGetParent in interface Node
Returns:
DOCUMENT ME!

jjtOpen

public void jjtOpen()
DOCUMENT ME!

Specified by:
jjtOpen in interface Node

jjtSetParent

public void jjtSetParent(Node n)
DOCUMENT ME!

Specified by:
jjtSetParent in interface Node
Parameters:
n - DOCUMENT ME!

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(java.lang.String prefix)
DOCUMENT ME!

Parameters:
prefix - DOCUMENT ME!
Returns:
DOCUMENT ME!