Class MetaMethodIndex
java.lang.Object
org.codehaus.groovy.runtime.metaclass.MetaMethodIndex
public class MetaMethodIndex
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MetaMethodIndex.CacheEntry
static class
MetaMethodIndex.Entry
static interface
MetaMethodIndex.EntryIterator
static class
MetaMethodIndex.Header
-
Field Summary
Fields Modifier and Type Field Description protected static int
DEFAULT_CAPACITY
protected static int
MAXIMUM_CAPACITY
SingleKeyHashMap
methodHeaders
protected static int
MINIMUM_CAPACITY
protected int
size
protected MetaMethodIndex.Entry[]
table
protected int
threshold
-
Constructor Summary
Constructors Constructor Description MetaMethodIndex(CachedClass theCachedClass)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
methodHeaders
-
table
-
DEFAULT_CAPACITY
protected static final int DEFAULT_CAPACITY- See Also:
- Constant Field Values
-
MINIMUM_CAPACITY
protected static final int MINIMUM_CAPACITY- See Also:
- Constant Field Values
-
MAXIMUM_CAPACITY
protected static final int MAXIMUM_CAPACITY- See Also:
- Constant Field Values
-
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
public void copyNonPrivateMethods(java.lang.Class from, java.lang.Class to) -
copyNonPrivateMethods
-
copyAllMethodsToSuper
-
copyNonPrivateMethodsFromSuper
-
copyNonPrivateMethodsDown
public void copyNonPrivateMethodsDown(java.lang.Class from, java.lang.Class to) -
copyNonPrivateNonNewMetaMethods
public void copyNonPrivateNonNewMetaMethods(MetaMethodIndex.Header from, MetaMethodIndex.Header to) -
addMethodToList
-
copyMethodsToSuper
public void copyMethodsToSuper() -
copy
-
copy
-
clearCaches
public void clearCaches() -
clearCaches
public void clearCaches(java.lang.String name)
-