## 类的使用
org.springframework.core.annotation.AnnotationAttributes

- 使用AnnotationAttributes的程序包
  程序包 | 说明
  --- | ---
  org.springframework.core.annotation | Core support package for annotations, meta-annotations, and composed annotations with attribute overrides.
  org.springframework.core.type.classreading | Support classes for reading annotation and class-level metadata.

- - ### org.springframework.core.annotation中AnnotationAttributes的使用

    返回AnnotationAttributes的org.springframework.core.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(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` | AnnotationUtils.`getAnnotationAttributes(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.

    参数类型为AnnotationAttributes的org.springframework.core.annotation中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `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.

    参数类型为AnnotationAttributes的org.springframework.core.annotation中的构造器
    构造器和说明
    `AnnotationAttributes(AnnotationAttributes other)` Create a new `AnnotationAttributes` instance, wrapping the provided map and all its key-value pairs.

  - ### org.springframework.core.type.classreading中AnnotationAttributes的使用

    类型参数类型为AnnotationAttributes的org.springframework.core.type.classreading中的字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected LinkedMultiValueMap<String,AnnotationAttributes>` | AnnotationMetadataReadingVisitor.`attributesMap` Declared as a `LinkedMultiValueMap` instead of a `MultiValueMap` to ensure that the hierarchical ordering of the entries is preserved.
    `protected LinkedMultiValueMap<String,AnnotationAttributes>` | MethodMetadataReadingVisitor.`attributesMap`

    返回AnnotationAttributes的org.springframework.core.type.classreading中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `AnnotationAttributes` | AnnotationMetadataReadingVisitor.`getAnnotationAttributes(String annotationName)`
    `AnnotationAttributes` | MethodMetadataReadingVisitor.`getAnnotationAttributes(String annotationName)`
    `AnnotationAttributes` | AnnotationMetadataReadingVisitor.`getAnnotationAttributes(String annotationName, boolean classValuesAsString)`
    `AnnotationAttributes` | MethodMetadataReadingVisitor.`getAnnotationAttributes(String annotationName, boolean classValuesAsString)`