org.jscience.ml.sbml.jep
Class ASTConstant

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

public class ASTConstant
extends SimpleNode

Constant Node


Field Summary
 
Fields inherited from class org.jscience.ml.sbml.jep.SimpleNode
children, id, parent, parser
 
Constructor Summary
ASTConstant(int id)
          Creates a new ASTConstant object.
ASTConstant(Parser p, int id)
          Creates a new ASTConstant object.
 
Method Summary
 java.lang.Object getValue()
          DOCUMENT ME!
 java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 void setValue(java.lang.Object val)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 
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

ASTConstant

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

Parameters:
id - DOCUMENT ME!

ASTConstant

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

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

getValue

public java.lang.Object getValue()
DOCUMENT ME!

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!

setValue

public void setValue(java.lang.Object val)
DOCUMENT ME!

Parameters:
val - DOCUMENT ME!

toString

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

Overrides:
toString in class SimpleNode
Returns:
DOCUMENT ME!