Package io.higson.runtime.invoker
Class GroovyFunctionInvoker
java.lang.Object
io.higson.runtime.invoker.GroovyFunctionInvoker
- All Implemented Interfaces:
FunctionInvoker
-
Constructor Summary
ConstructorsConstructorDescriptionGroovyFunctionInvoker(FunctionLoggerCreator functionLoggerCreator, boolean groovySecured, boolean indy) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGlobalObject(FunctionCode functionCode, Object obj) voidaddGlobalObject(String code, Object obj) getBoundVariable(String name) voidvoidinvalidate(int implId) invoke(Function function, GroovyCache cache, Object... args) Invoke function, it is a good practice to wrap any outgoing exceptions withSmartParamExceptionwith FUNCTION_INVOKE_ERROR reason.
-
Constructor Details
-
GroovyFunctionInvoker
public GroovyFunctionInvoker(FunctionLoggerCreator functionLoggerCreator, boolean groovySecured, boolean indy) -
GroovyFunctionInvoker
public GroovyFunctionInvoker()
-
-
Method Details
-
invoke
Description copied from interface:FunctionInvokerInvoke function, it is a good practice to wrap any outgoing exceptions withSmartParamExceptionwith FUNCTION_INVOKE_ERROR reason.- Specified by:
invokein interfaceFunctionInvoker- Parameters:
function- description of function to invokeargs- arguments- Returns:
- evaluated value (can be null)
-
invoke
-
addGlobalObject
-
addGlobalObject
-
invalidate
public void invalidate(int implId) -
invalidate
public void invalidate() -
getCompileCacheSnapshot
-
getBoundVariable
-