Class PugJexlArithmetic


  • public class PugJexlArithmetic
    extends org.apache.commons.jexl3.JexlArithmetic
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.commons.jexl3.JexlArithmetic

        org.apache.commons.jexl3.JexlArithmetic.ArrayBuilder, org.apache.commons.jexl3.JexlArithmetic.MapBuilder, org.apache.commons.jexl3.JexlArithmetic.NullOperand, org.apache.commons.jexl3.JexlArithmetic.SetBuilder, org.apache.commons.jexl3.JexlArithmetic.Uberspect
    • Field Summary

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

        BIGD_DOUBLE_MAX_VALUE, BIGD_DOUBLE_MIN_VALUE, BIGD_SCALE, BIGI_LONG_MAX_VALUE, BIGI_LONG_MIN_VALUE, FLOAT_PATTERN
    • Constructor Summary

      Constructors 
      Constructor Description
      PugJexlArithmetic​(boolean astrict)  
    • 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.jexl3.JexlArithmetic

        and, arrayBuilder, bitwiseAnd, bitwiseOr, bitwiseXor, complement, contains, controlNullNullOperands, controlNullOperand, createRange, createWithOptions, divide, endsWith, equals, getMathContext, getMathScale, greaterThan, greaterThanOrEqual, isEmpty, isFloatingPoint, isFloatingPointNumber, isNumberable, isStrict, lessThan, lessThanOrEqual, logicalNot, mapBuilder, matches, mod, multiply, narrow, narrowAccept, narrowArguments, narrowBigDecimal, narrowBigInteger, narrowNumber, negate, not, options, options, or, roundBigDecimal, setBuilder, size, startsWith, subtract, toBigDecimal, toBigInteger, toDouble, toInteger, toLong, toString, xor
    • Constructor Detail

      • PugJexlArithmetic

        public PugJexlArithmetic​(boolean astrict)
    • Method Detail

      • compare

        protected int compare​(Object left,
                              Object right,
                              String operator)
        Overrides:
        compare in class org.apache.commons.jexl3.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.jexl3.JexlArithmetic
      • add

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