| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroovy.lang.GroovyObjectSupport
public abstract class GroovyObjectSupport
A useful base class for Java objects wishing to be Groovy objects
| Constructor Summary | |
|---|---|
GroovyObjectSupport()
 | 
|
| Method Summary | |
|---|---|
 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.  | 
| 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)
GroovyObject
getProperty in interface GroovyObjectproperty - the name of the property of interest
public void setProperty(String property,
                        Object newValue)
GroovyObject
setProperty in interface GroovyObjectproperty - the name of the property of interestnewValue - the new value for the property
public Object invokeMethod(String name,
                           Object args)
GroovyObject
invokeMethod in interface GroovyObjectname - the name of the method to callargs - the arguments to use for the method call
public MetaClass getMetaClass()
GroovyObject
getMetaClass in interface GroovyObjectpublic void setMetaClass(MetaClass metaClass)
GroovyObject
setMetaClass in interface GroovyObjectmetaClass - the new metaclass
  | 
Copyright © 2003-2012 The Codehaus. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||