|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
---|---|
String |
CLASS
|
String |
CLASS_PROPERTY
|
String |
CONSTRUCTOR
|
String |
GET_PROPERTY_METHOD
|
String |
GROOVY_CONSTRUCTOR
|
String |
INVOKE_METHOD_METHOD
|
String |
META_CLASS
|
String |
META_CLASS_PROPERTY
|
String |
META_METHODS
|
String |
METHODS
|
String |
PROPERTIES
|
String |
SET_PROPERTY_METHOD
|
String |
STATIC_QUALIFIER
|
def |
ZERO_ARGUMENTS
|
boolean |
allowChangesAfterInit
|
Map |
beanPropertyCache
|
Map |
expandoMethods
|
Map |
expandoProperties
|
ClosureMetaMethod |
getPropertyMethod
|
boolean |
inRegistry
|
Set |
inheritedMetaMethods
|
boolean |
initCalled
|
boolean |
initialized
|
ClosureMetaMethod |
invokeMethodMethod
|
ClosureStaticMetaMethod |
invokeStaticMethodMethod
|
boolean |
modified
|
MetaClass |
myMetaClass
|
ClosureMetaMethod |
setPropertyMethod
|
Map |
staticBeanPropertyCache
|
Constructor Summary | |
ExpandoMetaClass(Class theClass)
Constructs a new ExpandoMetaClass instance for the given class |
|
ExpandoMetaClass(Class theClass, boolean register)
Constructs a new ExpandoMetaClass instance for the given class optionally placing the MetaClass in the MetaClassRegistry automatically |
|
ExpandoMetaClass(Class theClass, boolean register, boolean allowChangesAfterInit)
Constructs a new ExpandoMetaClass instance for the given class optionally placing the MetaClass in the MetaClassRegistry automatically |
Method Summary | |
---|---|
void |
addSuperMethodIfNotOverriden(MetaMethod metaMethodFromSuper)
|
void |
call()
|
static void |
disableGlobally()
Call to disable the global use of ExpandoMetaClass |
static void |
enableGlobally()
Call to enable global use of global use of ExpandoMetaClass within the registry. |
MetaMethod |
findMethodInClassHeirarchy(String methodName, def arguments, Class theClass)
|
MetaBeanProperty |
findPropertyInClassHierarchy(String propertyName, CachedClass theClass)
|
MetaMethod |
getMetaMethodFromMutableMetaClass(String methodName, def arguments, MetaClass metaClass)
|
MetaBeanProperty |
getMetaPropertyFromMutableMetaClass(String propertyName, MetaClass metaClass)
|
void |
initialize()
|
Object |
invokeMissingMethod(Object instance, String methodName, def arguments)
Overrides the default missing method behaviour and adds the capability to look up a method from super class |
Object |
invokeMissingProperty(Object instance, String propertyName, Object optionalValue, boolean isGetter)
Overrides the default missing method behaviour and adds the capability to look up a method from the super class in the case where it has been overriden |
boolean |
isInitialized()
|
boolean |
isModified()
|
MetaMethod |
searchInterfacesForMetaMethod(String methodName, def arguments, def interfaces)
|
MetaBeanProperty |
searchInterfacesForMetaProperty(String propertyName, def interfaces)
|
void |
setInitialized(boolean b)
|
Constructor Detail |
---|
public ExpandoMetaClass(Class theClass)
public ExpandoMetaClass(Class theClass, boolean register)
public ExpandoMetaClass(Class theClass, boolean register, boolean allowChangesAfterInit)
Method Detail |
---|
void addSuperMethodIfNotOverriden(MetaMethod metaMethodFromSuper)
public void call()
public static void disableGlobally()
public static void enableGlobally()
MetaMethod findMethodInClassHeirarchy(String methodName, def arguments, Class theClass)
MetaBeanProperty findPropertyInClassHierarchy(String propertyName, CachedClass theClass)
MetaMethod getMetaMethodFromMutableMetaClass(String methodName, def arguments, MetaClass metaClass)
MetaBeanProperty getMetaPropertyFromMutableMetaClass(String propertyName, MetaClass metaClass)
public void initialize()
public Object invokeMissingMethod(Object instance, String methodName, def arguments)
public Object invokeMissingProperty(Object instance, String propertyName, Object optionalValue, boolean isGetter)
boolean isInitialized()
public boolean isModified()
MetaMethod searchInterfacesForMetaMethod(String methodName, def arguments, def interfaces)
MetaBeanProperty searchInterfacesForMetaProperty(String propertyName, def interfaces)
void setInitialized(boolean b)