## 接口的使用
org.springframework.core.type.MethodMetadata

- 使用MethodMetadata的程序包
  程序包 | 说明
  --- | ---
  org.springframework.core.type | Core support package for type introspection.
  org.springframework.core.type.classreading | Support classes for reading annotation and class-level metadata.

- - ### org.springframework.core.type中MethodMetadata的使用

    实现MethodMetadata的org.springframework.core.type中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `StandardMethodMetadata` `MethodMetadata` implementation that uses standard reflection to introspect a given `Method`.

    返回变量类型为MethodMetadata的类型的org.springframework.core.type中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `Set<MethodMetadata>` | AnnotationMetadata.`getAnnotatedMethods(String annotationName)` Retrieve the method metadata for all methods that are annotated (or meta-annotated) with the given annotation type.
    `Set<MethodMetadata>` | StandardAnnotationMetadata.`getAnnotatedMethods(String annotationName)`

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

    实现MethodMetadata的org.springframework.core.type.classreading中的类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `MethodMetadataReadingVisitor` ASM method visitor which looks for the annotations defined on a method, exposing them through the `MethodMetadata` interface.

    类型参数类型为MethodMetadata的org.springframework.core.type.classreading中的字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected Set<MethodMetadata>` | AnnotationMetadataReadingVisitor.`methodMetadataSet`
    `protected Set<MethodMetadata>` | MethodMetadataReadingVisitor.`methodMetadataSet`

    返回变量类型为MethodMetadata的类型的org.springframework.core.type.classreading中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `Set<MethodMetadata>` | AnnotationMetadataReadingVisitor.`getAnnotatedMethods(String annotationName)`

    类型变量类型为MethodMetadata的org.springframework.core.type.classreading中的构造器参数
    构造器和说明
    `MethodMetadataReadingVisitor(String methodName, int access, String declaringClassName, String returnTypeName, ClassLoader classLoader, Set<MethodMetadata> methodMetadataSet)`