Interface GroovySandbox.Scope

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      void close()  
      default groovy.lang.Script parse​(groovy.lang.GroovyShell shell, groovy.lang.GroovyCodeSource codeSource)
      Variant of GroovyShell.parse(String) that intercepts potentially unsafe calls when the script is created.
    • Method Detail

      • parse

        default groovy.lang.Script parse​(groovy.lang.GroovyShell shell,
                                         groovy.lang.GroovyCodeSource codeSource)
        Variant of GroovyShell.parse(String) that intercepts potentially unsafe calls when the script is created.

        GroovySandbox.runScript(GroovyShell, String) should be used instead of this method in most cases.