com.japisoft.formula.operator.binary
Class ADDOperator

java.lang.Object
  |
  +--com.japisoft.formula.operator.binary.ADDOperator
All Implemented Interfaces:
BinaryOperator

public class ADDOperator
extends java.lang.Object
implements BinaryOperator

Add operator : A+B

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

Field Summary
static java.lang.String NAME
           
 
Constructor Summary
ADDOperator()
           
 
Method Summary
 java.lang.Object eval(OperatorContext context)
          Eval this expression and return the operation result
static java.lang.Object evalForList(java.lang.Object value1, java.lang.Object value2)
           
static java.lang.Object evalForString(java.lang.Object value1, java.lang.Object value2)
           
 
Methods inherited from class java.lang.Object
equals, 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

ADDOperator

public ADDOperator()
Method Detail

evalForList

public static java.lang.Object evalForList(java.lang.Object value1,
                                           java.lang.Object value2)

evalForString

public static java.lang.Object evalForString(java.lang.Object value1,
                                             java.lang.Object value2)

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
EvaluateException