public class ASTFunNode extends SimpleNode
Node.HookKey
Modifier and Type | Field and Description |
---|---|
protected PostfixMathCommandI |
pfmc
The function class used to evaluate the node
|
Constructor and Description |
---|
ASTFunNode(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()
Return the operator associated with a Node (if any)
|
PostfixMathCommandI |
getPFMC()
Returns the math command class associated with this node.
|
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 |
setFunction(java.lang.String name_in,
PostfixMathCommandI pfmc_in)
Sets the function for a node.
|
java.lang.String |
toString()
Returns a string containing the function name.
|
childIterator, children, childrenAccept, dump, getHook, getId, hookKeys, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, removeHook, setHook, toString
protected PostfixMathCommandI pfmc
public java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data) throws JepException
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
ParseException
JepException
public void setFunction(java.lang.String name_in, PostfixMathCommandI pfmc_in)
public java.lang.String toString()
toString
in class java.lang.Object
public PostfixMathCommandI getPFMC()
public java.lang.String getName()
public Operator getOperator()
Node
public java.lang.Object getValue()
Node
Copyright © 2018 Singular Systems http://www.singularsys.com/jep