|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.lang.Script
This object represents a Groovy script
Constructor Summary | |
Script()
|
Method Summary | |
Binding |
getBinding()
|
java.lang.Object |
getProperty(java.lang.String property)
|
void |
print(java.lang.Object value)
Prints the value to the current 'out' variable which should be a PrintWriter or at least have a print() method defined on it. |
void |
println()
Prints a newline to the current 'out' variable which should be a PrintWriter or at least have a println() method defined on it. |
void |
println(java.lang.Object value)
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. |
abstract java.lang.Object |
run()
The main instance method of a script which has variables in scope as defined by the current Binding instance. |
void |
setBinding(Binding binding)
|
void |
setProperty(java.lang.String property,
java.lang.Object newValue)
Sets the given property to the new value |
Methods inherited from class groovy.lang.GroovyObjectSupport |
getMetaClass, invokeMethod, setMetaClass |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Script()
Method Detail |
public Binding getBinding()
public void setBinding(Binding binding)
public java.lang.Object getProperty(java.lang.String property)
getProperty
in interface GroovyObject
getProperty
in class GroovyObjectSupport
public void setProperty(java.lang.String property, java.lang.Object newValue)
GroovyObject
setProperty
in interface GroovyObject
setProperty
in class GroovyObjectSupport
public abstract java.lang.Object run()
Binding
instance.
public void println()
public void print(java.lang.Object value)
public void println(java.lang.Object value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |