csheets.core.formula
Interface BinaryOperator

All Superinterfaces:
Operator, Serializable
All Known Implementing Classes:
Adder, Concatenator, Divider, Equal, Exponentiator, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, Multiplier, NotEqual, RangeReference, RelationalOperator, Subtracter

public interface BinaryOperator
extends Operator

A binary operator in a formula.

Author:
Einar Pehrson

Method Summary
 Value applyTo(Expression leftOperand, Expression rightOperand)
          Applies the operator to the given operands and returns the result.
 
Methods inherited from interface csheets.core.formula.Operator
getIdentifier, getOperandValueType
 

Method Detail

applyTo

Value applyTo(Expression leftOperand,
              Expression rightOperand)
              throws IllegalValueTypeException
Applies the operator to the given operands and returns the result.

Returns:
the result of the operation
Throws:
IllegalValueTypeException - if the value of an operand is not of the expected type