Package org.codehaus.groovy.runtime
Class MethodKey
java.lang.Object
org.codehaus.groovy.runtime.MethodKey
- Direct Known Subclasses:
- DefaultCachedMethodKey,- DefaultMethodKey,- TemporaryMethodKey
public abstract class MethodKey
extends java.lang.Object
An abstract base class for a key used for comparators and Map keys to lookup a method by
 name and parameter types
- 
Constructor SummaryConstructors Constructor Description MethodKey(java.lang.Class sender, java.lang.String name, boolean isCallToSuper)
- 
Method SummaryModifier and Type Method Description MethodKeycreateCopy()Creates an immutable copy that we can cache.protected intcreateHashCode()booleanequals(java.lang.Object that)booleanequals(MethodKey that)java.lang.StringgetName()abstract intgetParameterCount()abstract java.lang.ClassgetParameterType(int index)java.util.ListgetParamterTypes()inthashCode()java.lang.StringtoString()Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
- 
Constructor Details- 
MethodKeypublic MethodKey(java.lang.Class sender, java.lang.String name, boolean isCallToSuper)
 
- 
- 
Method Details- 
createCopyCreates an immutable copy that we can cache.
- 
equalspublic boolean equals(java.lang.Object that)- Overrides:
- equalsin class- java.lang.Object
 
- 
equals
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- java.lang.Object
 
- 
toStringpublic java.lang.String toString()- Overrides:
- toStringin class- java.lang.Object
 
- 
getNamepublic java.lang.String getName()
- 
getParamterTypespublic java.util.List getParamterTypes()
- 
getParameterCountpublic abstract int getParameterCount()
- 
getParameterTypepublic abstract java.lang.Class getParameterType(int index)
- 
createHashCodeprotected int createHashCode()
 
-