public interface Function
BaseFunction to get
argument type checking, etc.| Modifier and Type | Method and 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–2021. All rights reserved.