public class AnnotationUtils extends Object
Constructor and Description |
---|
AnnotationUtils() |
Modifier and Type | Method and Description |
---|---|
static <A extends Annotation> |
getAnnotation(Class<A> ac,
AnnotatedElement m,
Annotation... directAnnotations) |
static <A extends Annotation> |
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) |
public AnnotationUtils()
public static <A extends Annotation> A getInheritableAnnotation(Class<A> ac, AnnotatedElement m, Annotation... directAnnotations)
public static <A extends Annotation> A getAnnotation(Class<A> ac, AnnotatedElement m, Annotation... directAnnotations)
public static boolean isAnnotationPresent(Class<? extends Annotation> ac, Annotation... annotations)
public static boolean isAnnotationPresent(Class<? extends Annotation> ac, AnnotatedElement m, Annotation... directAnnotations)
Copyright © 2009-2020. All Rights Reserved.