|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectgroovy.lang.GroovyObjectSupport
A useful base class for Java objects wishing to be Groovy objects
| Constructor Summary | |
GroovyObjectSupport()
|
|
| Method Summary | |
MetaClass |
getMetaClass()
|
Object |
getProperty(String property)
|
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GroovyObjectSupport()
| Method Detail |
public Object getProperty(String property)
getProperty in interface GroovyObject
public void setProperty(String property,
Object newValue)
GroovyObject
setProperty in interface GroovyObject
public Object invokeMethod(String name,
Object args)
GroovyObject
invokeMethod in interface GroovyObjectpublic MetaClass getMetaClass()
getMetaClass in interface GroovyObjectpublic void setMetaClass(MetaClass metaClass)
GroovyObject
setMetaClass in interface GroovyObject
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||