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 Summary
Constructors Constructor Description MethodKey(java.lang.Class sender, java.lang.String name, boolean isCallToSuper) - 
Method Summary
Modifier 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.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Constructor Details
- 
MethodKey
public MethodKey(java.lang.Class sender, java.lang.String name, boolean isCallToSuper) 
 - 
 - 
Method Details
- 
createCopy
Creates an immutable copy that we can cache. - 
equals
public boolean equals(java.lang.Object that)- Overrides:
 equalsin classjava.lang.Object
 - 
equals
 - 
hashCode
public int hashCode()- Overrides:
 hashCodein classjava.lang.Object
 - 
toString
public java.lang.String toString()- Overrides:
 toStringin classjava.lang.Object
 - 
getName
public java.lang.String getName() - 
getParamterTypes
public java.util.List getParamterTypes() - 
getParameterCount
public abstract int getParameterCount() - 
getParameterType
public abstract java.lang.Class getParameterType(int index) - 
createHashCode
protected int createHashCode() 
 -