GroovyObjectBatchingStatementWrapper, Binding, BindingProxy, Builder, Builder.Built, BuilderSupport, Closure, ConfigObject, Expando, ExpandoMetaClass.ExpandoMetaConstructor, ExpandoMetaClass.ExpandoMetaProperty, GPathResult, GroovyMBean, GroovyResultSetExtension, GroovyRowResult, GroovyShell, GString, JsonBuilder, JsonDelegate, MessageSource, NullObject, Proxy, Reference, ResultSetMetaDataWrapper, Script, StreamingJsonBuilder, StreamingJsonBuilder.StreamingJsonDelegatepublic abstract class GroovyObjectSupport extends Object implements GroovyObject
| Constructor | Description |
|---|---|
GroovyObjectSupport() |
| Modifier and Type | Method | Description |
|---|---|---|
MetaClass |
getMetaClass() |
Returns the metaclass for a given class.
|
Object |
getProperty(String property) |
Retrieves a property value.
|
Object |
invokeMethod(String name,
Object args) |
Invokes the given method.
|
void |
setMetaClass(MetaClass metaClass) |
Allows the MetaClass to be replaced with a derived implementation.
|
void |
setProperty(String property,
Object newValue) |
Sets the given property to the new 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 MetaClass getMetaClass()
GroovyObjectgetMetaClass in interface GroovyObjectpublic void setMetaClass(MetaClass metaClass)
GroovyObjectsetMetaClass in interface GroovyObjectmetaClass - the new metaclass