public abstract class ArrayMathFunction extends BaseFunction
Subclasses can operate on any type of elements, and must provide that type
as argument when calling super.
| Constructor and Description |
|---|
ArrayMathFunction(ArgumentConstraint innerConstraint) |
| Modifier and Type | Method and Description |
|---|---|
protected <T> T |
callFunction(Adapter<T> runtime,
List<FunctionArgument<T>> arguments)
Called from
BaseFunction.call(io.burt.jmespath.Adapter<T>, java.util.List<io.burt.jmespath.function.FunctionArgument<T>>) after the argument constraints have been checked
against the arguments. |
protected abstract <T> T |
performMathOperation(Adapter<T> runtime,
List<T> values)
Subclasses implement this method.
|
argumentConstraints, call, namepublic ArrayMathFunction(ArgumentConstraint innerConstraint)
protected <T> T callFunction(Adapter<T> runtime, List<FunctionArgument<T>> arguments)
BaseFunctionBaseFunction.call(io.burt.jmespath.Adapter<T>, java.util.List<io.burt.jmespath.function.FunctionArgument<T>>) after the argument constraints have been checked
against the arguments.
May perform additional type checking and throw ArgumentTypeException.
For example when using expressions there is currently no way to check the
types produced by those expressions without running the function. Functions
that accept expressions are responsible for checking the types of the values
produced by those expressions.
callFunction in class BaseFunctionCopyright © 2016–2023. All rights reserved.