|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.singularsys.jep.parser.SimpleNode com.singularsys.jep.parser.ASTVarNode
public class ASTVarNode
Variable Node
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.singularsys.jep.parser.Node |
---|
Node.HookKey |
Field Summary |
---|
Fields inherited from class com.singularsys.jep.parser.SimpleNode |
---|
children, id, keys, parent, parser, vals |
Constructor Summary | |
---|---|
ASTVarNode(int id)
|
|
ASTVarNode(Parser p,
int id)
|
Method Summary | |
---|---|
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)
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 |
---|
childIterator, children, childrenAccept, dump, getHook, getId, hookKeys, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, removeHook, setHook, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ASTVarNode(int id)
public ASTVarNode(Parser p, int id)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |