public class Binding extends GroovyObjectSupport
Binding instances are not supposed to be used in a multithreaded context.
| Constructor and Description | 
|---|
Binding()  | 
Binding(Map variables)  | 
Binding(String[] args)
A helper constructor used in main(String[]) method calls 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
getProperty(String property)
Overloaded to make variables appear as bean properties or via the subscript operator 
 | 
Object | 
getVariable(String name)  | 
Map | 
getVariables()  | 
void | 
setProperty(String property,
           Object newValue)
Overloaded to make variables appear as bean properties or via the subscript operator 
 | 
void | 
setVariable(String name,
           Object value)
Sets the value of the given variable 
 | 
getMetaClass, invokeMethod, setMetaClasspublic Binding()
public Binding(Map variables)
public Binding(String[] args)
args - are the command line arguments from a main()public Object getVariable(String name)
name - the name of the variable to lookuppublic void setVariable(String name, Object value)
name - the name of the variable to setvalue - the new value for the given variablepublic Map getVariables()
public Object getProperty(String property)
getProperty in interface GroovyObjectgetProperty in class GroovyObjectSupportproperty - the name of the property of interestpublic void setProperty(String property, Object newValue)
setProperty in interface GroovyObjectsetProperty in class GroovyObjectSupportproperty - the name of the property of interestnewValue - the new value for the property