org.kite9.framework.model
Class AnnotationHandle

java.lang.Object
  extended by org.kite9.framework.model.AbstractHandle<Annotation>
      extended by org.kite9.framework.model.AnnotationHandle
All Implemented Interfaces:
Comparable<AnnotationHandle>, Handle<Annotation>

public class AnnotationHandle
extends AbstractHandle<Annotation>
implements Comparable<AnnotationHandle>

An annotation handle is used to describe an occasion where an annotation on a class, method or field refers to another class using a parameter.

Author:
moffatr

Constructor Summary
AnnotationHandle(Annotation a, AnnotatedElementHandle<?> site, String field)
           
AnnotationHandle(String annotationField, AnnotatedElementHandle<?> annotatedItem, String annotationClass)
           
 
Method Summary
 int compareTo(AnnotationHandle arg0)
           
 boolean equals(Object obj)
           
 AnnotatedElementHandle<?> getAnnotatedItem()
           
 String getAnnotationClass()
           
 String getAnnotationField()
           
 int hashCode()
           
 Annotation hydrate(ClassLoader cl)
          Returns the reflection-object that this is a handle for
 
Methods inherited from class org.kite9.framework.model.AbstractHandle
convertClassName, convertClassName, convertPackageName, getDeclaredMethod, hydrateClass, hydrateClasses, hydrateConstructor, hydrateField, hydrateMembers, hydrateMethod, hydratePackage, hydratePackages, hydrateParams
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationHandle

public AnnotationHandle(String annotationField,
                        AnnotatedElementHandle<?> annotatedItem,
                        String annotationClass)

AnnotationHandle

public AnnotationHandle(Annotation a,
                        AnnotatedElementHandle<?> site,
                        String field)
Method Detail

hydrate

public Annotation hydrate(ClassLoader cl)
Description copied from interface: Handle
Returns the reflection-object that this is a handle for

Specified by:
hydrate in interface Handle<Annotation>
Returns:

getAnnotationField

public String getAnnotationField()

getAnnotatedItem

public AnnotatedElementHandle<?> getAnnotatedItem()

getAnnotationClass

public String getAnnotationClass()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

compareTo

public int compareTo(AnnotationHandle arg0)
Specified by:
compareTo in interface Comparable<AnnotationHandle>


Copyright © 2011. All Rights Reserved.