public class DirectAnnotationAccess extends Object
GuardedAnnotationAccess for details on these checkstyle rules.| Constructor and Description |
|---|
DirectAnnotationAccess() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Annotation> |
getAnnotation(AnnotatedElement element,
Class<T> annotationType) |
static Annotation[] |
getAnnotations(AnnotatedElement element) |
static <T extends Annotation> |
getDeclaredAnnotation(AnnotatedElement element,
Class<T> annotationType) |
static Annotation[] |
getDeclaredAnnotations(AnnotatedElement element) |
static <T extends Annotation> |
isAnnotationPresent(AnnotatedElement element,
Class<T> annotationClass) |
public static <T extends Annotation> boolean isAnnotationPresent(AnnotatedElement element, Class<T> annotationClass)
public static <T extends Annotation> T getAnnotation(AnnotatedElement element, Class<T> annotationType)
public static <T extends Annotation> T getDeclaredAnnotation(AnnotatedElement element, Class<T> annotationType)
public static Annotation[] getAnnotations(AnnotatedElement element)
public static Annotation[] getDeclaredAnnotations(AnnotatedElement element)