org.jscience.ml.sbml.jep
Class ASTVarNode

java.lang.Object
  extended by org.jscience.ml.sbml.jep.SimpleNode
      extended by org.jscience.ml.sbml.jep.ASTVarNode
All Implemented Interfaces:
Node

public class ASTVarNode
extends SimpleNode

Variable Node


Field Summary
 
Fields inherited from class org.jscience.ml.sbml.jep.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTVarNode(int id)
          Creates a new ASTVarNode object.
ASTVarNode(Parser p, int id)
          Creates a new ASTVarNode object.
 
Method Summary
 java.lang.String getName()
          Returns the name of the variable.
 java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 void setName(java.lang.String varName_in)
          Sets the name of the variable.
 java.lang.String toString()
          Creates a string containing the variable's name
 
Methods inherited from class org.jscience.ml.sbml.jep.SimpleNode
childrenAccept, childrenAcceptReverse, dump, getId, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTVarNode

public ASTVarNode(int id)
Creates a new ASTVarNode object.

Parameters:
id - DOCUMENT ME!

ASTVarNode

public ASTVarNode(Parser p,
                  int id)
Creates a new ASTVarNode object.

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

getName

public java.lang.String getName()
Returns the name of the variable.

Returns:
DOCUMENT ME!

jjtAccept

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

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

setName

public void setName(java.lang.String varName_in)
Sets the name of the variable.

Parameters:
varName_in - DOCUMENT ME!

toString

public java.lang.String toString()
Creates a string containing the variable's name

Overrides:
toString in class SimpleNode
Returns:
DOCUMENT ME!