org.codehaus.groovy.runtime
Class MethodKey

java.lang.Object
  extended byorg.codehaus.groovy.runtime.MethodKey
Direct Known Subclasses:
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

Version:
$Revision: 1.2 $
Author:
James Strachan

Field Summary
private  int hash
           
private  java.lang.String name
           
 
Constructor Summary
MethodKey(java.lang.String name)
           
 
Method Summary
 MethodKey createCopy()
          Creates an immutable copy that we can cache.
protected  int createHashCode()
           
 boolean equals(MethodKey that)
           
 boolean equals(java.lang.Object that)
           
 java.lang.String getName()
           
abstract  int getParameterCount()
           
abstract  java.lang.Class getParameterType(int index)
           
 java.util.List getParamterTypes()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

hash

private int hash

name

private java.lang.String name
Constructor Detail

MethodKey

public MethodKey(java.lang.String name)
Method Detail

createCopy

public MethodKey createCopy()
Creates an immutable copy that we can cache.


equals

public boolean equals(java.lang.Object that)

equals

public boolean equals(MethodKey that)

hashCode

public int hashCode()

toString

public java.lang.String toString()

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()


Copyright © 2003-2005 The Codehaus. All Rights Reserved.