org.codehaus.groovy.runtime.metaclass
Class MetaMethodIndex
java.lang.Object
org.codehaus.groovy.runtime.metaclass.MetaMethodIndex
public class MetaMethodIndex
- extends java.lang.Object
Method Summary |
java.lang.Object |
addMethodToList(java.lang.Object o,
MetaMethod method)
|
void |
clear()
|
void |
clearCaches()
|
void |
clearCaches(java.lang.String name)
|
void |
copy(java.lang.Class c,
MetaMethodIndex.Header index)
|
void |
copy(MetaMethodIndex.Header from,
MetaMethodIndex.Header to)
|
private void |
copyAllMethods(MetaMethodIndex.Entry from,
MetaMethodIndex.Header to)
|
private void |
copyAllMethodsToSuper(MetaMethodIndex.Entry from,
MetaMethodIndex.Header to)
|
void |
copyAllMethodsToSuper(MetaMethodIndex.Header from,
MetaMethodIndex.Header to)
|
void |
copyMethodsToSuper()
|
void |
copyNonPrivateMethods(java.lang.Class from,
java.lang.Class to)
|
private void |
copyNonPrivateMethods(MetaMethodIndex.Entry from,
MetaMethodIndex.Header to)
|
void |
copyNonPrivateMethods(MetaMethodIndex.Header from,
MetaMethodIndex.Header to)
|
void |
copyNonPrivateMethodsDown(java.lang.Class from,
java.lang.Class to)
|
private void |
copyNonPrivateMethodsFromSuper(MetaMethodIndex.Entry e)
|
void |
copyNonPrivateMethodsFromSuper(MetaMethodIndex.Header from)
|
private void |
copyNonPrivateNonNewMetaMethods(MetaMethodIndex.Entry from,
MetaMethodIndex.Header to)
|
void |
copyNonPrivateNonNewMetaMethods(MetaMethodIndex.Header from,
MetaMethodIndex.Header to)
|
private int |
findMatchingMethod(FastArray list,
MetaMethod method)
|
MetaMethodIndex.EntryIterator |
getEntrySetIterator()
|
MetaMethodIndex.Header |
getHeader(java.lang.Class cls)
|
MetaMethodIndex.Entry |
getMethods(java.lang.Class cls,
java.lang.String name)
|
MetaMethodIndex.Entry |
getOrPutMethods(java.lang.String name,
MetaMethodIndex.Header header)
|
MetaMethodIndex.Entry[] |
getTable()
|
static int |
hash(int h)
|
void |
init(int initCapacity)
|
boolean |
isEmpty()
|
private boolean |
isMatchingMethod(MetaMethod aMethod,
MetaMethod method)
|
private boolean |
isNonRealMethod(MetaMethod method)
|
void |
resize(int newLength)
|
int |
size()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
methodHeaders
public SingleKeyHashMap methodHeaders
theCachedClass
private CachedClass theCachedClass
table
protected MetaMethodIndex.Entry[] 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
MetaMethodIndex
public MetaMethodIndex(CachedClass theCachedClass)
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
public MetaMethodIndex.Entry[] getTable()
getEntrySetIterator
public MetaMethodIndex.EntryIterator getEntrySetIterator()
getMethods
public final MetaMethodIndex.Entry getMethods(java.lang.Class cls,
java.lang.String name)
getOrPutMethods
public MetaMethodIndex.Entry getOrPutMethods(java.lang.String name,
MetaMethodIndex.Header header)
getHeader
public MetaMethodIndex.Header getHeader(java.lang.Class cls)
copyNonPrivateMethods
public void copyNonPrivateMethods(java.lang.Class from,
java.lang.Class to)
copyNonPrivateMethods
public void copyNonPrivateMethods(MetaMethodIndex.Header from,
MetaMethodIndex.Header to)
copyAllMethodsToSuper
public void copyAllMethodsToSuper(MetaMethodIndex.Header from,
MetaMethodIndex.Header to)
copyNonPrivateMethodsFromSuper
public void copyNonPrivateMethodsFromSuper(MetaMethodIndex.Header from)
copyNonPrivateMethods
private void copyNonPrivateMethods(MetaMethodIndex.Entry from,
MetaMethodIndex.Header to)
copyAllMethodsToSuper
private void copyAllMethodsToSuper(MetaMethodIndex.Entry from,
MetaMethodIndex.Header to)
copyNonPrivateMethodsFromSuper
private void copyNonPrivateMethodsFromSuper(MetaMethodIndex.Entry e)
copyNonPrivateMethodsDown
public void copyNonPrivateMethodsDown(java.lang.Class from,
java.lang.Class to)
copyNonPrivateNonNewMetaMethods
public void copyNonPrivateNonNewMetaMethods(MetaMethodIndex.Header from,
MetaMethodIndex.Header to)
copyNonPrivateNonNewMetaMethods
private void copyNonPrivateNonNewMetaMethods(MetaMethodIndex.Entry from,
MetaMethodIndex.Header to)
addMethodToList
public java.lang.Object addMethodToList(java.lang.Object o,
MetaMethod method)
isNonRealMethod
private boolean isNonRealMethod(MetaMethod method)
isMatchingMethod
private boolean isMatchingMethod(MetaMethod aMethod,
MetaMethod method)
findMatchingMethod
private int findMatchingMethod(FastArray list,
MetaMethod method)
copyMethodsToSuper
public void copyMethodsToSuper()
copy
public void copy(java.lang.Class c,
MetaMethodIndex.Header index)
copy
public void copy(MetaMethodIndex.Header from,
MetaMethodIndex.Header to)
copyAllMethods
private void copyAllMethods(MetaMethodIndex.Entry from,
MetaMethodIndex.Header to)
clearCaches
public void clearCaches()
clearCaches
public void clearCaches(java.lang.String name)
Copyright © ${year} The Codehaus. All Rights Reserved.