FunctionAbsFunction, CeilFunction, FloorFunctionpublic abstract class MathFunction extends BaseFunction
| Constructor | Description |
|---|---|
MathFunction() |
| Modifier and Type | Method | 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 double |
performMathOperation(double n) |
Subclasses implement this method.
|
argumentConstraints, call, nameprotected <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 BaseFunctionprotected abstract double performMathOperation(double n)
Copyright © 2016–2019. All rights reserved.