com.japisoft.formula.operator.binary
Class IFOperator

java.lang.Object
  extended bycom.japisoft.formula.operator.binary.IFOperator
All Implemented Interfaces:
BinaryOperator

public class IFOperator
extends java.lang.Object
implements BinaryOperator

If Then operator : IF A then B

Version:
1.0
Author:
(c) 2004 JAPISoft / http://www.japisoft.com

Field Summary
static java.lang.String NAME
           
 
Constructor Summary
IFOperator()
           
 
Method Summary
 java.lang.Object eval(OperatorContext context)
          Eval this expression and return the operation result
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

IFOperator

public IFOperator()
Method Detail

eval

public java.lang.Object eval(OperatorContext context)
                      throws EvaluateException
Description copied from interface: BinaryOperator
Eval this expression and return the operation result

Specified by:
eval in interface BinaryOperator
Parameters:
context - Evaluation context, useful for getting the operands
Returns:
The operation result
Throws:
EvaluateException