public class Reference<T> extends GroovyObjectSupport implements Serializable
| Modifier and Type | Method and Description | 
|---|---|
T | 
get()  | 
Object | 
getProperty(String property)
Retrieves a property value. 
 | 
Object | 
invokeMethod(String name,
            Object args)
Invokes the given method. 
 | 
void | 
set(T value)  | 
void | 
setProperty(String property,
           Object newValue)
Sets the given property to the new value. 
 | 
getMetaClass, setMetaClasspublic Reference()
public Reference(T value)
public Object getProperty(String property)
GroovyObjectgetProperty in interface GroovyObjectproperty - the name of the property of interestpublic void setProperty(String property, Object newValue)
GroovyObjectsetProperty in interface GroovyObjectproperty - the name of the property of interestnewValue - the new value for the propertypublic Object invokeMethod(String name, Object args)
GroovyObjectinvokeMethod in interface GroovyObjectname - the name of the method to callargs - the arguments to use for the method callpublic T get()
public void set(T value)