@groovy.transform.CompileStatic interface WritableScript extends groovy.lang.Writable, WriterProvider
Interface for scripts that are writable
| Type | Name and description |
|---|---|
groovy.lang.Binding |
binding |
java.io.File |
sourceFile |
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract groovy.lang.Binding |
getBinding()
|
|
abstract java.io.File |
getSourceFile()Obtains the source file |
|
abstract java.lang.Object |
run()Runs the script and returns the result |
|
abstract void |
setBinding(groovy.lang.Binding binding)Sets the binding |
|
abstract void |
setSourceFile(java.io.File file)
|
| Methods inherited from class | Name |
|---|---|
interface groovy.lang.Writable |
groovy.lang.Writable#writeTo(java.io.Writer) |
interface WriterProvider |
getOut |
Obtains the source file
Runs the script and returns the result
Sets the binding
binding - The binding
file - Sets the source file