net.christopherschultz.evaluator.function
Class BinaryOperator.NotEqual

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.Equal
                  extended by net.christopherschultz.evaluator.function.BinaryOperator.NotEqual
All Implemented Interfaces:
Function
Enclosing class:
BinaryOperator

public static class BinaryOperator.NotEqual
extends BinaryOperator.Equal

Implements unequal. This class respects the value of the EvaluationContext property MathFunction.ALLOW_NULL_COMPARISON.


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.NotEqual()
           
 
Method Summary
 Object call(EvaluationContext ec, String functionName, Object[] args)
          Checks for exactly two arguments and calls the subclass's 2-argument call function.
 
Methods inherited from class net.christopherschultz.evaluator.function.BinaryOperator.Equal
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.NotEqual

public BinaryOperator.NotEqual()
Method Detail

call

public Object call(EvaluationContext ec,
                   String functionName,
                   Object[] args)
            throws EvaluationException
Description copied from class: BinaryOperator
Checks for exactly two arguments and calls the subclass's 2-argument call function.

Overrides:
call in class BinaryOperator
Parameters:
ec - The EvaluationContext in which this function is being called.
functionName - The name of the function being invoked.
args - The argument values to pass to this function.
Returns:
The result of the function.
Throws:
EvaluationException - If there is an error during function execution.