public interface AnnotationMetadataProvider extends AnnotationSource
AnnotationMetadata.EMPTY| Modifier and Type | Method and Description | 
|---|---|
default <T extends Annotation> | 
findAnnotation(Class<T> annotation)
Find an  
AnnotationValue for the given annotation type. | 
default <T extends Annotation> | 
findAnnotation(String annotation)
Find an  
AnnotationValue for the given annotation name. | 
default <T extends Annotation> | 
findDeclaredAnnotation(Class<T> annotation)
Get all of the values for the given annotation that are directly declared on the annotated element. 
 | 
default <T extends Annotation> | 
findDeclaredAnnotation(String annotation)
Get all of the values for the given annotation that are directly declared on the annotated element. 
 | 
default AnnotationMetadata | 
getAnnotationMetadata()
Supplies the metadata. 
 | 
default boolean | 
isAnnotationPresent(Class<? extends Annotation> annotationClass)
Return whether an annotation is present. 
 | 
default boolean | 
isDeclaredAnnotationPresent(Class<? extends Annotation> annotationClass)
Variation of  
AnnotationSource.isAnnotationPresent(Class) for declared annotations. | 
default <T extends Annotation> | 
synthesize(Class<T> annotationClass)
Synthesizes a new annotation from the metadata for the given annotation type. 
 | 
default Annotation[] | 
synthesizeAll()
Synthesizes a new annotations from the metadata. 
 | 
default <T extends Annotation> | 
synthesizeAnnotationsByType(Class<T> annotationClass)
Synthesizes a new annotations from the metadata for the given type. 
 | 
default Annotation[] | 
synthesizeDeclared()
Synthesizes a new annotations from the metadata. 
 | 
default <T extends Annotation> | 
synthesizeDeclared(Class<T> annotationClass)
Synthesizes a new annotation from the metadata for the given annotation type. 
 | 
default <T extends Annotation> | 
synthesizeDeclaredAnnotationsByType(Class<T> annotationClass)
Synthesizes a new annotations from the metadata for the given type. 
 | 
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotationdefault AnnotationMetadata getAnnotationMetadata()
AnnotationMetadata.EMPTY_METADATA.AnnotationMetadatadefault <T extends Annotation> T synthesize(Class<T> annotationClass)
AnnotationSourcesynthesize in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation classdefault Annotation[] synthesizeAll()
AnnotationSourcesynthesizeAll in interface AnnotationSourcedefault Annotation[] synthesizeDeclared()
AnnotationSourcesynthesizeDeclared in interface AnnotationSourcedefault boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
AnnotationSourceisAnnotationPresent in interface AnnotationSourceannotationClass - The annotation classdefault boolean isDeclaredAnnotationPresent(Class<? extends Annotation> annotationClass)
AnnotationSourceAnnotationSource.isAnnotationPresent(Class) for declared annotations.isDeclaredAnnotationPresent in interface AnnotationSourceannotationClass - The annotation classdefault <T extends Annotation> T synthesizeDeclared(Class<T> annotationClass)
AnnotationSourceThis method ignores inherited annotations. (Returns null if no annotations are directly present on this element.)
synthesizeDeclared in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation classdefault <T extends Annotation> T[] synthesizeAnnotationsByType(Class<T> annotationClass)
AnnotationSourcesynthesizeAnnotationsByType in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation typedefault <T extends Annotation> T[] synthesizeDeclaredAnnotationsByType(Class<T> annotationClass)
AnnotationSourcesynthesizeDeclaredAnnotationsByType in interface AnnotationSourceT - The annotation generic typeannotationClass - The annotation typedefault <T extends Annotation> Optional<AnnotationValue<T>> findAnnotation(String annotation)
AnnotationSourceAnnotationValue for the given annotation name.findAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instancedefault <T extends Annotation> Optional<AnnotationValue<T>> findAnnotation(Class<T> annotation)
AnnotationSourceAnnotationValue for the given annotation type.findAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotationAnnotationValue instancedefault <T extends Annotation> Optional<AnnotationValue<T>> findDeclaredAnnotation(String annotation)
AnnotationSourcefindDeclaredAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instancedefault <T extends Annotation> Optional<AnnotationValue<T>> findDeclaredAnnotation(Class<T> annotation)
AnnotationSourcefindDeclaredAnnotation in interface AnnotationSourceT - The annotation typeannotation - The annotation nameAnnotationValue instance