public final class GuardedAnnotationAccess extends Object
| Constructor and Description |
|---|
GuardedAnnotationAccess() |
public static boolean isAnnotationPresent(AnnotatedElement element, Class<? extends Annotation> annotationClass)
public static boolean isAnnotationPresent(AnnotationExtracter extracter, AnnotatedElement element, Class<? extends Annotation> annotationClass)
public static <T extends Annotation> T getAnnotation(AnnotatedElement element, Class<T> annotationType)
public static <T extends Annotation> T getAnnotation(AnnotationExtracter extracter, AnnotatedElement element, Class<T> annotationType)
public static Annotation[] getAnnotations(AnnotatedElement element)
public static Class<? extends Annotation>[] getAnnotationTypes(AnnotatedElement element)
public static <T extends Annotation> T getDeclaredAnnotation(AnnotatedElement element, Class<T> annotationType)
public static <T extends Annotation> T getDeclaredAnnotation(AnnotationExtracter extracter, AnnotatedElement element, Class<T> annotationType)
public static Annotation[] getDeclaredAnnotations(AnnotatedElement element)