## 类的使用
org.springframework.asm.MethodVisitor

- 使用MethodVisitor的程序包
  程序包 | 说明
  --- | ---
  org.springframework.asm | Spring's repackaging of ASM 6.0 (with Spring-specific patches; for internal use only).
  org.springframework.core.type.classreading | Support classes for reading annotation and class-level metadata.

- - ### org.springframework.asm中MethodVisitor的使用

    声明为MethodVisitor的org.springframework.asm中的字段
    限定符和类型 | 字段和说明
    --- | ---
    `protected MethodVisitor` | MethodVisitor.`mv` The method visitor to which this visitor must delegate method calls.

    返回MethodVisitor的org.springframework.asm中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `MethodVisitor` | ClassVisitor.`visitMethod(int access, String name, String desc, String signature, String[] exceptions)` Visits a method of the class.
    `MethodVisitor` | ClassWriter.`visitMethod(int access, String name, String desc, String signature, String[] exceptions)`

    参数类型为MethodVisitor的org.springframework.asm中的构造器
    构造器和说明
    `MethodVisitor(int api, MethodVisitor mv)` Constructs a new `MethodVisitor`.

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

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

    返回MethodVisitor的org.springframework.core.type.classreading中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `MethodVisitor` | AnnotationMetadataReadingVisitor.`visitMethod(int access, String name, String desc, String signature, String[] exceptions)`