类的使用
cn.taketoday.bytecode.AnnotationVisitor
使用AnnotationVisitor的程序包
程序包
说明
CGLIB or ASM other byte code library
Support classes for reading annotation and class-level metadata.
-
cn.taketoday.bytecode中AnnotationVisitor的使用
修饰符和类型类说明(专用程序包) final classAnAnnotationVisitorthat generates a corresponding 'annotation' or 'type_annotation' structure, as defined in the Java Virtual Machine Specification (JVMS).修饰符和类型字段说明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.AnnotationWriter.visitAnnotation(String name, String descriptor) 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.FieldWriter.visitAnnotation(String descriptor, boolean visible) MethodVisitor.visitAnnotation(String descriptor, boolean visible) Visits an annotation of this method.MethodWriter.visitAnnotation(String descriptor, boolean visible) RecordComponentVisitor.visitAnnotation(String descriptor, boolean visible) Visits an annotation of the record component.RecordComponentWriter.visitAnnotation(String descriptor, boolean visible) MethodVisitor.visitAnnotationDefault()Visits the default value of this annotation interface method.MethodWriter.visitAnnotationDefault()AnnotationVisitor.visitArray(String name) Visits an array value of the annotation.AnnotationWriter.visitArray(String name) MethodVisitor.visitInsnAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Visits an annotation on an instruction.MethodWriter.visitInsnAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) MethodVisitor.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) Visits an annotation on a local variable type.MethodWriter.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) MethodVisitor.visitParameterAnnotation(int parameter, String descriptor, boolean visible) Visits an annotation of a parameter this method.MethodWriter.visitParameterAnnotation(int parameter, String annotationDescriptor, boolean visible) MethodVisitor.visitTryCatchAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Visits an annotation on an exception handler type.MethodWriter.visitTryCatchAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) 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.FieldWriter.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) MethodVisitor.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Visits an annotation on a type in the method signature.MethodWriter.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) RecordComponentVisitor.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Visits an annotation on a type in the record component signature.RecordComponentWriter.visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) 参数类型为AnnotationVisitor的cn.taketoday.bytecode中的方法修饰符和类型方法说明private intClassReader.readElementValue(AnnotationVisitor annotationVisitor, int elementValueOffset, String elementName, char[] charBuffer) Reads a JVMS 'element_value' structure and makes the given visitor visit it.private intClassReader.readElementValues(AnnotationVisitor annotationVisitor, int annotationOffset, boolean named, char[] charBuffer) Reads the element values of a JVMS 'annotation' structure and makes the given visitor visit them.参数类型为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的使用
修饰符和类型字段说明private final AnnotationVisitorAnnotationVisitorTee.av1private final AnnotationVisitorAnnotationVisitorTee.av2修饰符和类型方法说明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.(专用程序包) static voidAnnotationNode.accept(AnnotationVisitor visitor, String name, Object value) Makes the given visitor visit a given annotation value. -
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) (专用程序包)CheckAnnotationAdapter(AnnotationVisitor annotationVisitor, boolean useNamedValues) TraceAnnotationVisitor(AnnotationVisitor annotationVisitor, Printer printer) Constructs a newTraceAnnotationVisitor. -
cn.taketoday.core.type.classreading中AnnotationVisitor的使用
修饰符和类型类说明(专用程序包) classMergedAnnotationReadingVisitor<A extends Annotation>AnnotationVisitorthat can be used to construct aMergedAnnotation.private classAnnotationVisitorto deal with array attributes.修饰符和类型方法说明(专用程序包) static <A extends Annotation>
AnnotationVisitorMergedAnnotationReadingVisitor.get(ClassLoader classLoader, Object source, String descriptor, boolean visible, Consumer<MergedAnnotation<A>> consumer) MergedAnnotationReadingVisitor.ArrayVisitor.visitAnnotation(String name, String descriptor) MergedAnnotationReadingVisitor.visitAnnotation(String name, String descriptor) private <T extends Annotation>
AnnotationVisitorMergedAnnotationReadingVisitor.visitAnnotation(String descriptor, Consumer<MergedAnnotation<T>> consumer) SimpleAnnotationMetadataReadingVisitor.visitAnnotation(String descriptor, boolean visible) SimpleMethodMetadataReadingVisitor.visitAnnotation(String descriptor, boolean visible) MergedAnnotationReadingVisitor.visitArray(String name)