Class JadeJexlArithmetic


  • public class JadeJexlArithmetic
    extends org.apache.commons.jexl2.JexlArithmetic
    • Field Summary

      • Fields inherited from class org.apache.commons.jexl2.JexlArithmetic

        BIGD_DOUBLE_MAX_VALUE, BIGD_DOUBLE_MIN_VALUE, BIGD_SCALE, BIGI_LONG_MAX_VALUE, BIGI_LONG_MIN_VALUE, mathContext, mathScale
    • Constructor Summary

      Constructors 
      Constructor Description
      JadeJexlArithmetic​(boolean lenient)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object add​(java.lang.Object left, java.lang.Object right)  
      protected int compare​(java.lang.Object left, java.lang.Object right, java.lang.String operator)  
      boolean toBoolean​(java.lang.Object val)
      using the original implementation added check for empty lists defaulting to "true"
      • Methods inherited from class org.apache.commons.jexl2.JexlArithmetic

        bitwiseAnd, bitwiseComplement, bitwiseOr, bitwiseXor, controlNullNullOperands, controlNullOperand, divide, equals, getMathContext, getMathScale, greaterThan, greaterThanOrEqual, isFloatingPoint, isFloatingPointNumber, isFloatingPointType, isLenient, isNumberable, lessThan, lessThanOrEqual, matches, mod, multiply, narrow, narrowAccept, narrowArguments, narrowArrayType, narrowBigDecimal, narrowBigInteger, narrowNumber, negate, roundBigDecimal, setLenient, subtract, toBigDecimal, toBigInteger, toDouble, toInteger, toLong, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JadeJexlArithmetic

        public JadeJexlArithmetic​(boolean lenient)
    • Method Detail

      • compare

        protected int compare​(java.lang.Object left,
                              java.lang.Object right,
                              java.lang.String operator)
        Overrides:
        compare in class org.apache.commons.jexl2.JexlArithmetic
      • toBoolean

        public boolean toBoolean​(java.lang.Object val)
        using the original implementation added check for empty lists defaulting to "true"
        Overrides:
        toBoolean in class org.apache.commons.jexl2.JexlArithmetic
      • add

        public java.lang.Object add​(java.lang.Object left,
                                    java.lang.Object right)
        Overrides:
        add in class org.apache.commons.jexl2.JexlArithmetic