public interface AnnotationTarget<O extends JavaType<O>> extends Internal, Origin<O>
| Modifier and Type | Method and Description |
|---|---|
Annotation<O> |
getAnnotation(Class<? extends Annotation> type)
Returns the annotation bound of the given type in this
AnnotationTarget or null if it doesn't exist |
Annotation<O> |
getAnnotation(String type)
Returns the annotation bound of the given type in this
AnnotationTarget or null if it doesn't exist |
List<? extends Annotation<O>> |
getAnnotations()
|
boolean |
hasAnnotation(Class<? extends Annotation> type)
Check if annotation bound of the given type in this
AnnotationTarget exists |
boolean |
hasAnnotation(String type)
Check if annotation bound of the given type in this
AnnotationTarget exists |
getInternalList<? extends Annotation<O>> getAnnotations()
boolean hasAnnotation(Class<? extends Annotation> type)
AnnotationTarget existstype - The Annotation typeboolean hasAnnotation(String type)
AnnotationTarget existstype - The FQN of the annotationAnnotation<O> getAnnotation(Class<? extends Annotation> type)
AnnotationTarget or null if it doesn't existtype - The Annotation typeAnnotation<O> getAnnotation(String type)
AnnotationTarget or null if it doesn't existtype - The FQN of the annotationCopyright © 2019 JBoss by Red Hat. All rights reserved.