Package io.dialob.rule.parser.function
Interface FunctionRegistry
-
public interface FunctionRegistry
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceFunctionRegistry.FunctionCallback
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidconfigureFunction(@NotNull String functionName, @NotNull Class<?> implementationClass, boolean async)voidconfigureFunction(@NotNull String functionName, @NotNull String implementationName, @NotNull Class<?> implementationClass, boolean async)voidinvokeFunction(FunctionRegistry.FunctionCallback callback, @NotNull String functionName, Object... args)voidinvokeFunctionAsync(FunctionRegistry.FunctionCallback callback, @NotNull String functionName, Object... args)booleanisAsyncFunction(String functionName)@NotNull ValueTypereturnTypeOf(@NotNull String functionName, ValueType... argTypes)
-
-
-
Method Detail
-
returnTypeOf
@NotNull @NotNull ValueType returnTypeOf(@NotNull @NotNull String functionName, ValueType... argTypes) throws VariableNotDefinedException
- Throws:
VariableNotDefinedException
-
isAsyncFunction
boolean isAsyncFunction(String functionName)
-
invokeFunction
void invokeFunction(FunctionRegistry.FunctionCallback callback, @NotNull @NotNull String functionName, Object... args)
-
invokeFunctionAsync
void invokeFunctionAsync(FunctionRegistry.FunctionCallback callback, @NotNull @NotNull String functionName, Object... args)
-
configureFunction
void configureFunction(@NotNull @NotNull String functionName, @NotNull @NotNull String implementationName, @NotNull @NotNull Class<?> implementationClass, boolean async)
-
-