org.codehaus.backport175.reader.bytecode
Class AnnotationReader.MemberKey

java.lang.Object
  extended by org.codehaus.backport175.reader.bytecode.AnnotationReader.MemberKey
Enclosing class:
AnnotationReader

public static class AnnotationReader.MemberKey
extends java.lang.Object

Unique key for class members (methods, fields and constructors) to be used in hash maps etc.

Needed since at bytecode parsing time we do not have access to the reflect members, only strings.

Author:
Jonas Bonér

Constructor Summary
AnnotationReader.MemberKey(java.lang.String name, java.lang.String desc)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
static AnnotationReader.MemberKey newConstructorKey(java.lang.reflect.Constructor method)
           
static AnnotationReader.MemberKey newConstructorKey(java.lang.String desc)
           
static AnnotationReader.MemberKey newFieldKey(java.lang.reflect.Field field)
           
static AnnotationReader.MemberKey newFieldKey(java.lang.String name, java.lang.String desc)
           
static AnnotationReader.MemberKey newMethodKey(java.lang.reflect.Method method)
           
static AnnotationReader.MemberKey newMethodKey(java.lang.String name, java.lang.String desc)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationReader.MemberKey

public AnnotationReader.MemberKey(java.lang.String name,
                                  java.lang.String desc)
Method Detail

newConstructorKey

public static AnnotationReader.MemberKey newConstructorKey(java.lang.reflect.Constructor method)

newConstructorKey

public static AnnotationReader.MemberKey newConstructorKey(java.lang.String desc)

newMethodKey

public static AnnotationReader.MemberKey newMethodKey(java.lang.reflect.Method method)

newMethodKey

public static AnnotationReader.MemberKey newMethodKey(java.lang.String name,
                                                      java.lang.String desc)

newFieldKey

public static AnnotationReader.MemberKey newFieldKey(java.lang.reflect.Field field)

newFieldKey

public static AnnotationReader.MemberKey newFieldKey(java.lang.String name,
                                                     java.lang.String desc)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object