|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgroovy.lang.GroovyObjectSupport
groovy.lang.Binding
class Binding extends GroovyObjectSupport
Represents the variable bindings of a script which can be altered from outside the script object or created outside of a script and passed into it.
Constructor Summary | |
Binding()
|
|
Binding(Map variables)
|
|
Binding(String[] args)
A helper constructor used in main(String[]) method calls |
Method Summary | |
---|---|
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)
|
void
|
setVariable(String name, Object value)
Sets the value of the given variable |
Methods inherited from class GroovyObjectSupport | |
---|---|
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Constructor Detail |
---|
public Binding()
public Binding(Map variables)
public Binding(String[] args)
Method Detail |
---|
public Object getProperty(String property)
public Object getVariable(String name)
public Map getVariables()
public void setProperty(String property, Object newValue)
public void setVariable(String name, Object value)
Copyright © 2003-2009 The Codehaus. All rights reserved.