Class MetaMethodIndex
java.lang.Object
org.codehaus.groovy.runtime.metaclass.MetaMethodIndex
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic interfacestatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static intprotected static intprotected static intprotected intprotected MetaMethodIndex.Entry[]protected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddMethodToList(Object o, MetaMethod toIndex)voidclear()voidvoidclearCaches(String name)voidcopy(Class c, MetaMethodIndex.Header index)voidcopy(MetaMethodIndex.Header from, MetaMethodIndex.Header to)voidvoidvoidcopyNonPrivateMethods(Class from, Class to)voidvoidcopyNonPrivateMethodsDown(Class from, Class to)voidvoidgetMethods(Class cls, String name)getOrPutMethods(String name, MetaMethodIndex.Header header)getTable()static inthash(int h)voidinit(int initCapacity)booleanisEmpty()voidresize(int newLength)intsize()
-
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
-
copyNonPrivateMethods
-
copyAllMethodsToSuper
-
copyNonPrivateMethodsFromSuper
-
copyNonPrivateMethodsDown
-
copyNonPrivateNonNewMetaMethods
public void copyNonPrivateNonNewMetaMethods(MetaMethodIndex.Header from, MetaMethodIndex.Header to) -
addMethodToList
-
copyMethodsToSuper
public void copyMethodsToSuper() -
copy
-
copy
-
clearCaches
public void clearCaches() -
clearCaches
-