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 Object
An abstract base class for a key used for comparators and Map keys to lookup a method by name and parameter types
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description MethodKey
createCopy()
Creates an immutable copy that we can cache.protected int
createHashCode()
boolean
equals(Object that)
boolean
equals(MethodKey that)
String
getName()
abstract int
getParameterCount()
abstract Class
getParameterType(int index)
List
getParamterTypes()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
createCopy
public MethodKey createCopy()
Creates an immutable copy that we can cache.
-
equals
public boolean equals(MethodKey that)
-
getName
public String getName()
-
getParamterTypes
public List getParamterTypes()
-
getParameterCount
public abstract int getParameterCount()
-
getParameterType
public abstract Class getParameterType(int index)
-
createHashCode
protected int createHashCode()
-
-