|
|||||
FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
---|---|
HashMap |
propNames
|
boolean |
useThis
|
Constructor Summary | |
MOPIter()
|
Method Summary | |
---|---|
Object |
addElementToList(Object ret, MetaMethod element)
|
void |
addFields(CachedClass klass, SingleKeyHashMap propertyIndex)
|
void |
addMetaBeanProperty(MetaBeanProperty mp)
Adds a new MetaBeanProperty to this MetaClass |
void |
addMetaMethod(MetaMethod method)
adds a MetaMethod to this class. |
void |
addMetaMethodToIndex(MetaMethod method, def header)
|
void |
addMetaMethodToSuperIndex(MetaMethod method, def header)
|
void |
addNewInstanceMethod(Method method)
|
void |
addNewInstanceMethodToIndex(MetaMethod newMethod, def header)
|
void |
addNewStaticMethod(Method method)
|
void |
addNewStaticMethodToIndex(MetaMethod newMethod, def header)
|
void |
addProperties()
|
void |
addToAllMethodsIfPublic(MetaMethod metaMethod)
|
void |
applyPropertyDescriptors(def propertyDescriptors)
|
void |
applyStrayPropertyMethods(LinkedList superClasses, Index classPropertyIndex, boolean isThis)
|
CachedClass |
calcFirstGroovySuperClass(Collection superClasses)
|
void |
checkIfStdMethod(MetaMethod method)
|
void |
checkInitalised()
checks if the initialisation of the class id complete. |
Object |
chooseMethod(String methodName, Object methodOrList, def argClasses, boolean coerce)
Chooses the correct method to use from a list of methods which match by name. |
Object |
chooseMostSpecificParams(String name, List matchingMethods, def arguments)
|
void |
connectMultimethods(List superClasses, CachedClass firstGroovyClass)
|
void |
copyClassPropertyIndexForSuper(Index dest)
|
void |
copyNonPrivateFields(SingleKeyHashMap from, SingleKeyHashMap to)
|
void |
createMetaBeanProperty(SingleKeyHashMap propertyIndex, String propName, boolean isGetter, MetaMethod propertyMethod)
|
static int |
distanceToObject(Class c)
|
static Object |
doConstructorInvoke(Class at, CachedConstructor constructor, def argumentArray, boolean setAccessible)
|
void |
dropMethodCache(String name)
|
void |
dropStaticMethodCache(String name)
|
MetaProperty |
establishStaticMetaProperty(MetaProperty mp)
|
void |
filterMatchingMethodForCategory(FastArray list, MetaMethod method)
|
int |
findMatchingMethod(def data, int from, int to, MetaMethod method)
|
MetaMethod |
findMethod(CachedMethod aMethod)
|
MetaMethod |
findPropertyMethod(Object methodOrList, boolean isGetter)
|
Object |
getAttribute(Class sender, Object receiver, String messageName, boolean useSuper)
|
Object |
getAttribute(Class sender, Object object, String attribute, boolean useSuper, boolean fromInsideClass)
Looks up the given attribute (field) on the given object |
MetaMethod |
getCategoryMethodGetter(Class sender, String name, boolean useLongVersion)
|
MetaMethod |
getCategoryMethodSetter(Class sender, String name, boolean useLongVersion)
|
ClassNode |
getClassNode()
|
Boolean |
getMatchKindForCategory(MetaMethod aMethod, MetaMethod categoryMethod)
return false: add method null: ignore method true: replace |
List |
getMetaMethods()
|
MetaProperty |
getMetaProperty(CachedClass clazz, String name, boolean useSuper, boolean useStatic)
|
MetaMethod |
getMethodWithCaching(Class sender, String methodName, def arguments, boolean isCallToSuper)
|
MetaMethod |
getMethodWithoutCaching(Class sender, String methodName, def arguments, boolean isCallToSuper)
|
Object |
getMethods(Class sender, String name, boolean isCallToSuper)
given name |
List |
getMethods()
|
MetaMethod |
getNormalMethodWithCaching(def arguments, def e)
|
String |
getPropName(String methodName)
|
List |
getProperties()
Get all the properties defined for this type |
Object |
getProperty(Class sender, Object object, String name, boolean useSuper, boolean fromInsideClass)
|
Object |
getStaticMethods(Class sender, String name)
given name |
MetaMethod |
getSuperMethodWithCaching(def arguments, def e)
|
void |
inheritFields(LinkedList superClasses)
|
void |
inheritInterfaceNewMetaMethods(Set interfaces)
|
void |
inheritMethods(Collection superClasses, CachedClass firstGroovySuper)
|
void |
inheritStaticInterfaceFields(LinkedList superClasses, Set interfaces)
|
void |
initialize()
|
Object |
invokeConstructor(def arguments)
|
Object |
invokeConstructor(Class at, def arguments)
|
Object |
invokeConstructorAt(Class at, def arguments)
Warning, this method will be removed |
Object |
invokeMethod(Object object, String methodName, Object arguments)
|
Object |
invokeMethod(Object object, String methodName, def originalArguments)
Invokes the given method on the object. |
Object |
invokeMethod(Class sender, Object object, String methodName, def originalArguments, boolean isCallToSuper, boolean fromInsideClass)
Invokes the given method on the object. |
Object |
invokeMethodOnGroovyObject(String methodName, def originalArguments, Object owner)
|
Object |
invokeMissingMethod(Object instance, String methodName, def arguments)
|
Object |
invokeMissingMethod(Object instance, String methodName, def arguments, RuntimeException original)
|
Object |
invokeMissingProperty(Object instance, String propertyName, Object optionalValue, boolean isGetter)
|
Object |
invokeStaticClosureProperty(def originalArguments, Object prop)
|
Object |
invokeStaticMethod(Object object, String methodName, def arguments)
|
Object |
invokeStaticMissingMethod(Class sender, String methodName, def arguments)
|
Object |
invokeStaticMissingProperty(Object instance, String propertyName, Object optionalValue, boolean isGetter)
Hook to deal with the case of MissingProperty for static properties. |
boolean |
isBeanDerivative(Class theClass)
|
boolean |
isGenericGetMethod(MetaMethod method)
|
boolean |
isInitialized()
|
boolean |
isModified()
|
MetaClass |
lookupObjectMetaClass(Object object)
|
void |
makeStaticPropertyIndex()
|
void |
methodNameAction(Class clazz, def e)
|
MetaMethod |
pickStaticMethod(String methodName, def arguments)
|
void |
populateInterfaces(Set interfaces)
|
void |
processFastArray(FastArray methods)
|
Constructor |
retrieveConstructor(def argClasses)
|
MetaMethod |
retrieveStaticMethod(String methodName, def arguments)
|
boolean |
sameClasses(def params, def arguments, boolean weakNullCheck)
|
int |
selectConstructorAndTransformArguments(int numberOfCosntructors, def arguments)
|
void |
setAttribute(Class sender, Object object, String attribute, Object newValue, boolean useSuper, boolean fromInsideClass)
Sets the given attribute (field) on the given object |
void |
setProperties(Object bean, Map map)
Sets a number of bean properties from the given Map where the keys are the String names of properties and the values are the values of the properties to set |
void |
setProperty(Class sender, Object object, String name, Object newValue, boolean useSuper, boolean fromInsideClass)
Sets the property value on an object |
void |
setupProperties(def propertyDescriptors)
This will build up the property map (Map of MetaProperty objects, keyed on property name). |
boolean |
skipClass(CachedClass clazz)
|
String |
toString()
|
void |
unwrap(def arguments)
|
Constructor Detail |
---|
MOPIter()
Method Detail |
---|
Object addElementToList(Object ret, MetaMethod element)
void addFields(CachedClass klass, SingleKeyHashMap propertyIndex)
public void addMetaBeanProperty(MetaBeanProperty mp)
public void addMetaMethod(MetaMethod method)
void addMetaMethodToIndex(MetaMethod method, def header)
void addMetaMethodToSuperIndex(MetaMethod method, def header)
public void addNewInstanceMethod(Method method)
void addNewInstanceMethodToIndex(MetaMethod newMethod, def header)
public void addNewStaticMethod(Method method)
void addNewStaticMethodToIndex(MetaMethod newMethod, def header)
void addProperties()
void addToAllMethodsIfPublic(MetaMethod metaMethod)
void applyPropertyDescriptors(def propertyDescriptors)
void applyStrayPropertyMethods(LinkedList superClasses, Index classPropertyIndex, boolean isThis)
CachedClass calcFirstGroovySuperClass(Collection superClasses)
void checkIfStdMethod(MetaMethod method)
void checkInitalised()
Object chooseMethod(String methodName, Object methodOrList, def argClasses, boolean coerce)
Object chooseMostSpecificParams(String name, List matchingMethods, def arguments)
void connectMultimethods(List superClasses, CachedClass firstGroovyClass)
void copyClassPropertyIndexForSuper(Index dest)
void copyNonPrivateFields(SingleKeyHashMap from, SingleKeyHashMap to)
void createMetaBeanProperty(SingleKeyHashMap propertyIndex, String propName, boolean isGetter, MetaMethod propertyMethod)
static int distanceToObject(Class c)
static Object doConstructorInvoke(Class at, CachedConstructor constructor, def argumentArray, boolean setAccessible)
void dropMethodCache(String name)
void dropStaticMethodCache(String name)
MetaProperty establishStaticMetaProperty(MetaProperty mp)
void filterMatchingMethodForCategory(FastArray list, MetaMethod method)
int findMatchingMethod(def data, int from, int to, MetaMethod method)
MetaMethod findMethod(CachedMethod aMethod)
MetaMethod findPropertyMethod(Object methodOrList, boolean isGetter)
public Object getAttribute(Class sender, Object receiver, String messageName, boolean useSuper)
public Object getAttribute(Class sender, Object object, String attribute, boolean useSuper, boolean fromInsideClass)
MetaMethod getCategoryMethodGetter(Class sender, String name, boolean useLongVersion)
MetaMethod getCategoryMethodSetter(Class sender, String name, boolean useLongVersion)
public ClassNode getClassNode()
Boolean getMatchKindForCategory(MetaMethod aMethod, MetaMethod categoryMethod)
public List getMetaMethods()
MetaProperty getMetaProperty(CachedClass clazz, String name, boolean useSuper, boolean useStatic)
public MetaMethod getMethodWithCaching(Class sender, String methodName, def arguments, boolean isCallToSuper)
public MetaMethod getMethodWithoutCaching(Class sender, String methodName, def arguments, boolean isCallToSuper)
Object getMethods(Class sender, String name, boolean isCallToSuper)
public List getMethods()
MetaMethod getNormalMethodWithCaching(def arguments, def e)
String getPropName(String methodName)
public List getProperties()
public Object getProperty(Class sender, Object object, String name, boolean useSuper, boolean fromInsideClass)
Object getStaticMethods(Class sender, String name)
MetaMethod getSuperMethodWithCaching(def arguments, def e)
void inheritFields(LinkedList superClasses)
void inheritInterfaceNewMetaMethods(Set interfaces)
void inheritMethods(Collection superClasses, CachedClass firstGroovySuper)
void inheritStaticInterfaceFields(LinkedList superClasses, Set interfaces)
public void initialize()
public Object invokeConstructor(def arguments)
Object invokeConstructor(Class at, def arguments)
public Object invokeConstructorAt(Class at, def arguments)
public Object invokeMethod(Object object, String methodName, Object arguments)
public Object invokeMethod(Object object, String methodName, def originalArguments)
public Object invokeMethod(Class sender, Object object, String methodName, def originalArguments, boolean isCallToSuper, boolean fromInsideClass)
Object invokeMethodOnGroovyObject(String methodName, def originalArguments, Object owner)
public Object invokeMissingMethod(Object instance, String methodName, def arguments)
Object invokeMissingMethod(Object instance, String methodName, def arguments, RuntimeException original)
public Object invokeMissingProperty(Object instance, String propertyName, Object optionalValue, boolean isGetter)
Object invokeStaticClosureProperty(def originalArguments, Object prop)
public Object invokeStaticMethod(Object object, String methodName, def arguments)
Object invokeStaticMissingMethod(Class sender, String methodName, def arguments)
Object invokeStaticMissingProperty(Object instance, String propertyName, Object optionalValue, boolean isGetter)
boolean isBeanDerivative(Class theClass)
boolean isGenericGetMethod(MetaMethod method)
boolean isInitialized()
public boolean isModified()
MetaClass lookupObjectMetaClass(Object object)
void makeStaticPropertyIndex()
public void methodNameAction(Class clazz, def e)
MetaMethod pickStaticMethod(String methodName, def arguments)
void populateInterfaces(Set interfaces)
void processFastArray(FastArray methods)
public Constructor retrieveConstructor(def argClasses)
public MetaMethod retrieveStaticMethod(String methodName, def arguments)
boolean sameClasses(def params, def arguments, boolean weakNullCheck)
public int selectConstructorAndTransformArguments(int numberOfCosntructors, def arguments)
public void setAttribute(Class sender, Object object, String attribute, Object newValue, boolean useSuper, boolean fromInsideClass)
public void setProperties(Object bean, Map map)
public void setProperty(Class sender, Object object, String name, Object newValue, boolean useSuper, boolean fromInsideClass)
void setupProperties(def propertyDescriptors)
public boolean skipClass(CachedClass clazz)
public String toString()
void unwrap(def arguments)