类的使用
org.beetl.ow2.asm.MethodVisitor
使用MethodVisitor的程序包
程序包
说明
OSGL MVC Server's repackaging of
org.osgl.mvc.server.asm 5.0
(for internal use only).
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.
Provides SAX 2.0 adapters for ASM
visitors to convert classes to and from XML.
-
org.beetl.ow2.asm中MethodVisitor的使用
声明为MethodVisitor的org.beetl.ow2.asm中的字段修饰符和类型字段说明protected MethodVisitorMethodVisitor.mvThe method visitor to which this visitor must delegate method calls.修饰符和类型方法说明ClassVisitor.visitMethod(int access, String name, String desc, String signature, String[] exceptions) Visits a method of the class.final MethodVisitorClassWriter.visitMethod(int access, String name, String desc, String signature, String[] exceptions) 参数类型为MethodVisitor的org.beetl.ow2.asm中的构造器 -
org.beetl.ow2.asm.commons中MethodVisitor的使用
修饰符和类型类说明classAMethodVisitorto insert before, after and around advices in methods and constructors.classAMethodVisitorthat keeps track of stack map frame changes betweenvisitFramecalls.classAMethodVisitorthat can be used to approximate method size.classAMethodVisitorwith convenient methods to generate code.classAMethodVisitorproviding a more detailed API to generate and transform instructions.classAMethodVisitorthat removes JSR instructions and inlines the referenced subroutines.classAMethodVisitorthat renumbers local variables in their order of appearance.classALocalVariablesSorterfor type mapping.classAMethodVisitoradapter to sort the exception handlers.修饰符和类型方法说明protected MethodVisitorRemappingClassAdapter.createRemappingMethodAdapter(int access, String newDesc, MethodVisitor mv) RemappingClassAdapter.visitMethod(int access, String name, String desc, String signature, String[] exceptions) SerialVersionUIDAdder.visitMethod(int access, String name, String desc, String signature, String[] exceptions) StaticInitMerger.visitMethod(int access, String name, String desc, String signature, String[] exceptions) 参数类型为MethodVisitor的org.beetl.ow2.asm.commons中的方法修饰符和类型方法说明protected MethodVisitorRemappingClassAdapter.createRemappingMethodAdapter(int access, String newDesc, MethodVisitor mv) 参数类型为MethodVisitor的org.beetl.ow2.asm.commons中的构造器限定符构造器说明protectedAdviceAdapter(int api, MethodVisitor mv, int access, String name, String desc) Creates a newAdviceAdapter.protectedAnalyzerAdapter(int api, String owner, int access, String name, String desc, MethodVisitor mv) Creates a newAnalyzerAdapter.AnalyzerAdapter(String owner, int access, String name, String desc, MethodVisitor mv) Creates a newAnalyzerAdapter.protectedCodeSizeEvaluator(int api, MethodVisitor mv) GeneratorAdapter(int access, Method method, MethodVisitor mv) Creates a newGeneratorAdapter.protectedGeneratorAdapter(int api, MethodVisitor mv, int access, String name, String desc) Creates a newGeneratorAdapter.GeneratorAdapter(MethodVisitor mv, int access, String name, String desc) Creates a newGeneratorAdapter.protectedInstructionAdapter(int api, MethodVisitor mv) Creates a newInstructionAdapter.Creates a newInstructionAdapter.protectedJSRInlinerAdapter(int api, MethodVisitor mv, int access, String name, String desc, String signature, String[] exceptions) Creates a new JSRInliner.JSRInlinerAdapter(MethodVisitor mv, int access, String name, String desc, String signature, String[] exceptions) Creates a new JSRInliner.protectedLocalVariablesSorter(int api, int access, String desc, MethodVisitor mv) Creates a newLocalVariablesSorter.LocalVariablesSorter(int access, String desc, MethodVisitor mv) Creates a newLocalVariablesSorter.protectedRemappingMethodAdapter(int api, int access, String desc, MethodVisitor mv, Remapper remapper) RemappingMethodAdapter(int access, String desc, MethodVisitor mv, Remapper remapper) protectedTryCatchBlockSorter(int api, MethodVisitor mv, int access, String name, String desc, String signature, String[] exceptions) TryCatchBlockSorter(MethodVisitor mv, int access, String name, String desc, String signature, String[] exceptions) -
org.beetl.ow2.asm.optimizer中MethodVisitor的使用
修饰符和类型类说明classAnMethodVisitorthat collects theConstants of the methods it visits.classAMethodVisitorthat renames fields and methods, and removes debug info.修饰符和类型方法说明protected MethodVisitorClassOptimizer.createRemappingMethodAdapter(int access, String newDesc, MethodVisitor mv) ClassConstantsCollector.visitMethod(int access, String name, String desc, String signature, String[] exceptions) ClassOptimizer.visitMethod(int access, String name, String desc, String signature, String[] exceptions) 参数类型为MethodVisitor的org.beetl.ow2.asm.optimizer中的方法修饰符和类型方法说明protected MethodVisitorClassOptimizer.createRemappingMethodAdapter(int access, String newDesc, MethodVisitor mv) 参数类型为MethodVisitor的org.beetl.ow2.asm.optimizer中的构造器限定符构造器说明MethodOptimizer(ClassOptimizer classOptimizer, int access, String desc, MethodVisitor mv, Remapper remapper) -
org.beetl.ow2.asm.tree中MethodVisitor的使用
修饰符和类型方法说明ClassNode.visitMethod(int access, String name, String desc, String signature, String[] exceptions) 参数类型为MethodVisitor的org.beetl.ow2.asm.tree中的方法修饰符和类型方法说明abstract voidAbstractInsnNode.accept(MethodVisitor cv) Makes the given code visitor visit this instruction.voidFieldInsnNode.accept(MethodVisitor mv) voidFrameNode.accept(MethodVisitor mv) Makes the given visitor visit this stack map frame.voidIincInsnNode.accept(MethodVisitor mv) voidInsnList.accept(MethodVisitor mv) Makes the given visitor visit all of the instructions in this list.voidInsnNode.accept(MethodVisitor mv) Makes the given visitor visit this instruction.voidIntInsnNode.accept(MethodVisitor mv) voidInvokeDynamicInsnNode.accept(MethodVisitor mv) voidJumpInsnNode.accept(MethodVisitor mv) voidLabelNode.accept(MethodVisitor cv) voidLdcInsnNode.accept(MethodVisitor mv) voidLineNumberNode.accept(MethodVisitor mv) voidLocalVariableAnnotationNode.accept(MethodVisitor mv, boolean visible) Makes the given visitor visit this type annotation.voidLocalVariableNode.accept(MethodVisitor mv) Makes the given visitor visit this local variable declaration.voidLookupSwitchInsnNode.accept(MethodVisitor mv) voidMethodInsnNode.accept(MethodVisitor mv) voidMethodNode.accept(MethodVisitor mv) Makes the given method visitor visit this method.voidMultiANewArrayInsnNode.accept(MethodVisitor mv) voidParameterNode.accept(MethodVisitor mv) Makes the given visitor visit this parameter declaration.voidTableSwitchInsnNode.accept(MethodVisitor mv) voidTryCatchBlockNode.accept(MethodVisitor mv) Makes the given visitor visit this try catch block.voidTypeInsnNode.accept(MethodVisitor mv) voidVarInsnNode.accept(MethodVisitor mv) protected final voidAbstractInsnNode.acceptAnnotations(MethodVisitor mv) Makes the given visitor visit the annotations of this instruction. -
org.beetl.ow2.asm.util中MethodVisitor的使用
修饰符和类型类说明classAMethodVisitorthat checks that its methods are properly used.final classAMethodVisitorthat prints the methods it visits with aPrinter.修饰符和类型方法说明CheckClassAdapter.visitMethod(int access, String name, String desc, String signature, String[] exceptions) TraceClassVisitor.visitMethod(int access, String name, String desc, String signature, String[] exceptions) 参数类型为MethodVisitor的org.beetl.ow2.asm.util中的构造器限定符构造器说明CheckMethodAdapter(int access, String name, String desc, MethodVisitor cmv, Map<Label, Integer> labels) Constructs a newCheckMethodAdapterobject.protectedCheckMethodAdapter(int api, MethodVisitor mv, Map<Label, Integer> labels) Constructs a newCheckMethodAdapterobject.Constructs a newCheckMethodAdapterobject.CheckMethodAdapter(MethodVisitor mv, Map<Label, Integer> labels) Constructs a newCheckMethodAdapterobject. -
org.beetl.ow2.asm.xml中MethodVisitor的使用
修饰符和类型方法说明protected final MethodVisitorASMContentHandler.Rule.getCodeVisitor()SAXClassAdapter.visitMethod(int access, String name, String desc, String signature, String[] exceptions)