jsynoptic.parser
Class NodeForUnaryOperation

java.lang.Object
  extended by jsynoptic.parser.SimpleNode
      extended by jsynoptic.parser.ExpressionNode
          extended by jsynoptic.parser.NodeForUnaryOperation
All Implemented Interfaces:
java.lang.Cloneable, Node

public class NodeForUnaryOperation
extends ExpressionNode


Field Summary
 
Fields inherited from class jsynoptic.parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
NodeForUnaryOperation(ExpressionParser p, int id)
           
NodeForUnaryOperation(int id)
           
 
Method Summary
 java.lang.Number evaluate()
          Evaluate the subtree under this node and return the computation result as a number
 
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, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeForUnaryOperation

public NodeForUnaryOperation(int id)

NodeForUnaryOperation

public NodeForUnaryOperation(ExpressionParser p,
                             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