Class MetaMethodIndex
java.lang.Object
org.codehaus.groovy.runtime.metaclass.MetaMethodIndex
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static interface
static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
protected static final int
final Map<Class,
MetaMethodIndex.Header> protected static final int
protected int
protected MetaMethodIndex.Entry[]
protected int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMethodToList
(Object o, MetaMethod toIndex) void
clear()
void
void
clearCaches
(String name) void
copy
(Class c, MetaMethodIndex.Header index) void
copy
(MetaMethodIndex.Header from, MetaMethodIndex.Header to) void
void
void
copyNonPrivateMethods
(Class from, Class to) void
void
copyNonPrivateMethodsDown
(Class from, Class to) void
void
final MetaMethodIndex.Entry
getMethods
(Class cls, String name) getOrPutMethods
(String name, MetaMethodIndex.Header header) getTable()
static int
hash
(int h) void
init
(int initCapacity) boolean
isEmpty()
void
resize
(int newLength) int
size()
-
Field Details
-
methodHeaders
-
table
-
DEFAULT_CAPACITY
protected static final int DEFAULT_CAPACITY- See Also:
-
MINIMUM_CAPACITY
protected static final int MINIMUM_CAPACITY- See Also:
-
MAXIMUM_CAPACITY
protected static final int MAXIMUM_CAPACITY- See Also:
-
size
protected int size -
threshold
protected transient int threshold
-
-
Constructor Details
-
MetaMethodIndex
-
-
Method Details
-
hash
public static int hash(int h) -
size
public int size() -
isEmpty
public boolean isEmpty() -
clear
public void clear() -
init
public void init(int initCapacity) -
resize
public void resize(int newLength) -
getTable
-
getEntrySetIterator
-
getMethods
-
getOrPutMethods
-
getHeader
-
copyNonPrivateMethods
-
copyNonPrivateMethods
-
copyAllMethodsToSuper
-
copyNonPrivateMethodsFromSuper
-
copyNonPrivateMethodsDown
-
copyNonPrivateNonNewMetaMethods
-
addMethodToList
-
copyMethodsToSuper
public void copyMethodsToSuper() -
copy
-
copy
-
clearCaches
public void clearCaches() -
clearCaches
-