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

- 使用ClassVisitor的程序包
  程序包 | 说明
  --- | ---
  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中ClassVisitor的使用

    org.springframework.asm中ClassVisitor的子类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `ClassWriter` A `ClassVisitor` that generates classes in bytecode form.

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

    参数类型为ClassVisitor的org.springframework.asm中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `void` | ClassReader.`accept(ClassVisitor classVisitor, Attribute[] attrs, int flags)` Makes the given visitor visit the Java class of this `ClassReader`.
    `void` | ClassReader.`accept(ClassVisitor classVisitor, int flags)` Makes the given visitor visit the Java class of this `ClassReader` .

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

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

    org.springframework.core.type.classreading中ClassVisitor的子类
    限定符和类型 | 类和说明
    --- | ---
    `class` | `AnnotationMetadataReadingVisitor` ASM class visitor which looks for the class name and implemented types as well as for the annotations defined on the class, exposing them through the `AnnotationMetadata` interface.