public class DelegatingAnnotationAccess extends Object implements AnnotationAccess
Inherited
is on the annotation being searched),
it searches in the inherited access.Constructor and Description |
---|
DelegatingAnnotationAccess(AnnotationAccess primary,
AnnotationAccess inherited) |
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 DelegatingAnnotationAccess(AnnotationAccess primary, AnnotationAccess inherited)
public <T extends Annotation> boolean hasAnnotation(Class<T> annotationType)
AnnotationAccess
hasAnnotation
in interface AnnotationAccess
public <T extends Annotation> T getAnnotation(Class<T> annotationType)
AnnotationAccess
getAnnotation
in interface AnnotationAccess
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.