# Uses of Class
org.springframework.core.annotation.AnnotationAttributes

Packages that use AnnotationAttributes
Package
Description
org.springframework.core.annotation
Core support package for annotations, meta-annotations, and merged annotations with attribute overrides.
org.springframework.core.type
Core support package for type introspection.

## Uses of AnnotationAttributes in org.springframework.core.annotation

Methods in org.springframework.core.annotation that return AnnotationAttributes
Modifier and Type
Method
Description
`AnnotationAttributes`
MergedAnnotation.`asAnnotationAttributes(MergedAnnotation.Adapt... adaptations)`
Create a new mutable `AnnotationAttributes` instance 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 `annotationType` within the annotation hierarchy above the supplied `element` and 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 `annotationName` within the annotation hierarchy above the supplied `element` and 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 `AnnotationAttributes` instance based on the given map.
`AnnotationAttributes`
AnnotationAttributes.`getAnnotation(String attributeName)`
Get the `AnnotationAttributes` stored under the specified `attributeName`.
`AnnotationAttributes[]`
AnnotationAttributes.`getAnnotationArray(String attributeName)`
Get the array of `AnnotationAttributes` stored under the specified `attributeName`.
`static AnnotationAttributes`
AnnotationUtils.`getAnnotationAttributes(Annotation annotation, boolean classValuesAsString, boolean nestedAnnotationsAsMap)`
Retrieve the given annotation's attributes as an `AnnotationAttributes` map.
`static AnnotationAttributes`
AnnotationUtils.`getAnnotationAttributes(AnnotatedElement annotatedElement, Annotation annotation)`
Retrieve the given annotation's attributes as an `AnnotationAttributes` map.
`static AnnotationAttributes`
AnnotationUtils.`getAnnotationAttributes(AnnotatedElement annotatedElement, Annotation annotation, boolean classValuesAsString, boolean nestedAnnotationsAsMap)`
Retrieve the given annotation's attributes as an `AnnotationAttributes` map.
`static AnnotationAttributes`
AnnotatedElementUtils.`getMergedAnnotationAttributes(AnnotatedElement element, Class<? extends Annotation> annotationType)`
Get the first annotation of the specified `annotationType` within the annotation hierarchy above the supplied `element` and 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 `annotationName` within the annotation hierarchy above the supplied `element` and 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 `annotationName` within the annotation hierarchy above the supplied `element` and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.
Methods in org.springframework.core.annotation with parameters of type AnnotationAttributes
Modifier and Type
Method
Description
`static void`
AnnotationUtils.`postProcessAnnotationAttributes(Object annotatedElement, AnnotationAttributes attributes, boolean classValuesAsString)`
Post-process the supplied `AnnotationAttributes`, preserving nested annotations as `Annotation` instances.
`static void`
AnnotationUtils.`registerDefaultValues(AnnotationAttributes attributes)`
Register the annotation-declared default values for the given attributes, if available.
Constructors in org.springframework.core.annotation with parameters of type AnnotationAttributes
Modifier
Constructor
Description
``
`AnnotationAttributes(AnnotationAttributes other)`
Create a new `AnnotationAttributes` instance, wrapping the provided map and all its key-value pairs.

## Uses of AnnotationAttributes in org.springframework.core.type

Methods in org.springframework.core.type that return types with arguments of type AnnotationAttributes
Modifier and Type
Method
Description
`default Set<AnnotationAttributes>`
AnnotatedTypeMetadata.`getMergedRepeatableAnnotationAttributes(Class<? extends Annotation> annotationType, Class<? extends Annotation> containerType, boolean classValuesAsString)`
Retrieve all repeatable annotations of the given type within the annotation hierarchy above the underlying element (as direct annotation or meta-annotation); and for each annotation found, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy and store the results in an instance of `AnnotationAttributes`.
`default Set<AnnotationAttributes>`
AnnotatedTypeMetadata.`getMergedRepeatableAnnotationAttributes(Class<? extends Annotation> annotationType, Class<? extends Annotation> containerType, boolean classValuesAsString, boolean sortByReversedMetaDistance)`
Retrieve all repeatable annotations of the given type within the annotation hierarchy above the underlying element (as direct annotation or meta-annotation); and for each annotation found, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy and store the results in an instance of `AnnotationAttributes`.
`default Set<AnnotationAttributes>`
AnnotatedTypeMetadata.`getMergedRepeatableAnnotationAttributes(Class<? extends Annotation> annotationType, Class<? extends Annotation> containerType, Predicate<MergedAnnotation<? extends Annotation>> predicate, boolean classValuesAsString, boolean sortByReversedMetaDistance)`
Retrieve all repeatable annotations of the given type within the annotation hierarchy above the underlying element (as direct annotation or meta-annotation); and for each annotation found, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy and store the results in an instance of `AnnotationAttributes`.