Interface GroovySandbox.Scope
-
- All Superinterfaces:
AutoCloseable
- Enclosing class:
- GroovySandbox
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface GroovySandbox.Scope extends AutoCloseable
Handle for exiting the dynamic scope of the Groovy sandbox.- See Also:
GroovySandbox.enter()
-
-
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 ofGroovyShell.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 ofGroovyShell.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.
-
close
void close()
- Specified by:
close
in interfaceAutoCloseable
-
-