interface WritableScript extends Writable, WriterProvider
Interface for scripts that are writable
| Type | Name and description |
|---|---|
Binding |
binding |
File |
sourceFile |
| Type Params | Return Type | Name and description |
|---|---|---|
|
abstract Binding |
getBinding()
|
|
abstract File |
getSourceFile()Obtains the source file |
|
abstract Object |
run()Runs the script and returns the result |
|
abstract void |
setBinding(Binding binding)Sets the binding |
|
abstract void |
setSourceFile(File file)
|
| Methods inherited from class | Name |
|---|---|
interface Writable |
writeTo |
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