com.japisoft.formula.node
Class BinaryOperatorNode

java.lang.Object
  extended bycom.japisoft.formula.node.AbstractNode
      extended bycom.japisoft.formula.node.OperatorNode
          extended bycom.japisoft.formula.node.BinaryOperatorNode

public class BinaryOperatorNode
extends OperatorNode

This operator uses two double operands. Bad type or bad child count will throw an EvaluateException.

Version:
1.1
Author:
(c) 2002-2003 JAPISOFT / A.Brillant

Constructor Summary
BinaryOperatorNode()
           
 
Method Summary
 java.lang.Object evaluate(NodeContext ctx)
           
 
Methods inherited from class com.japisoft.formula.node.OperatorNode
getOperator, getPrettyOperator, setOperator
 
Methods inherited from class com.japisoft.formula.node.AbstractNode
addChildNode, dump, getChildAt, getChildCount, getContent, getPos, isLeaf, setContent, setOp, setPos
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryOperatorNode

public BinaryOperatorNode()
Method Detail

evaluate

public java.lang.Object evaluate(NodeContext ctx)
                          throws EvaluateException
Specified by:
evaluate in class AbstractNode
Returns:
the formula result
Throws:
EvaluateException