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 |
|---|---|---|
|
groovy.lang.Binding |
getBinding()@return Obtains the binding |
|
java.io.File |
getSourceFile()Obtains the source file |
|
java.lang.Object |
run()Runs the script and returns the result |
|
void |
setBinding(groovy.lang.Binding binding)Sets the binding |
|
void |
setSourceFile(java.io.File file)@param file Sets the source 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