@Api public interface Function
| Modifier and Type | Interface and Description |
|---|---|
static class |
Function.FunctionAccessibility |
| Modifier and Type | Method and Description |
|---|---|
void |
addOverride(FunctionOverride override)
Adds override to the list of overrides
|
<T> T |
call(List<Type<?>> parameterTypes,
Object... args)
Invokes this function with given arguments.
|
<T> T |
call(Object... args)
Invokes this function with given arguments.
|
<T> T |
call(Type<?> returnType,
List<Type<?>> parameterTypes,
Object... args) |
<T> T |
call(Type<?> returnType,
Object... args) |
String |
getName()
Returns unique function name.
|
FunctionOverride |
getOverride(Object... args)
Returns this function override that matches given arguments.
|
FunctionOverride |
getOverride(Type<?>... parameterTypes)
Returns this function override that matches given parameter types.
|
FunctionOverride |
getOverride(Type<?> returnType,
Object... args) |
FunctionOverride |
getOverride(Type<?> returnType,
Type<?>... parameterTypes) |
List<FunctionOverride> |
getOverrides()
Returns list of available overrides (at least 1).
|
String getName()
FunctionRegistry.List<FunctionOverride> getOverrides()
FunctionOverride getOverride(Type<?>... parameterTypes)
parameterTypes - parameter typesFunctionOverride getOverride(Type<?> returnType, Type<?>... parameterTypes)
FunctionOverride getOverride(Object... args)
args - invocation argsFunctionOverride getOverride(Type<?> returnType, Object... args)
void addOverride(FunctionOverride override)
override - Override to add<T> T call(Object... args) throws FunctionCallException
FunctionOverride.call(Object...) function. Returns call result.args - call argumentsFunctionCallException - in case of error<T> T call(Type<?> returnType, Object... args) throws FunctionCallException
FunctionCallException<T> T call(List<Type<?>> parameterTypes, Object... args) throws FunctionCallException
FunctionOverride.call(Object...) result.parameterTypes - parameter typesargs - call argumentsFunctionCallException - in case of error<T> T call(Type<?> returnType, List<Type<?>> parameterTypes, Object... args) throws FunctionCallException
FunctionCallExceptionCopyright © 2023 Suncode. All rights reserved.