类的使用
cn.taketoday.bytecode.util.Printer
使用Printer的程序包
-
cn.taketoday.bytecode.util中Printer的使用
修饰符和类型类说明classAPrinterthat prints the ASM code to generate the classes if visits.classAPrinterthat prints a disassembled view of the classes it visits.修饰符和类型字段说明final PrinterTraceClassVisitor.pThe printer to convert the visited class into text.final PrinterTraceFieldVisitor.pThe printer to convert the visited field into text.final PrinterTraceMethodVisitor.pThe printer to convert the visited method into text.final PrinterTraceModuleVisitor.pThe printer to convert the visited module into text.private final PrinterTraceAnnotationVisitor.printerThe printer to convert the visited annotation into text.final PrinterTraceRecordComponentVisitor.printerThe printer to convert the visited record component into text.修饰符和类型方法说明Printer.visitAnnotableParameterCount(int parameterCount, boolean visible) Number of method parameters that can have annotations.abstract PrinterPrinter.visitAnnotation(String name, String descriptor) Nested annotation value.abstract PrinterPrinter.visitAnnotationDefault()Method default annotation.abstract PrinterPrinter.visitArray(String name) Annotation array value.abstract PrinterPrinter.visitClassAnnotation(String descriptor, boolean visible) Class annotation.Printer.visitClassTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Class type annotation.Textifier.visitClassTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) abstract PrinterPrinter.visitField(int access, String name, String descriptor, String signature, Object value) Class field.abstract PrinterPrinter.visitFieldAnnotation(String descriptor, boolean visible) Field annotation.Printer.visitFieldTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Field type annotation.Textifier.visitFieldTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Printer.visitInsnAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Instruction type annotation.Textifier.visitInsnAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) ASMifier.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) Printer.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) Local variable type annotation.Textifier.visitLocalVariableAnnotation(int typeRef, TypePath typePath, Label[] start, Label[] end, int[] index, String descriptor, boolean visible) abstract PrinterPrinter.visitMethod(int access, String name, String descriptor, String signature, String[] exceptions) Class method.abstract PrinterPrinter.visitMethodAnnotation(String descriptor, boolean visible) Method annotation.Printer.visitMethodTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Method type annotation.Textifier.visitMethodTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) ASMifier.visitModule(String name, int flags, String version) Printer.visitModule(String name, int access, String version) Module.Textifier.visitModule(String name, int access, String version) abstract PrinterPrinter.visitParameterAnnotation(int parameter, String descriptor, boolean visible) Method parameter annotation.Printer.visitRecordComponent(String name, String descriptor, String signature) Visits a record component of the class.Textifier.visitRecordComponent(String name, String descriptor, String signature) Printer.visitRecordComponentAnnotation(String descriptor, boolean visible) Visits an annotation of the record component.Printer.visitRecordComponentTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Visits an annotation on a type in the record component signature.Textifier.visitRecordComponentTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Printer.visitTryCatchAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) Try catch block type annotation.Textifier.visitTryCatchAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible) 参数类型为Printer的cn.taketoday.bytecode.util中的方法修饰符和类型方法说明(专用程序包) static voidPrinter.main(String[] args, String usage, Printer printer, PrintWriter output, PrintWriter logger) Prints a the given class to the given output.参数类型为Printer的cn.taketoday.bytecode.util中的构造器限定符构造器说明TraceAnnotationVisitor(AnnotationVisitor annotationVisitor, Printer printer) Constructs a newTraceAnnotationVisitor.TraceAnnotationVisitor(Printer printer) Constructs a newTraceAnnotationVisitor.TraceClassVisitor(ClassVisitor classVisitor, Printer printer, PrintWriter printWriter) Constructs a newTraceClassVisitor.TraceFieldVisitor(FieldVisitor fieldVisitor, Printer printer) Constructs a newTraceFieldVisitor.TraceFieldVisitor(Printer printer) Constructs a newTraceFieldVisitor.TraceMethodVisitor(MethodVisitor methodVisitor, Printer printer) Constructs a newTraceMethodVisitor.TraceMethodVisitor(Printer printer) Constructs a newTraceMethodVisitor.TraceModuleVisitor(ModuleVisitor moduleVisitor, Printer printer) Constructs a newTraceModuleVisitor.TraceModuleVisitor(Printer printer) Constructs a newTraceModuleVisitor.TraceRecordComponentVisitor(RecordComponentVisitor recordComponentVisitor, Printer printer) Constructs a newTraceRecordComponentVisitor.TraceRecordComponentVisitor(Printer printer) Constructs a newTraceRecordComponentVisitor.