public interface Annotations extends TypeObject
Modifier and Type | Method and Description |
---|---|
java.util.Set<Type> |
annotationTypes()
The annotations that have been used.
|
java.util.Map<java.lang.String,AnnotationElementValue> |
elementValuePairs(Type annotationType)
Get the element value pairs for the given annotation type.
|
boolean |
hasAnnotationType(Type annotationType)
Do these annotations contain an annotation of the specified type?
If this method returns true, then annotationType is in the set
returned by this.annotationTypes().
|
java.util.Set<Type> |
retainedAnnotationTypes()
The annotations that have
a retention policy of annotation.RetentionPolicy.CLASS or
annotation.RetentionPolicy.RUNTIME.
|
AnnotationElementValue |
singleElement(Type annotationType)
If annotationType is a single element annotation type,
then return the element (or null if there is no
annotation for this annotation type).
|
equalsImpl, isCanonical, position, typeSystem
java.util.Set<Type> annotationTypes()
java.util.Set<Type> retainedAnnotationTypes()
java.util.Map<java.lang.String,AnnotationElementValue> elementValuePairs(Type annotationType)
boolean hasAnnotationType(Type annotationType)
AnnotationElementValue singleElement(Type annotationType)