public abstract class CompareByFunction extends BaseFunction
| Constructor and Description |
|---|
CompareByFunction() |
| 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 boolean |
sortsBefore(int compareResult)
Subclasses override this method to decide whether the greatest or least
element sorts first.
|
call, checkArguments, nameprotected abstract boolean sortsBefore(int compareResult)
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. All rights reserved.