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
      Object add​(Object left, Object right)  
      protected int compare​(Object left, Object right, String operator)  
      boolean toBoolean​(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, subtract, toBigDecimal, toBigInteger, toDouble, toInteger, toLong, toString
    • Constructor Detail

      • JadeJexlArithmetic

        public JadeJexlArithmetic​(boolean lenient)
    • Method Detail

      • compare

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

        public boolean toBoolean​(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 Object add​(Object left,
                          Object right)
        Overrides:
        add in class org.apache.commons.jexl2.JexlArithmetic