@Api public interface FunctionOverride
Modifier and Type | Method and Description |
---|---|
<T> T |
call(Object... args)
Invokes this function override with given arguments.
|
Function.FunctionAccessibility |
getAccessibility()
Specify place (server, browser) where function can be executed.
|
String |
getDeprecationDescription()
Returns description if this function is deprecated.
|
String |
getDescription()
Returns short function description.
|
Function |
getFunction()
Returns function instance that holds this override.
|
String |
getName()
Returns function name.
|
List<ParameterDefinition<?>> |
getParameters()
Returns list of function override parameters.
|
Type<?>[] |
getParameterTypes()
Returns function override parameter types.
|
String |
getReplacement()
Returns replacement function if this function is deprecated.
|
Type<?> |
getReturnType()
Returns function override result type.
|
boolean |
isContext()
Specify if function's returned value depends not only from function input arguments but also
from invocation context.
|
boolean |
isDeprecated()
Returns if the function is deprecated.
|
String getName()
String getDescription()
Function getFunction()
List<ParameterDefinition<?>> getParameters()
boolean isContext()
Function.FunctionAccessibility getAccessibility()
Type<?>[] getParameterTypes()
Type<?> getReturnType()
<T> T call(Object... args) throws FunctionCallException
args
- call argumentsFunctionCallException
- in case of errorboolean isDeprecated()
String getReplacement()
String getDeprecationDescription()
Copyright © 2023 Suncode. All rights reserved.