org.codehaus.groovy.runtime
Class MethodKey
java.lang.Object
org.codehaus.groovy.runtime.MethodKey
- Direct Known Subclasses:
- 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
- Version:
- $Revision: 1.2 $
- Author:
- James Strachan
MethodKey
public MethodKey(String name)
createCopy
public MethodKey createCopy()
- Creates an immutable copy that we can cache.
equals
public boolean equals(Object that)
equals
public boolean equals(MethodKey that)
hashCode
public int hashCode()
toString
public String toString()
getName
public String getName()
getParamterTypes
public List getParamterTypes()
getParameterCount
public abstract int getParameterCount()
getParameterType
public abstract Class getParameterType(int index)
createHashCode
protected int createHashCode()
Copyright © 2003-2007 The Codehaus. All Rights Reserved.