| java.lang.Object groovy.lang.GroovyObjectSupport groovy.lang.Script
Script | protected Script()(Code) | | |
evaluate | public Object evaluate(String expression) throws CompilationFailedException, IOException(Code) | | A helper method to allow the dynamic evaluation of groovy expressions using this
scripts binding as the variable scope
Parameters: expression - is the Groovy script expression to evaluate |
evaluate | public Object evaluate(File file) throws CompilationFailedException, IOException(Code) | | A helper method to allow the dynamic evaluation of groovy expressions using this
scripts binding as the variable scope
Parameters: file - is the Groovy script to evaluate |
invokeMethod | public Object invokeMethod(String name, Object args)(Code) | | Invoke a method (or closure in the binding) defined.
Parameters: name - method to call Parameters: args - arguments to pass to the method value |
print | public void print(Object value)(Code) | | Prints the value to the current 'out' variable which should be a PrintWriter
or at least have a print() method defined on it.
If there is no 'out' property then print to standard out.
|
println | public void println()(Code) | | Prints a newline to the current 'out' variable which should be a PrintWriter
or at least have a println() method defined on it.
If there is no 'out' property then print to standard out.
|
println | public void println(Object value)(Code) | | Prints the value and a newline to the current 'out' variable which should be a PrintWriter
or at least have a println() method defined on it.
If there is no 'out' property then print to standard out.
|
run | abstract public Object run()(Code) | | The main instance method of a script which has variables in scope
as defined by the current
Binding instance.
|
|
|