jsynoptic.parser
Class NodeForBooleanTest

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

public class NodeForBooleanTest
extends ExpressionNode


Field Summary
 java.util.Vector operator
           
 
Fields inherited from class jsynoptic.parser.SimpleNode
children, id, parent, parser
 
Constructor Summary
NodeForBooleanTest(ExpressionParser p, int id)
           
NodeForBooleanTest(int id)
           
 
Method Summary
 java.lang.Object clone()
           
 java.lang.Number evaluate()
          Evaluate the subtree under this node and return the computation result as a number
 java.lang.String toString()
           
 
Methods inherited from class jsynoptic.parser.ExpressionNode
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

operator

public java.util.Vector operator
Constructor Detail

NodeForBooleanTest

public NodeForBooleanTest(int id)

NodeForBooleanTest

public NodeForBooleanTest(ExpressionParser p,
                          int id)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class SimpleNode

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

clone

public java.lang.Object clone()
Overrides:
clone in class ExpressionNode