groovy.lang
Class Script
java.lang.Object
|
+--groovy.lang.GroovyObjectSupport
|
+--groovy.lang.Script
- All Implemented Interfaces:
- GroovyObject
- public abstract class Script
- extends GroovyObjectSupport
This object represents a Groovy script
- Version:
- $Revision: 1.2 $
- Author:
- James Strachan
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Script
public Script()
Script
public Script(Object object)
getBindings
public groovy.lang.ScriptContext getBindings()
setBindings
public void setBindings(groovy.lang.ScriptContext bindings)
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interface GroovyObject
- Overrides:
getProperty
in class GroovyObjectSupport
- Returns:
- the given property
setProperty
public void setProperty(String property,
Object newValue)
- Description copied from interface:
GroovyObject
- Sets the given property to the new value
- Specified by:
setProperty
in interface GroovyObject
- Overrides:
setProperty
in class GroovyObjectSupport
run
public abstract Object run()
- The main instance method of a script which has variables in scope
as defined by the current
ShellContext
instance
- Returns:
Copyright © 2003 The Codehaus. All Rights Reserved.