Class MetaMethodIndex
java.lang.Object
org.codehaus.groovy.runtime.metaclass.MetaMethodIndex
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMetaMethod
(MetaMethod method, Map<String, MetaMethodIndex.Cache> map) addMethodToList
(Object o, MetaMethod toIndex) void
void
clearCaches
(String name) void
void
void
copyNonPrivateNonNewMetaMethods
(Map<String, MetaMethodIndex.Cache> from, Map<String, MetaMethodIndex.Cache> to) final MetaMethodIndex.Cache
getMethods
(Class<?> cls, String name)
-
Field Details
-
indexMap
a map of the starter class plus its super classes to save method lists for static/normal/super method calls. It also provides a simple cache of one method name and call signature to method per static/normal/super call. -
mainClass
-
-
Constructor Details
-
MetaMethodIndex
-
-
Method Details
-
getMethods
-
addMetaMethod
-
getHeader
-
copyNonPrivateMethods
public void copyNonPrivateMethods(Map<String, MetaMethodIndex.Cache> from, Map<String, MetaMethodIndex.Cache> to) -
copyNonPrivateNonNewMetaMethods
public void copyNonPrivateNonNewMetaMethods(Map<String, MetaMethodIndex.Cache> from, Map<String, MetaMethodIndex.Cache> to) -
addMethodToList
-
copyMethodsToSuper
public void copyMethodsToSuper() -
clearCaches
public void clearCaches() -
clearCaches
-