org.bridj.util
Class AnnotationUtils

java.lang.Object
  extended by org.bridj.util.AnnotationUtils

public class AnnotationUtils
extends Object

Util methods for annotations (inheritable annotations, forwarded annotations, annotations from AnnotatedElements and/or direct annotation arrays...)

Author:
ochafik

Constructor Summary
AnnotationUtils()
           
 
Method Summary
static
<A extends Annotation>
A
getAnnotation(Class<A> ac, AnnotatedElement m, Annotation... directAnnotations)
           
static
<A extends Annotation>
A
getInheritableAnnotation(Class<A> ac, AnnotatedElement m, Annotation... directAnnotations)
           
static boolean isAnnotationPresent(Class<? extends Annotation> ac, AnnotatedElement m, Annotation... directAnnotations)
           
static boolean isAnnotationPresent(Class<? extends Annotation> ac, Annotation... annotations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationUtils

public AnnotationUtils()
Method Detail

getInheritableAnnotation

public static <A extends Annotation> A getInheritableAnnotation(Class<A> ac,
                                                                AnnotatedElement m,
                                                                Annotation... directAnnotations)

getAnnotation

public static <A extends Annotation> A getAnnotation(Class<A> ac,
                                                     AnnotatedElement m,
                                                     Annotation... directAnnotations)

isAnnotationPresent

public static boolean isAnnotationPresent(Class<? extends Annotation> ac,
                                          Annotation... annotations)

isAnnotationPresent

public static boolean isAnnotationPresent(Class<? extends Annotation> ac,
                                          AnnotatedElement m,
                                          Annotation... directAnnotations)


Copyright © 2009-2012. All Rights Reserved.