jsynoptic.parser
Class NodeForFunctionCall
java.lang.Object
jsynoptic.parser.SimpleNode
jsynoptic.parser.ExpressionNode
jsynoptic.parser.NodeForFunctionCall
- All Implemented Interfaces:
- java.lang.Cloneable, Node
public class NodeForFunctionCall
- extends ExpressionNode
This specialized class represents node in the tree for function calls
It was specialized to store the name of the function
Method Summary |
java.lang.Number |
evaluate()
Evaluate the subtree under this node and return the computation result as a number |
void |
setName(java.lang.String name)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
implementation
public java.lang.Object implementation
name
public java.lang.String name
NodeForFunctionCall
public NodeForFunctionCall(ExpressionParser p,
int id)
NodeForFunctionCall
public NodeForFunctionCall(int id)
evaluate
public java.lang.Number evaluate()
- Description copied from class:
ExpressionNode
- Evaluate the subtree under this node and return the computation result as a number
- Specified by:
evaluate
in class ExpressionNode
setName
public void setName(java.lang.String name)
toString
public java.lang.String toString()
- Overrides:
toString
in class SimpleNode