public class EmptyAnnotationAccess extends Object implements AnnotationAccess
| Modifier and Type | Field and Description |
|---|---|
static AnnotationAccess |
SINGLETON |
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationType)
Returns an instantiated annotation, or null if the target does not have the indicated annotation.
|
<T extends Annotation> |
hasAnnotation(Class<T> annotationType)
Checks to see if the target has an annotation of the given type.
|
public static final AnnotationAccess SINGLETON
public <T extends Annotation> boolean hasAnnotation(Class<T> annotationType)
AnnotationAccesshasAnnotation in interface AnnotationAccesspublic <T extends Annotation> T getAnnotation(Class<T> annotationType)
AnnotationAccessgetAnnotation in interface AnnotationAccess5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.