Class GroovyFunctionInvoker

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

public class GroovyFunctionInvoker extends Object implements FunctionInvoker
  • Constructor Details

    • GroovyFunctionInvoker

      public GroovyFunctionInvoker(FunctionLoggerCreator functionLoggerCreator, boolean groovySecured, boolean indy)
    • GroovyFunctionInvoker

      public GroovyFunctionInvoker()
  • 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)
    • invoke

      public Object invoke(Function function, GroovyCache cache, Object... args)
    • addGlobalObject

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

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

      public void invalidate(int implId)
    • invalidate

      public void invalidate()
    • getCompileCacheSnapshot

      public Map<Integer,CompiledGroovyFunction> getCompileCacheSnapshot()
    • getBoundVariable

      public Object getBoundVariable(String name)