public class ASTOpNode extends ASTFunNode
Node.HookKey
pfmc
Constructor and Description |
---|
ASTOpNode(int id)
Creates a new ASTFunNode
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
getPFMC, getValue, getVar, setFunction
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 ASTFunNode
ParseException
JepException
public void setOperator(Operator op)
public java.lang.String toString()
toString
in class ASTFunNode
public java.lang.String getName()
getName
in interface Node
getName
in class ASTFunNode
public Operator getOperator()
getOperator
in interface Node
getOperator
in class ASTFunNode
Copyright © 2018 Singular Systems http://www.singularsys.com/jep