Class GroovyScriptHelper

java.lang.Object
com.axelor.script.AbstractScriptHelper
com.axelor.script.GroovyScriptHelper
All Implemented Interfaces:
ScriptHelper

public class GroovyScriptHelper extends AbstractScriptHelper
  • Constructor Details

    • GroovyScriptHelper

      public GroovyScriptHelper(Bindings bindings)
    • GroovyScriptHelper

      public GroovyScriptHelper(Context context)
  • Method Details

    • withTimeout

      public GroovyScriptHelper withTimeout(long timeout)
    • eval

      public Object eval(String expr, Bindings bindings) throws Exception
      Description copied from interface: ScriptHelper
      Evaluate the given expression with the given bindings.
      Parameters:
      expr - the expression to evaluate
      bindings - the context bindings
      Returns:
      expression result
      Throws:
      Exception