jsynoptic.parser
Class NodeForLogicalOperation
java.lang.Object
jsynoptic.parser.SimpleNode
jsynoptic.parser.ExpressionNode
jsynoptic.parser.NodeForLogicalOperation
- All Implemented Interfaces:
- java.lang.Cloneable, Node
public class NodeForLogicalOperation
- extends ExpressionNode
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 java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
operator
public java.util.Vector operator
NodeForLogicalOperation
public NodeForLogicalOperation(int id)
NodeForLogicalOperation
public NodeForLogicalOperation(ExpressionParser p,
int id)
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