|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface GroovyObject
The interface implemented by all Groovy objects.
Especially handy for using Groovy objects when in the Java world.
| Method Summary | |
|---|---|
MetaClass |
getMetaClass()
Returns the metaclass for a given class. |
java.lang.Object |
getProperty(java.lang.String propertyName)
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 propertyName,
java.lang.Object newValue)
Sets the given property to the new value. |
| Method Detail |
|---|
java.lang.Object invokeMethod(java.lang.String name,
java.lang.Object args)
name - the name of the method to callargs - the arguments to use for the method call
java.lang.Object getProperty(java.lang.String propertyName)
propertyName - the name of the property of interest
void setProperty(java.lang.String propertyName,
java.lang.Object newValue)
propertyName - the name of the property of interestnewValue - the new value for the propertyMetaClass getMetaClass()
void setMetaClass(MetaClass metaClass)
metaClass - the new metaclass
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||