Class RhinoFunctionInvoker

java.lang.Object
io.higson.runtime.invoker.RhinoFunctionInvoker
All Implemented Interfaces:
FunctionInvoker

public class RhinoFunctionInvoker extends Object implements FunctionInvoker
Author:
przemek hertel
  • Constructor Details

    • RhinoFunctionInvoker

      public RhinoFunctionInvoker(FunctionLoggerCreator functionLoggerCreator)
    • RhinoFunctionInvoker

      public RhinoFunctionInvoker()
  • Method Details

    • invoke

      public Object invoke(Function function, Object... args)
      Description copied from interface: FunctionInvoker
      Invoke function, it is a good practice to wrap any outgoing exceptions with SmartParamException with FUNCTION_INVOKE_ERROR reason.
      Specified by:
      invoke in interface FunctionInvoker
      Parameters:
      function - description of function to invoke
      args - arguments
      Returns:
      evaluated value (can be null)
    • invalidate

      public void invalidate(int functionId)
    • invalidate

      public void invalidate()
    • addGlobalObject

      public void addGlobalObject(String code, Object obj)
    • addGlobalObject

      public void addGlobalObject(FunctionCode functionCode, Object obj)
    • getGlobalObjects

      public Map<String,Object> getGlobalObjects()
    • initContextFactory

      public void initContextFactory(org.mozilla.javascript.ContextFactory factory)
    • getCompileCacheSnapshot

      public Map<Integer,org.mozilla.javascript.Function> getCompileCacheSnapshot()