| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgroovy.lang.DelegatingMetaClass
org.codehaus.groovy.runtime.HandleMetaClass
public class HandleMetaClass
| Field Summary | 
|---|
| Fields inherited from class groovy.lang.DelegatingMetaClass | 
|---|
delegate | 
| Constructor Summary | |
|---|---|
HandleMetaClass(MetaClass mc)
 | 
|
HandleMetaClass(MetaClass mc,
                Object obj)
 | 
|
| Method Summary | |
|---|---|
 void | 
addMetaBeanProperty(MetaBeanProperty metaBeanProperty)
Adds a new MetaBeanProperty to the MetaClass  | 
 void | 
addMetaMethod(MetaMethod metaMethod)
Adds a new MetaMethod to the MetaClass  | 
 void | 
addNewInstanceMethod(Method method)
adds a new instance method to this MetaClass.  | 
 void | 
addNewStaticMethod(Method method)
adds a new static method to this MetaClass.  | 
 boolean | 
equals(Object obj)
 | 
 Object | 
getProperty(String property)
Retrieves a property value.  | 
 void | 
initialize()
complete the initialisation process.  | 
 Object | 
invokeMethod(String name,
             Object args)
Invokes the given method.  | 
 GroovyObject | 
replaceDelegate()
 | 
 void | 
setProperty(String property,
            Object newValue)
Sets the given property to the new value.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
public HandleMetaClass(MetaClass mc)
public HandleMetaClass(MetaClass mc,
                       Object obj)
| Method Detail | 
|---|
public void initialize()
MetaClass
initialize in interface MetaClassinitialize in class DelegatingMetaClasspublic GroovyObject replaceDelegate()
public Object invokeMethod(String name,
                           Object args)
GroovyObject
invokeMethod in interface GroovyObjectinvokeMethod in class DelegatingMetaClassname - the name of the method to callargs - the arguments to use for the method call
public Object getProperty(String property)
GroovyObject
getProperty in interface GroovyObjectgetProperty in class DelegatingMetaClassproperty - the name of the property of interest
public void setProperty(String property,
                        Object newValue)
GroovyObject
setProperty in interface GroovyObjectsetProperty in class DelegatingMetaClassproperty - the name of the property of interestnewValue - the new value for the propertypublic void addNewInstanceMethod(Method method)
MutableMetaClass
addNewInstanceMethod in interface MutableMetaClassaddNewInstanceMethod in class DelegatingMetaClassmethod - the method to be addedpublic void addNewStaticMethod(Method method)
MutableMetaClass
addNewStaticMethod in interface MutableMetaClassaddNewStaticMethod in class DelegatingMetaClassmethod - the method to be addedpublic void addMetaMethod(MetaMethod metaMethod)
MutableMetaClass
addMetaMethod in interface MutableMetaClassaddMetaMethod in class DelegatingMetaClassmetaMethod - The MetaMethod to addpublic void addMetaBeanProperty(MetaBeanProperty metaBeanProperty)
MutableMetaClass
addMetaBeanProperty in interface MutableMetaClassaddMetaBeanProperty in class DelegatingMetaClassmetaBeanProperty - The MetaBeanProperty instancepublic boolean equals(Object obj)
equals in class DelegatingMetaClass
  | 
Copyright © 2003-2012 The Codehaus. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||