public abstract class TransformByFunction extends BaseFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
TransformByFunction.Aggregator<V> |
| Constructor and Description |
|---|
TransformByFunction() |
| 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> TransformByFunction.Aggregator<T> |
createAggregator(Adapter<T> runtime,
int elementCount,
T element,
T elementValue) |
protected abstract <T> T |
createNullValue(Adapter<T> runtime) |
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 <T> TransformByFunction.Aggregator<T> createAggregator(Adapter<T> runtime, int elementCount, T element, T elementValue)
protected abstract <T> T createNullValue(Adapter<T> runtime)
Copyright © 2016–2021. All rights reserved.