groovy.lang
Class ScriptContext

java.lang.Object
  |
  +--groovy.lang.ScriptContext

public class ScriptContext
extends Object

Represents the variable bindings of a script which can be altered from outside the script object.

Version:
$Revision: 1.1 $
Author:
James Strachan

Constructor Summary
ScriptContext()
           
ScriptContext(String[] args)
          A helper constructor used in main(String[]) method calls
 
Method Summary
 Object getVariable(String name)
           
 Map getVariables()
           
 void setVariable(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptContext

public ScriptContext()

ScriptContext

public ScriptContext(String[] args)
A helper constructor used in main(String[]) method calls

Parameters:
args - are the command line arguments from a main()
Method Detail

getVariable

public Object getVariable(String name)

setVariable

public void setVariable(String name,
                        Object value)

getVariables

public Map getVariables()


Copyright © 2003 The Codehaus. All Rights Reserved.