public class Annotations extends Object implements AnnotatedElement
AnnotatedElement
interfaceConstructor and Description |
---|
Annotations(AnnotatedElement... elements) |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(Annotation annotation) |
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
public Annotations(AnnotatedElement... elements)
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation
in interface AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent
in interface AnnotatedElement
public void addAnnotation(@Nullable Annotation annotation)
Copyright © 2007–2015 Mysema Ltd. All rights reserved.