groovy.lang
Class DelegatingMetaClass
java.lang.Object
groovy.lang.MetaClass
groovy.lang.DelegatingMetaClass
public class DelegatingMetaClass
- extends MetaClass
- Author:
- John Wilson
Method Summary |
protected void |
addNewInstanceMethod(Method method)
|
protected void |
addNewStaticMethod(Method method)
|
protected void |
checkInitialised()
|
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()
|
Object |
invokeConstructor(Object[] arguments)
|
Object |
invokeConstructorAt(Class at,
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)
|
protected MetaMethod |
pickMethod(Object object,
String methodName,
Object[] arguments)
|
protected MetaMethod |
pickMethod(String methodName,
Class[] arguments)
|
Constructor |
retrieveConstructor(Class[] arguments)
|
MetaMethod |
retrieveMethod(Object owner,
String methodName,
Object[] arguments)
|
MetaMethod |
retrieveMethod(String methodName,
Class[] arguments)
|
MetaMethod |
retrieveStaticMethod(String methodName,
Class[] arguments)
|
void |
setAttribute(Object object,
String attribute,
Object newValue)
|
void |
setProperties(Object bean,
Map map)
|
void |
setProperty(Object object,
String property,
Object newValue)
|
String |
toString()
|
DelegatingMetaClass
public DelegatingMetaClass(MetaClass delegate)
addNewInstanceMethod
protected void addNewInstanceMethod(Method method)
- Specified by:
addNewInstanceMethod
in class MetaClass
addNewStaticMethod
protected void addNewStaticMethod(Method method)
- Specified by:
addNewStaticMethod
in class MetaClass
checkInitialised
protected void checkInitialised()
- Specified by:
checkInitialised
in class MetaClass
pickMethod
protected MetaMethod pickMethod(Object object,
String methodName,
Object[] arguments)
- Specified by:
pickMethod
in class MetaClass
pickMethod
protected MetaMethod pickMethod(String methodName,
Class[] arguments)
- Specified by:
pickMethod
in class MetaClass
getAttribute
public Object getAttribute(Object object,
String attribute)
- Specified by:
getAttribute
in class MetaClass
getClassNode
public ClassNode getClassNode()
- Specified by:
getClassNode
in class MetaClass
getMetaMethods
public List getMetaMethods()
- Specified by:
getMetaMethods
in class MetaClass
getMethods
public List getMethods()
- Specified by:
getMethods
in class MetaClass
getProperties
public List getProperties()
- Specified by:
getProperties
in class MetaClass
getProperty
public Object getProperty(Object object,
String property)
- Specified by:
getProperty
in class MetaClass
invokeConstructor
public Object invokeConstructor(Object[] arguments)
- Specified by:
invokeConstructor
in class MetaClass
invokeConstructorAt
public Object invokeConstructorAt(Class at,
Object[] arguments)
- Specified by:
invokeConstructorAt
in class MetaClass
invokeMethod
public Object invokeMethod(Object object,
String methodName,
Object arguments)
- Overrides:
invokeMethod
in class MetaClass
invokeMethod
public Object invokeMethod(Object object,
String methodName,
Object[] arguments)
- Specified by:
invokeMethod
in class MetaClass
invokeStaticMethod
public Object invokeStaticMethod(Object object,
String methodName,
Object[] arguments)
- Specified by:
invokeStaticMethod
in class MetaClass
retrieveConstructor
public Constructor retrieveConstructor(Class[] arguments)
- Specified by:
retrieveConstructor
in class MetaClass
retrieveMethod
public MetaMethod retrieveMethod(Object owner,
String methodName,
Object[] arguments)
- Specified by:
retrieveMethod
in class MetaClass
retrieveMethod
public MetaMethod retrieveMethod(String methodName,
Class[] arguments)
- Specified by:
retrieveMethod
in class MetaClass
retrieveStaticMethod
public MetaMethod retrieveStaticMethod(String methodName,
Class[] arguments)
- Specified by:
retrieveStaticMethod
in class MetaClass
setAttribute
public void setAttribute(Object object,
String attribute,
Object newValue)
- Specified by:
setAttribute
in class MetaClass
setProperties
public void setProperties(Object bean,
Map map)
- Specified by:
setProperties
in class MetaClass
setProperty
public void setProperty(Object object,
String property,
Object newValue)
- Specified by:
setProperty
in class MetaClass
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2010 The Codehaus. All Rights Reserved.