Class Uberspect.ArithmeticUberspect

    • Field Detail

      • arithmetic

        private final JexlArithmetic arithmetic
        The arithmetic instance being analyzed.
      • overloads

        private final java.util.Set<JexlOperator> overloads
        The set of overloaded operators.
    • Constructor Detail

      • ArithmeticUberspect

        ArithmeticUberspect​(JexlArithmetic theArithmetic,
                            java.util.Set<JexlOperator> theOverloads)
        Creates an instance.
        Parameters:
        theArithmetic - the arithmetic instance
        theOverloads - the overloaded operators
    • Method Detail

      • getOperator

        public JexlMethod getOperator​(JexlOperator operator,
                                      java.lang.Object... args)
        Description copied from interface: JexlArithmetic.Uberspect
        Gets the most specific method for an operator.
        Specified by:
        getOperator in interface JexlArithmetic.Uberspect
        Parameters:
        operator - the operator
        args - the arguments
        Returns:
        the most specific method or null if no specific override could be found
      • overloads

        public boolean overloads​(JexlOperator operator)
        Description copied from interface: JexlArithmetic.Uberspect
        Checks whether this uberspect has overloads for a given operator.
        Specified by:
        overloads in interface JexlArithmetic.Uberspect
        Parameters:
        operator - the operator to check
        Returns:
        true if an overload exists, false otherwise