|
|||||||||
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.ASTConstant
public class ASTConstant
A Constant Node. Has an associated value.
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 | |
---|---|
ASTConstant(int id)
|
|
ASTConstant(Parser p,
int id)
|
Method Summary | |
---|---|
java.lang.String |
getName()
Return the name associated with the node (if any). |
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 associated with the node (if any). |
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 |
setValue(java.lang.Object val)
|
java.lang.String |
toString()
|
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 ASTConstant(int id)
public ASTConstant(Parser p, int id)
Method Detail |
---|
public void setValue(java.lang.Object val)
public java.lang.Object getValue()
Node
public java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data) throws JepException
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
JepException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
Node
public Operator getOperator()
Node
public PostfixMathCommandI getPFMC()
Node
public Variable getVar()
Node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |