AbsFunction, ArrayMathFunction, AvgFunction, BaseFunction, CeilFunction, CompareByFunction, CompareFunction, ContainsFunction, EndsWithFunction, FloorFunction, JoinFunction, KeysFunction, LengthFunction, MapFunction, MathFunction, MaxByFunction, MaxFunction, MergeFunction, MinByFunction, MinFunction, NotNullFunction, ReverseFunction, SortByFunction, SortFunction, StartsWithFunction, SumFunction, ToArrayFunction, ToNumberFunction, ToStringFunction, TransformByFunction, TypeFunction, ValuesFunctionpublic interface Function
BaseFunction to get
argument type checking, etc.| Modifier and Type | Method | Description |
|---|---|---|
ArgumentConstraint |
argumentConstraints() |
Returns the constraints to use when checking the list of arguments before
the function is called.
|
<T> T |
call(Adapter<T> runtime,
List<FunctionArgument<T>> arguments) |
Call this function with a list of arguments.
|
String |
name() |
Returns the name of the function.
|
String name()
The name is either automatically generated from the class name, or explicitly specified in the constructor.
ArgumentConstraint argumentConstraints()
<T> T call(Adapter<T> runtime, List<FunctionArgument<T>> arguments)
The arguments can be either values or expressions, and their types will be checked before proceeding with the call.
ArgumentTypeException - when the function is called with arguments of the wrong typeArityException - when the function is called with the wrong number of argumentsCopyright © 2016–2019. All rights reserved.