类的使用
cn.taketoday.bytecode.AnnotationVisitor
使用AnnotationVisitor的程序包
程序包
说明
CGLIB or ASM other byte code library
Provides some useful class and method adapters.
Provides an ASM visitor that constructs a tree representation of the
classes it visits.
Provides ASM visitors that can be useful for programming and
debugging purposes.
-
cn.taketoday.bytecode中AnnotationVisitor的使用
修饰符和类型字段说明protected AnnotationVisitorAnnotationVisitor.avThe annotation visitor to which this visitor must delegate method calls.修饰符和类型方法说明AnnotationVisitor.visitAnnotation(String name, String descriptor) Visits a nested annotation value of the annotation.ClassVisitor.visitAnnotation(String descriptor, boolean visible) Visits an annotation of the class.final AnnotationVisitorClassWriter.visitAnnotation(String descriptor, boolean visible) FieldVisitor.visitAnnotation(String descriptor, boolean visible) Visits an annotation of the field.MethodVisitor.visitAnnotation(String descriptor, boolean visible) Visits an annotation of this method.RecordComponentVisitor.visitAnnotation(String descriptor, boolean visible) Visits an annotation of the record component.MethodVisitor.visitAnnotationDefault()Visits the default value of this annotation interface method.AnnotationVisitor.visitArray(String name) Visits an array value of the annotation.MethodVisitor.visitInsnAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Visits an annotation on an instruction.MethodVisitor.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) Visits an annotation on a local variable type.MethodVisitor.visitParameterAnnotation(int parameter, String descriptor, boolean visible) Visits an annotation of a parameter this method.MethodVisitor.visitTryCatchAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Visits an annotation on an exception handler type.ClassVisitor.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Visits an annotation on a type in the class signature.final AnnotationVisitorClassWriter.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) FieldVisitor.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Visits an annotation on the type of the field.MethodVisitor.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Visits an annotation on a type in the method signature.RecordComponentVisitor.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Visits an annotation on a type in the record component signature.参数类型为AnnotationVisitor的cn.taketoday.bytecode中的构造器限定符构造器说明AnnotationVisitor(AnnotationVisitor annotationVisitor) Constructs a newAnnotationVisitor. -
cn.taketoday.bytecode.commons中AnnotationVisitor的使用
修饰符和类型方法说明protected AnnotationVisitorAnnotationRemapper.createAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected AnnotationVisitorClassRemapper.createAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected AnnotationVisitorFieldRemapper.createAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected AnnotationVisitorMethodRemapper.createAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected AnnotationVisitorRecordComponentRemapper.createAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.AnnotationRemapper.visitAnnotation(String name, String descriptor) ClassRemapper.visitAnnotation(String descriptor, boolean visible) FieldRemapper.visitAnnotation(String descriptor, boolean visible) MethodRemapper.visitAnnotation(String descriptor, boolean visible) RecordComponentRemapper.visitAnnotation(String descriptor, boolean visible) MethodRemapper.visitAnnotationDefault()AnnotationRemapper.visitArray(String name) MethodRemapper.visitInsnAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) LocalVariablesSorter.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) MethodRemapper.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) MethodRemapper.visitParameterAnnotation(int parameter, String descriptor, boolean visible) MethodRemapper.visitTryCatchAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) ClassRemapper.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) FieldRemapper.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) MethodRemapper.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) RecordComponentRemapper.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) 修饰符和类型方法说明protected AnnotationVisitorAnnotationRemapper.createAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected AnnotationVisitorClassRemapper.createAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected AnnotationVisitorFieldRemapper.createAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected AnnotationVisitorMethodRemapper.createAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected AnnotationVisitorRecordComponentRemapper.createAnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.限定符构造器说明AnnotationRemapper(String descriptor, AnnotationVisitor annotationVisitor, Remapper remapper) Constructs a newAnnotationRemapper. -
cn.taketoday.bytecode.transform中AnnotationVisitor的使用
修饰符和类型方法说明static AnnotationVisitorAnnotationVisitorTee.getInstance(AnnotationVisitor av1, AnnotationVisitor av2) AbstractClassFilterTransformer.visitAnnotation(String desc, boolean visible) AnnotationVisitorTee.visitAnnotation(String name, String desc) ClassVisitorTee.visitAnnotation(String desc, boolean visible) FieldVisitorTee.visitAnnotation(String desc, boolean visible) MethodVisitorTee.visitAnnotation(String desc, boolean visible) MethodVisitorTee.visitAnnotationDefault()AnnotationVisitorTee.visitArray(String name) MethodVisitorTee.visitInsnAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) MethodVisitorTee.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String desc, boolean visible) MethodVisitorTee.visitParameterAnnotation(int parameter, String desc, boolean visible) MethodVisitorTee.visitTryCatchAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) ClassVisitorTee.visitTypeAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) FieldVisitorTee.visitTypeAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) MethodVisitorTee.visitTypeAnnotation(int typeRef, TypePath typePath, String desc, boolean visible) 修饰符和类型方法说明static AnnotationVisitorAnnotationVisitorTee.getInstance(AnnotationVisitor av1, AnnotationVisitor av2) -
cn.taketoday.bytecode.tree中AnnotationVisitor的使用
修饰符和类型类说明classA node that represents an annotation.classA node that represents a type annotation on a local or resource variable.classA node that represents a type annotation.修饰符和类型方法说明AnnotationNode.visitAnnotation(String name, String descriptor) ClassNode.visitAnnotation(String descriptor, boolean visible) FieldNode.visitAnnotation(String descriptor, boolean visible) MethodNode.visitAnnotation(String descriptor, boolean visible) RecordComponentNode.visitAnnotation(String descriptor, boolean visible) MethodNode.visitAnnotationDefault()AnnotationNode.visitArray(String name) MethodNode.visitInsnAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) MethodNode.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) MethodNode.visitParameterAnnotation(int parameter, String descriptor, boolean visible) MethodNode.visitTryCatchAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) ClassNode.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) FieldNode.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) MethodNode.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) RecordComponentNode.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) 修饰符和类型方法说明voidAnnotationNode.accept(AnnotationVisitor visitor) Makes the given visitor visit this annotation. -
cn.taketoday.bytecode.util中AnnotationVisitor的使用
修饰符和类型类说明classAnAnnotationVisitorthat checks that its methods are properly used.final classAnAnnotationVisitorthat prints the annotations it visits with aPrinter.修饰符和类型方法说明CheckAnnotationAdapter.visitAnnotation(String name, String descriptor) CheckClassAdapter.visitAnnotation(String descriptor, boolean visible) CheckFieldAdapter.visitAnnotation(String descriptor, boolean visible) CheckMethodAdapter.visitAnnotation(String descriptor, boolean visible) CheckRecordComponentAdapter.visitAnnotation(String descriptor, boolean visible) TraceAnnotationVisitor.visitAnnotation(String name, String descriptor) TraceClassVisitor.visitAnnotation(String descriptor, boolean visible) TraceFieldVisitor.visitAnnotation(String descriptor, boolean visible) TraceMethodVisitor.visitAnnotation(String descriptor, boolean visible) TraceRecordComponentVisitor.visitAnnotation(String descriptor, boolean visible) CheckMethodAdapter.visitAnnotationDefault()TraceMethodVisitor.visitAnnotationDefault()CheckAnnotationAdapter.visitArray(String name) TraceAnnotationVisitor.visitArray(String name) CheckMethodAdapter.visitInsnAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) TraceMethodVisitor.visitInsnAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) CheckMethodAdapter.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) TraceMethodVisitor.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) CheckMethodAdapter.visitParameterAnnotation(int parameter, String descriptor, boolean visible) TraceMethodVisitor.visitParameterAnnotation(int parameter, String descriptor, boolean visible) CheckMethodAdapter.visitTryCatchAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) TraceMethodVisitor.visitTryCatchAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) CheckClassAdapter.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) CheckFieldAdapter.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) CheckMethodAdapter.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) CheckRecordComponentAdapter.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) TraceClassVisitor.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) TraceFieldVisitor.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) TraceMethodVisitor.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) TraceRecordComponentVisitor.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) 参数类型为AnnotationVisitor的cn.taketoday.bytecode.util中的构造器限定符构造器说明CheckAnnotationAdapter(AnnotationVisitor annotationVisitor) TraceAnnotationVisitor(AnnotationVisitor annotationVisitor, Printer printer) Constructs a newTraceAnnotationVisitor.