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.3 $
Author:
James Strachan

Constructor Summary
Script()
           
 
Method Summary
 groovy.lang.ScriptContext getBindings()
           
 Object getProperty(String property)
           
abstract  Object run()
          The main instance method of a script which has variables in scope as defined by the current ShellContext instance
 void setBindings(groovy.lang.ScriptContext bindings)
           
 void setProperty(String property, 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

Script

public Script()
Method Detail

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.