org.jscience.ml.sbml.jep
Interface Node

All Known Implementing Classes:
ASTConstant, ASTElse, ASTElseIfThen, ASTFunNode, ASTIfThen, ASTPiecewise, ASTStart, ASTVarNode, SimpleNode

public interface Node

DOCUMENT ME!


Method Summary
 java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 void jjtAddChild(Node n, int i)
          This method tells the node to add its argument to the node's list of children.
 void jjtClose()
          This method is called after all the child nodes have been added.
 Node jjtGetChild(int i)
          This method returns a child node.
 int jjtGetNumChildren()
          Return the number of children the node has.
 Node jjtGetParent()
          DOCUMENT ME!
 void jjtOpen()
          This method is called after the node has been made the current node.
 void jjtSetParent(Node n)
          This pair of methods are used to inform the node of its parent.
 

Method Detail

jjtAccept

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

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

jjtAddChild

void jjtAddChild(Node n,
                 int i)
This method tells the node to add its argument to the node's list of children.

Parameters:
n - DOCUMENT ME!
i - DOCUMENT ME!

jjtClose

void jjtClose()
This method is called after all the child nodes have been added.


jjtGetChild

Node jjtGetChild(int i)
This method returns a child node. The children are numbered from zero, left to right.

Parameters:
i - DOCUMENT ME!
Returns:
DOCUMENT ME!

jjtGetNumChildren

int jjtGetNumChildren()
Return the number of children the node has.

Returns:
DOCUMENT ME!

jjtGetParent

Node jjtGetParent()
DOCUMENT ME!

Returns:
DOCUMENT ME!

jjtOpen

void jjtOpen()
This method is called after the node has been made the current node. It indicates that child nodes can now be added to it.


jjtSetParent

void jjtSetParent(Node n)
This pair of methods are used to inform the node of its parent.

Parameters:
n - DOCUMENT ME!