Package io.higson.runtime.invoker
Class RhinoFunctionInvoker
java.lang.Object
io.higson.runtime.invoker.RhinoFunctionInvoker
- All Implemented Interfaces:
FunctionInvoker
- Author:
- przemek hertel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddGlobalObject(FunctionCode functionCode, Object obj) voidaddGlobalObject(String code, Object obj) voidinitContextFactory(org.mozilla.javascript.ContextFactory factory) voidvoidinvalidate(int functionId) Invoke function, it is a good practice to wrap any outgoing exceptions withSmartParamExceptionwith FUNCTION_INVOKE_ERROR reason.
-
Constructor Details
-
RhinoFunctionInvoker
-
RhinoFunctionInvoker
public RhinoFunctionInvoker()
-
-
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)
-
invalidate
public void invalidate(int functionId) -
invalidate
public void invalidate() -
addGlobalObject
-
addGlobalObject
-
getGlobalObjects
-
initContextFactory
public void initContextFactory(org.mozilla.javascript.ContextFactory factory) -
getCompileCacheSnapshot
-