com.japisoft.formula.operator.binary
Class XOROperator

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

public class XOROperator
extends java.lang.Object
implements BinaryOperator

A ~ B => A xor B

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

Field Summary
static java.lang.String NAME
           
 
Constructor Summary
XOROperator()
           
 
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

XOROperator

public XOROperator()
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