public abstract class GroovyObjectSupport extends java.lang.Object implements GroovyObject
| Constructor and Description |
|---|
GroovyObjectSupport() |
| Modifier and Type | Method and Description |
|---|---|
MetaClass |
getMetaClass()
Returns the metaclass for a given class.
|
java.lang.Object |
getProperty(java.lang.String property)
Retrieves a property value.
|
java.lang.Object |
invokeMethod(java.lang.String name,
java.lang.Object args)
Invokes the given method.
|
void |
setMetaClass(MetaClass metaClass)
Allows the MetaClass to be replaced with a derived implementation.
|
void |
setProperty(java.lang.String property,
java.lang.Object newValue)
Sets the given property to the new value.
|
public java.lang.Object getProperty(java.lang.String property)
GroovyObjectgetProperty in interface GroovyObjectproperty - the name of the property of interestpublic void setProperty(java.lang.String property,
java.lang.Object newValue)
GroovyObjectsetProperty in interface GroovyObjectproperty - the name of the property of interestnewValue - the new value for the propertypublic java.lang.Object invokeMethod(java.lang.String name,
java.lang.Object args)
GroovyObjectinvokeMethod in interface GroovyObjectname - the name of the method to callargs - the arguments to use for the method callpublic MetaClass getMetaClass()
GroovyObjectgetMetaClass in interface GroovyObjectpublic void setMetaClass(MetaClass metaClass)
GroovyObjectsetMetaClass in interface GroovyObjectmetaClass - the new metaclass