| Package | Description | 
|---|---|
| org.springframework.core.annotation | Core support package for annotations, meta-annotations, and merged
 annotations with attribute overrides. | 
| org.springframework.core.type.classreading | Support classes for reading annotation and class-level metadata. | 
| Modifier and Type | Method and Description | 
|---|---|
| AnnotationAttributes | MergedAnnotation. asAnnotationAttributes(MergedAnnotation.Adapt... adaptations)Create a new mutable  AnnotationAttributesinstance from this
 merged annotation. | 
| static AnnotationAttributes | AnnotatedElementUtils. findMergedAnnotationAttributes(AnnotatedElement element,
                              Class<? extends Annotation> annotationType,
                              boolean classValuesAsString,
                              boolean nestedAnnotationsAsMap)Find the first annotation of the specified  annotationTypewithin
 the annotation hierarchy above the suppliedelementand
 merge that annotation's attributes with matching attributes from
 annotations in lower levels of the annotation hierarchy. | 
| static AnnotationAttributes | AnnotatedElementUtils. findMergedAnnotationAttributes(AnnotatedElement element,
                              String annotationName,
                              boolean classValuesAsString,
                              boolean nestedAnnotationsAsMap)Find the first annotation of the specified  annotationNamewithin
 the annotation hierarchy above the suppliedelementand
 merge that annotation's attributes with matching attributes from
 annotations in lower levels of the annotation hierarchy. | 
| static AnnotationAttributes | AnnotationAttributes. fromMap(Map<String,Object> map)Return an  AnnotationAttributesinstance based on the given map. | 
| AnnotationAttributes | AnnotationAttributes. getAnnotation(String attributeName)Get the  AnnotationAttributesstored under the specifiedattributeName. | 
| AnnotationAttributes[] | AnnotationAttributes. getAnnotationArray(String attributeName)Get the array of  AnnotationAttributesstored under the specifiedattributeName. | 
| static AnnotationAttributes | AnnotationUtils. getAnnotationAttributes(AnnotatedElement annotatedElement,
                       Annotation annotation)Retrieve the given annotation's attributes as an  AnnotationAttributesmap. | 
| static AnnotationAttributes | AnnotationUtils. getAnnotationAttributes(AnnotatedElement annotatedElement,
                       Annotation annotation,
                       boolean classValuesAsString,
                       boolean nestedAnnotationsAsMap)Retrieve the given annotation's attributes as an  AnnotationAttributesmap. | 
| static AnnotationAttributes | AnnotationUtils. getAnnotationAttributes(Annotation annotation,
                       boolean classValuesAsString,
                       boolean nestedAnnotationsAsMap)Retrieve the given annotation's attributes as an  AnnotationAttributesmap. | 
| static AnnotationAttributes | AnnotatedElementUtils. getMergedAnnotationAttributes(AnnotatedElement element,
                             Class<? extends Annotation> annotationType)Get the first annotation of the specified  annotationTypewithin
 the annotation hierarchy above the suppliedelementand
 merge that annotation's attributes with matching attributes from
 annotations in lower levels of the annotation hierarchy. | 
| static AnnotationAttributes | AnnotatedElementUtils. getMergedAnnotationAttributes(AnnotatedElement element,
                             String annotationName)Get the first annotation of the specified  annotationNamewithin
 the annotation hierarchy above the suppliedelementand
 merge that annotation's attributes with matching attributes from
 annotations in lower levels of the annotation hierarchy. | 
| static AnnotationAttributes | AnnotatedElementUtils. getMergedAnnotationAttributes(AnnotatedElement element,
                             String annotationName,
                             boolean classValuesAsString,
                             boolean nestedAnnotationsAsMap)Get the first annotation of the specified  annotationNamewithin
 the annotation hierarchy above the suppliedelementand
 merge that annotation's attributes with matching attributes from
 annotations in lower levels of the annotation hierarchy. | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | AnnotationUtils. postProcessAnnotationAttributes(Object annotatedElement,
                               AnnotationAttributes attributes,
                               boolean classValuesAsString)Post-process the supplied  AnnotationAttributes, preserving nested
 annotations asAnnotationinstances. | 
| static void | AnnotationUtils. registerDefaultValues(AnnotationAttributes attributes)Register the annotation-declared default values for the given attributes,
 if available. | 
| Constructor and Description | 
|---|
| AnnotationAttributes(AnnotationAttributes other)Create a new  AnnotationAttributesinstance, wrapping the provided
 map and all its key-value pairs. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected LinkedMultiValueMap<String,AnnotationAttributes> | MethodMetadataReadingVisitor. attributesMapDeprecated.  | 
| protected LinkedMultiValueMap<String,AnnotationAttributes> | AnnotationMetadataReadingVisitor. attributesMapDeprecated.  Declared as a  LinkedMultiValueMapinstead of aMultiValueMapto ensure that the hierarchical ordering of the entries is preserved. | 
| Modifier and Type | Method and Description | 
|---|---|
| AnnotationAttributes | MethodMetadataReadingVisitor. getAnnotationAttributes(String annotationName,
                       boolean classValuesAsString)Deprecated.  | 
| AnnotationAttributes | AnnotationMetadataReadingVisitor. getAnnotationAttributes(String annotationName,
                       boolean classValuesAsString)Deprecated.  |