@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.
|
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.
|
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(Object... args)
args
- invocation argsvoid 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(List<Type<?>> parameterTypes, Object... args) throws FunctionCallException
FunctionOverride.call(Object...)
result.parameterTypes
- parameter typesargs
- call argumentsFunctionCallException
- in case of errorCopyright © 2019 Suncode. All rights reserved.