Class Uberspect.ArithmeticUberspect
java.lang.Object
org.apache.commons.jexl3.internal.introspection.Uberspect.ArithmeticUberspect
- All Implemented Interfaces:
JexlArithmetic.Uberspect
- Enclosing class:
Uberspect
The concrete uberspect Arithmetic class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JexlArithmetic
The arithmetic instance being analyzed.private final Set
<JexlOperator> The set of overloaded operators. -
Constructor Summary
ConstructorsConstructorDescriptionArithmeticUberspect
(JexlArithmetic theArithmetic, Set<JexlOperator> theOverloads) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptiongetOperator
(JexlOperator operator, Object... args) Gets the most specific method for an operator.boolean
overloads
(JexlOperator operator) Checks whether this uberspect has overloads for a given operator.
-
Field Details
-
arithmetic
The arithmetic instance being analyzed. -
overloads
The set of overloaded operators.
-
-
Constructor Details
-
ArithmeticUberspect
ArithmeticUberspect(JexlArithmetic theArithmetic, Set<JexlOperator> theOverloads) Creates an instance.- Parameters:
theArithmetic
- the arithmetic instancetheOverloads
- the overloaded operators
-
-
Method Details
-
getOperator
Description copied from interface:JexlArithmetic.Uberspect
Gets the most specific method for an operator.- Specified by:
getOperator
in interfaceJexlArithmetic.Uberspect
- Parameters:
operator
- the operatorargs
- the arguments- Returns:
- the most specific method or null if no specific override could be found
-
overloads
Description copied from interface:JexlArithmetic.Uberspect
Checks whether this uberspect has overloads for a given operator.- Specified by:
overloads
in interfaceJexlArithmetic.Uberspect
- Parameters:
operator
- the operator to check- Returns:
- true if an overload exists, false otherwise
-