com.singularsys.jep.parser
Class ASTVarNode
java.lang.Object
com.singularsys.jep.parser.SimpleNode
com.singularsys.jep.parser.ASTVarNode
- All Implemented Interfaces:
- Node
public class ASTVarNode
- extends SimpleNode
Variable Node
Method Summary |
java.lang.String |
getName()
Returns the name of the variable. |
Variable |
getVar()
|
java.lang.Object |
jjtAccept(ParserVisitor visitor,
java.lang.Object data)
Accept the visitor. |
void |
setVar(Variable variable)
Sets the name of the variable. |
java.lang.String |
toString()
Creates a string containing the variable's name and value |
Methods inherited from class com.singularsys.jep.parser.SimpleNode |
childrenAccept, dump, getHook, getId, hookKeys, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setHook, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ASTVarNode
public ASTVarNode(int id)
ASTVarNode
public ASTVarNode(Parser p,
int id)
jjtAccept
public java.lang.Object jjtAccept(ParserVisitor visitor,
java.lang.Object data)
throws EvaluationException
- Accept the visitor.
- Specified by:
jjtAccept
in interface Node
- Overrides:
jjtAccept
in class SimpleNode
- Throws:
EvaluationException
setVar
public void setVar(Variable variable)
- Sets the name of the variable.
getVar
public Variable getVar()
getName
public java.lang.String getName()
- Returns the name of the variable.
toString
public java.lang.String toString()
- Creates a string containing the variable's name and value
- Overrides:
toString
in class java.lang.Object
Copyright © 2007 Singular Systems http://www.singularsys.com/jep