@FunctionalInterface public static interface GroovySandbox.Scope extends AutoCloseable
GroovySandbox.enter()
Modifier and Type | Method and 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. |
default groovy.lang.Script parse(groovy.lang.GroovyShell shell, groovy.lang.GroovyCodeSource codeSource)
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.
void close()
close
in interface AutoCloseable
Copyright © 2016–2023. All rights reserved.