net.christopherschultz.evaluator.function
Class BinaryOperator.Add

java.lang.Object
  extended by net.christopherschultz.evaluator.StandardFunction
      extended by net.christopherschultz.evaluator.function.MathFunction
          extended by net.christopherschultz.evaluator.function.BinaryOperator
              extended by net.christopherschultz.evaluator.function.BinaryOperator.Add
All Implemented Interfaces:
Function
Enclosing class:
BinaryOperator

public static class BinaryOperator.Add
extends BinaryOperator

Implements addition.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.christopherschultz.evaluator.function.BinaryOperator
BinaryOperator.Add, BinaryOperator.And, BinaryOperator.Divide, BinaryOperator.Equal, BinaryOperator.Greater, BinaryOperator.GreaterEqual, BinaryOperator.IncompatibleArgumentsException, BinaryOperator.Less, BinaryOperator.LessEqual, BinaryOperator.Modulus, BinaryOperator.Multiply, BinaryOperator.NotEqual, BinaryOperator.Or, BinaryOperator.Subtract
 
Nested classes/interfaces inherited from class net.christopherschultz.evaluator.function.MathFunction
MathFunction.abs, MathFunction.acos, MathFunction.asin, MathFunction.atan, MathFunction.ceil, MathFunction.cos, MathFunction.DoubleFunction, MathFunction.exp, MathFunction.floor, MathFunction.heaviside, MathFunction.log, MathFunction.max, MathFunction.min, MathFunction.pow, MathFunction.random, MathFunction.rint, MathFunction.sin, MathFunction.sqrt, MathFunction.tan, MathFunction.toDegrees, MathFunction.toRadians
 
Field Summary
 
Fields inherited from class net.christopherschultz.evaluator.function.MathFunction
ALLOW_NULL_COMPARISON, NULL_RETURNS_NULL
 
Constructor Summary
BinaryOperator.Add()
           
 
Method Summary
 Object call(EvaluationContext ec, Object lvalue, Object rvalue)
           
 
Methods inherited from class net.christopherschultz.evaluator.function.BinaryOperator
call
 
Methods inherited from class net.christopherschultz.evaluator.StandardFunction
call, getExpressionValue, getExpressionValueArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinaryOperator.Add

public BinaryOperator.Add()
Method Detail

call

public Object call(EvaluationContext ec,
                   Object lvalue,
                   Object rvalue)
            throws EvaluationException
Specified by:
call in class BinaryOperator
Throws:
EvaluationException