Interface Script

All Superinterfaces:
AutoCloseable, Closeable

public interface Script extends Closeable
Encapsulate an executable script.
  • Method Summary

    Modifier and Type
    Method
    Description
    run(Map<String,Object> bindings)
    Runs this script with the provided bindings.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • run

      Object run(Map<String,Object> bindings) throws ScriptException
      Runs this script with the provided bindings.
      Parameters:
      bindings - bindings available to the execution of the script
      Returns:
      the result of the script's execution
      Throws:
      ScriptException - if execution failed