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