|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.singularsys.jep.parser.SimpleNode
com.singularsys.jep.parser.ASTFunNode
com.singularsys.jep.parser.ASTOpNode
public class ASTOpNode
Function 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 | |
|---|---|
ASTOpNode(int id)
Creates a new ASTFunNode |
|
ASTOpNode(Parser p,
int id)
Creates a new ASTFunNode |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns the name of the node (operator symbol or function name). |
Operator |
getOperator()
Returns the id number of the operator if the node is an operator. |
PostfixMathCommandI |
getPFMC()
Returns the math command class associated with this node. |
java.lang.Object |
jjtAccept(ParserVisitor visitor,
java.lang.Object data)
Accept the visitor. |
void |
setOperator(Operator op)
Sets the opID, name and pfmc for this node by looking up the values in the Operators class |
java.lang.String |
toString()
Returns a string containing the function name. |
| Methods inherited from class com.singularsys.jep.parser.ASTFunNode |
|---|
getValue, getVar, setFunction |
| 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 ASTOpNode(int id)
public ASTOpNode(Parser p,
int id)
| Method Detail |
|---|
public java.lang.Object jjtAccept(ParserVisitor visitor,
java.lang.Object data)
throws JepException
jjtAccept in interface NodejjtAccept in class ASTFunNodeParseException
JepExceptionpublic void setOperator(Operator op)
public java.lang.String toString()
toString in class ASTFunNodepublic PostfixMathCommandI getPFMC()
getPFMC in interface NodegetPFMC in class ASTFunNodepublic java.lang.String getName()
getName in interface NodegetName in class ASTFunNodepublic Operator getOperator()
getOperator in interface NodegetOperator in class ASTFunNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||