|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgroovy.lang.MetaClass
groovy.lang.DelegatingMetaClass
public class DelegatingMetaClass
| Field Summary | |
|---|---|
protected MetaClass |
delegate
|
| Fields inherited from class groovy.lang.MetaClass |
|---|
log, NO_METHOD_FOUND, theClass, useReflection |
| Constructor Summary | |
|---|---|
DelegatingMetaClass(Class theClass)
|
|
DelegatingMetaClass(MetaClass delegate)
|
|
| Method Summary | |
|---|---|
void |
addNewInstanceMethod(Method method)
adds a new instance method to this meta class. |
void |
addNewStaticMethod(Method method)
adds a new static method to this meta class. |
boolean |
equals(Object obj)
|
Object |
getAttribute(Object object,
String attribute)
|
ClassNode |
getClassNode()
|
List |
getMetaMethods()
|
List |
getMethods()
|
List |
getProperties()
|
Object |
getProperty(Object object,
String property)
|
int |
hashCode()
|
void |
initialize()
complete the initlialisation process. |
Object |
invokeConstructor(Object[] arguments)
|
Object |
invokeMethod(Object object,
String methodName,
Object arguments)
|
Object |
invokeMethod(Object object,
String methodName,
Object[] arguments)
|
Object |
invokeStaticMethod(Object object,
String methodName,
Object[] arguments)
|
MetaMethod |
pickMethod(String methodName,
Class[] arguments)
Deprecated. |
protected MetaMethod |
retrieveMethod(String methodName,
Class[] arguments)
Deprecated. |
void |
setAttribute(Object object,
String attribute,
Object newValue)
|
void |
setProperty(Object object,
String property,
Object newValue)
|
String |
toString()
|
| Methods inherited from class groovy.lang.MetaClass |
|---|
getAttribute, getProperty, invokeConstructorAt, invokeMethod, invokeMissingMethod, isGroovyObject, isUseReflection, setAttribute, setProperty, setUseReflection |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final MetaClass delegate
| Constructor Detail |
|---|
public DelegatingMetaClass(MetaClass delegate)
public DelegatingMetaClass(Class theClass)
| Method Detail |
|---|
public void addNewInstanceMethod(Method method)
MetaClass
addNewInstanceMethod in class MetaClassmethod - the method to be addedpublic void addNewStaticMethod(Method method)
MetaClass
addNewStaticMethod in class MetaClassmethod - the method to be addedpublic void initialize()
MetaClass
initialize in class MetaClass
public Object getAttribute(Object object,
String attribute)
getAttribute in class MetaClasspublic ClassNode getClassNode()
getClassNode in class MetaClasspublic List getMetaMethods()
getMetaMethods in class MetaClasspublic List getMethods()
getMethods in class MetaClasspublic List getProperties()
getProperties in class MetaClass
public Object getProperty(Object object,
String property)
getProperty in class MetaClasspublic Object invokeConstructor(Object[] arguments)
invokeConstructor in class MetaClass
public Object invokeMethod(Object object,
String methodName,
Object arguments)
invokeMethod in class MetaClass
public Object invokeMethod(Object object,
String methodName,
Object[] arguments)
invokeMethod in class MetaClass
public Object invokeStaticMethod(Object object,
String methodName,
Object[] arguments)
invokeStaticMethod in class MetaClass
public void setAttribute(Object object,
String attribute,
Object newValue)
setAttribute in class MetaClass
public void setProperty(Object object,
String property,
Object newValue)
setProperty in class MetaClasspublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
public MetaMethod pickMethod(String methodName,
Class[] arguments)
MetaClass
pickMethod in class MetaClass
protected MetaMethod retrieveMethod(String methodName,
Class[] arguments)
MetaClass
retrieveMethod in class MetaClass
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||