public class ASTVarNode extends SimpleNode
Node.HookKey
Constructor and Description |
---|
ASTVarNode(int id) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name of the variable.
|
Operator |
getOperator()
Return the operator associated with a Node (if any)
|
PostfixMathCommandI |
getPFMC()
Return the pfmc of a node (if any)
|
java.lang.Object |
getValue()
Return the value represented by the variable
|
Variable |
getVar()
Return the variable associated with a Node (if any)
|
java.lang.Object |
jjtAccept(ParserVisitor visitor,
java.lang.Object data)
Accept the visitor.
|
void |
setVar(Variable variable) |
java.lang.String |
toString()
Creates a string containing the variable's name and value
|
childIterator, children, childrenAccept, dump, getHook, getId, hookKeys, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, removeHook, setHook, toString
public java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data) throws JepException
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
JepException
public void setVar(Variable variable)
public Variable getVar()
Node
public java.lang.String getName()
public java.lang.Object getValue()
public java.lang.String toString()
toString
in class java.lang.Object
public Operator getOperator()
Node
public PostfixMathCommandI getPFMC()
Node
Copyright © 2018 Singular Systems http://www.singularsys.com/jep