|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Allows methods to be dynamically added to existing classes at runtime
Field Summary | |
---|---|
MetaMethod |
AMBIGUOUS_LISTENER_METHOD
|
String |
CLOSURE_CALL_METHOD
|
String |
CLOSURE_CURRY_METHOD
|
String |
CLOSURE_DO_CALL_METHOD
|
def |
EMPTY_ARGUMENTS
|
def |
EMPTY_CLASS_ARRAY
|
def |
GETTER_MISSING_ARGS
|
Logger |
LOG
|
String |
METHOD_MISSING
|
def |
METHOD_MISSING_ARGS
|
MetaMethod |
NULL_METHOD
|
String |
PROPERTY_MISSING
|
def |
SETTER_MISSING_ARGS
|
String |
STATIC_METHOD_MISSING
|
String |
STATIC_PROPERTY_MISSING
|
List |
allMethods
|
MetaProperty |
arrayLengthProperty
|
ClassNode |
classNode
|
Index |
classPropertyIndex
|
Index |
classPropertyIndexForSuper
|
FastArray |
constructors
|
MetaMethod |
genericGetMethod
|
MetaMethod |
genericSetMethod
|
boolean |
initialized
|
List |
interfaceMethods
|
boolean |
isGroovyObject
|
boolean |
isMap
|
Map |
listeners
|
def |
mainClassMethodHeader
|
MetaMethodIndex |
metaMethodIndex
|
MetaMethod |
methodMissing
|
Set |
newGroovyMethodsSet
|
MetaMethod |
propertyMissingGet
|
MetaMethod |
propertyMissingSet
|
MetaClassRegistry |
registry
|
SingleKeyHashMap |
staticPropertyIndex
|
CachedClass |
theCachedClass
|
Class |
theClass
|
Constructor Summary | |
MetaClassImpl(Class theClass)
|
|
MetaClassImpl(MetaClassRegistry registry, Class theClass)
|
Method Summary | |
---|---|
void |
addInterfaceMethods(Set interfaces)
|
def |
castArgumentsToClassArray(def argTypes)
|
void |
fillMethodIndex()
|
MetaMethod |
getMetaMethod(String name, def argTypes)
|
MetaProperty |
getMetaProperty(String name)
|
MetaMethod |
getStaticMetaMethod(String name, def argTypes)
|
LinkedList |
getSuperClasses()
|
Class |
getTheClass()
|
MetaProperty |
hasProperty(Object obj, String name)
|
boolean |
isGroovyObject()
|
void |
populateMethods(LinkedList superClasses, CachedClass firstGroovySuper)
|
void |
removeMultimethodsOverloadedWithPrivateMethods()
|
void |
replaceWithMOPCalls(def mopMethods)
|
List |
respondsTo(Object obj, String name, def argTypes)
|
List |
respondsTo(Object obj, String name)
|
Constructor Detail |
---|
public MetaClassImpl(Class theClass)
public MetaClassImpl(MetaClassRegistry registry, Class theClass)
Method Detail |
---|
void addInterfaceMethods(Set interfaces)
def castArgumentsToClassArray(def argTypes)
void fillMethodIndex()
public MetaMethod getMetaMethod(String name, def argTypes)
public MetaProperty getMetaProperty(String name)
public MetaMethod getStaticMetaMethod(String name, def argTypes)
LinkedList getSuperClasses()
public Class getTheClass()
public MetaProperty hasProperty(Object obj, String name)
public boolean isGroovyObject()
void populateMethods(LinkedList superClasses, CachedClass firstGroovySuper)
void removeMultimethodsOverloadedWithPrivateMethods()
void replaceWithMOPCalls(def mopMethods)
public List respondsTo(Object obj, String name, def argTypes)
public List respondsTo(Object obj, String name)