jsynoptic.parser
Class NodeForFunctionCall

java.lang.Object
  extended by jsynoptic.parser.SimpleNode
      extended by jsynoptic.parser.ExpressionNode
          extended by 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


Field Summary
 java.lang.Object implementation
           
 java.lang.String name
           
 
Fields inherited from class jsynoptic.parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
NodeForFunctionCall(ExpressionParser p, int id)
           
NodeForFunctionCall(int id)
           
 
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 jsynoptic.parser.ExpressionNode
clone, getVariables
 
Methods inherited from class jsynoptic.parser.SimpleNode
dump, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

implementation

public java.lang.Object implementation

name

public java.lang.String name
Constructor Detail

NodeForFunctionCall

public NodeForFunctionCall(ExpressionParser p,
                           int id)

NodeForFunctionCall

public NodeForFunctionCall(int id)
Method Detail

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