Uses of Interface
org.objectweb.asm.MethodVisitor
Packages that use MethodVisitor
Package
Description
Provides a small and fast bytecode manipulation framework.
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.
-
Uses of MethodVisitor in org.objectweb.asm
Classes in org.objectweb.asm that implement MethodVisitorModifier and TypeClassDescriptionclassAn emptyMethodVisitorthat delegates to anotherMethodVisitor.Fields in org.objectweb.asm declared as MethodVisitorModifier and TypeFieldDescriptionprotected MethodVisitorMethodAdapter.mvTheMethodVisitorto which this adapter delegates calls.Methods in org.objectweb.asm that return MethodVisitorModifier and TypeMethodDescriptionClassAdapter.visitMethod(int access, String name, String desc, String signature, String[] exceptions) ClassVisitor.visitMethod(int access, String name, String desc, String signature, String[] exceptions) Visits a method of the class.ClassWriter.visitMethod(int access, String name, String desc, String signature, String[] exceptions) Constructors in org.objectweb.asm with parameters of type MethodVisitor -
Uses of MethodVisitor in org.objectweb.asm.commons
Classes in org.objectweb.asm.commons that implement MethodVisitorModifier and TypeClassDescriptionclassAMethodAdapterto insert before, after and around advices in methods and constructors.classAMethodAdapterthat keeps track of stack map frame changes betweenvisitFramecalls.classAMethodAdapterthat can be used to approximate method size.classAn empty implementation of the ASM visitor interfaces.classAMethodAdapterwith convenient methods to generate code.classclassAMethodAdapterthat removes JSR instructions and inlines the referenced subroutines.classAMethodAdapterthat renumbers local variables in their order of appearance.classAMethodAdapterfor type mapping.classSorts the exception handlers in a method innermost-to-outermost.Methods in org.objectweb.asm.commons that return MethodVisitorModifier and TypeMethodDescriptionprotected MethodVisitorRemappingClassAdapter.createRemappingMethodAdapter(int access, String newDesc, MethodVisitor mv) EmptyVisitor.visitMethod(int access, String name, String desc, String signature, String[] exceptions) 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) Methods in org.objectweb.asm.commons with parameters of type MethodVisitorModifier and TypeMethodDescriptionprotected MethodVisitorRemappingClassAdapter.createRemappingMethodAdapter(int access, String newDesc, MethodVisitor mv) Constructors in org.objectweb.asm.commons with parameters of type MethodVisitorModifierConstructorDescriptionprotectedAdviceAdapter(MethodVisitor mv, int access, String name, String desc) Creates a newAdviceAdapter.AnalyzerAdapter(String owner, int access, String name, String desc, MethodVisitor mv) Creates a newAnalyzerAdapter.GeneratorAdapter(int access, Method method, MethodVisitor mv) Creates a newGeneratorAdapter.GeneratorAdapter(MethodVisitor mv, int access, String name, String desc) Creates a newGeneratorAdapter.JSRInlinerAdapter(MethodVisitor mv, int access, String name, String desc, String signature, String[] exceptions) Creates a new JSRInliner.LocalVariablesSorter(int access, String desc, MethodVisitor mv) Creates a newLocalVariablesSorter.RemappingMethodAdapter(int access, String desc, MethodVisitor mv, Remapper renamer) TryCatchBlockSorter(MethodVisitor mv, int access, String name, String desc, String signature, String[] exceptions) -
Uses of MethodVisitor in org.objectweb.asm.tree
Classes in org.objectweb.asm.tree that implement MethodVisitorMethods in org.objectweb.asm.tree that return MethodVisitorModifier and TypeMethodDescriptionClassNode.visitMethod(int access, String name, String desc, String signature, String[] exceptions) Methods in org.objectweb.asm.tree with parameters of type MethodVisitorModifier and TypeMethodDescriptionabstract voidAbstractInsnNode.accept(MethodVisitor cv) Makes the given code visitor visit this instruction.voidFieldInsnNode.accept(MethodVisitor cv) 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) voidJumpInsnNode.accept(MethodVisitor mv) voidLabelNode.accept(MethodVisitor cv) voidLdcInsnNode.accept(MethodVisitor mv) voidLineNumberNode.accept(MethodVisitor mv) 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) 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) -
Uses of MethodVisitor in org.objectweb.asm.util
Classes in org.objectweb.asm.util that implement MethodVisitorModifier and TypeClassDescriptionclassAMethodVisitorthat prints the ASM code that generates the methods it visits.classAMethodAdapterthat checks that its methods are properly used.classAMethodVisitorthat prints a disassembled view of the methods it visits.Fields in org.objectweb.asm.util declared as MethodVisitorModifier and TypeFieldDescriptionprotected MethodVisitorTraceMethodVisitor.mvTheMethodVisitorto which this visitor delegates calls.Methods in org.objectweb.asm.util that return MethodVisitorModifier and TypeMethodDescriptionASMifierClassVisitor.visitMethod(int access, String name, String desc, String signature, String[] exceptions) CheckClassAdapter.visitMethod(int access, String name, String desc, String signature, String[] exceptions) TraceClassVisitor.visitMethod(int access, String name, String desc, String signature, String[] exceptions) Constructors in org.objectweb.asm.util with parameters of type MethodVisitorModifierConstructorDescriptionCheckMethodAdapter(int access, String name, String desc, MethodVisitor mv, Map labels) Constructs a newCheckMethodAdapterobject.Constructs a newCheckMethodAdapterobject.CheckMethodAdapter(MethodVisitor mv, Map labels) Constructs a newCheckMethodAdapterobject.Constructs a newTraceMethodVisitor. -
Uses of MethodVisitor in org.objectweb.asm.xml
Classes in org.objectweb.asm.xml that implement MethodVisitorModifier and TypeClassDescriptionfinal classAMethodVisitorthat generates SAX 2.0 events from the visited method.Methods in org.objectweb.asm.xml that return MethodVisitorModifier and TypeMethodDescriptionprotected final MethodVisitorASMContentHandler.Rule.getCodeVisitor()SAXClassAdapter.visitMethod(int access, String name, String desc, String signature, String[] exceptions)