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 <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)