Uses of Class org.objectweb.asm.MethodVisitor (ASM 5.0.4 Documentation)
Date: 2015-09-18

## Uses of Class
org.objectweb.asm.MethodVisitor

- Packages that use MethodVisitor
  Package | Description
  --- | ---
  org.objectweb.asm | Provides a small and fast bytecode manipulation framework.
  org.objectweb.asm.commons | Provides some useful class and method adapters.
  org.objectweb.asm.tree | Provides an ASM visitor that constructs a tree representation of the classes it visits.
  org.objectweb.asm.util | Provides ASM visitors that can be useful for programming and debugging purposes.
  org.objectweb.asm.xml | Provides SAX 2.0 adapters for ASM visitors to convert classes to and from XML.

- - ### Uses of MethodVisitor in org.objectweb.asm

    Fields in org.objectweb.asm declared as MethodVisitor
    Modifier and Type | Field and Description
    --- | ---
    `protected MethodVisitor` | MethodVisitor.`mv` The method visitor to which this visitor must delegate method calls.

    Methods in org.objectweb.asm that return MethodVisitor
    Modifier and Type | Method and Description
    --- | ---
    `MethodVisitor` | ClassVisitor.`visitMethod(int access, String name, String desc, String signature, String[] exceptions)` Visits a method of the class.
    `MethodVisitor` | ClassWriter.`visitMethod(int access, String name, String desc, String signature, String[] exceptions)`

    Constructors in org.objectweb.asm with parameters of type MethodVisitor
    Constructor and Description
    `MethodVisitor(int api, MethodVisitor mv)` Constructs a new `MethodVisitor`.

  - ### Uses of MethodVisitor in org.objectweb.asm.commons

    Subclasses of MethodVisitor in org.objectweb.asm.commons
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AdviceAdapter` A `MethodVisitor` to insert before, after and around advices in methods and constructors.
    `class` | `AnalyzerAdapter` A `MethodVisitor` that keeps track of stack map frame changes between `visitFrame` calls.
    `class` | `CodeSizeEvaluator` A `MethodVisitor` that can be used to approximate method size.
    `class` | `GeneratorAdapter` A `MethodVisitor` with convenient methods to generate code.
    `class` | `InstructionAdapter` A `MethodVisitor` providing a more detailed API to generate and transform instructions.
    `class` | `JSRInlinerAdapter` A `MethodVisitor` that removes JSR instructions and inlines the referenced subroutines.
    `class` | `LocalVariablesSorter` A `MethodVisitor` that renumbers local variables in their order of appearance.
    `class` | `RemappingMethodAdapter` A `LocalVariablesSorter` for type mapping.
    `class` | `TryCatchBlockSorter` A `MethodVisitor` adapter to sort the exception handlers.

    Methods in org.objectweb.asm.commons that return MethodVisitor
    Modifier and Type | Method and Description
    --- | ---
    `protected MethodVisitor` | RemappingClassAdapter.`createRemappingMethodAdapter(int access, String newDesc, MethodVisitor mv)`
    `MethodVisitor` | RemappingClassAdapter.`visitMethod(int access, String name, String desc, String signature, String[] exceptions)`
    `MethodVisitor` | StaticInitMerger.`visitMethod(int access, String name, String desc, String signature, String[] exceptions)`
    `MethodVisitor` | SerialVersionUIDAdder.`visitMethod(int access, String name, String desc, String signature, String[] exceptions)`

    Methods in org.objectweb.asm.commons with parameters of type MethodVisitor
    Modifier and Type | Method and Description
    --- | ---
    `protected MethodVisitor` | RemappingClassAdapter.`createRemappingMethodAdapter(int access, String newDesc, MethodVisitor mv)`

    Constructors in org.objectweb.asm.commons with parameters of type MethodVisitor
    Constructor and Description
    `AdviceAdapter(int api, MethodVisitor mv, int access, String name, String desc)` Creates a new `AdviceAdapter`.
    `AnalyzerAdapter(int api, String owner, int access, String name, String desc, MethodVisitor mv)` Creates a new `AnalyzerAdapter`.
    `AnalyzerAdapter(String owner, int access, String name, String desc, MethodVisitor mv)` Creates a new `AnalyzerAdapter`.
    `CodeSizeEvaluator(int api, MethodVisitor mv)`
    `CodeSizeEvaluator(MethodVisitor mv)`
    `GeneratorAdapter(int access, Method method, MethodVisitor mv)` Creates a new `GeneratorAdapter`.
    `GeneratorAdapter(int api, MethodVisitor mv, int access, String name, String desc)` Creates a new `GeneratorAdapter`.
    `GeneratorAdapter(MethodVisitor mv, int access, String name, String desc)` Creates a new `GeneratorAdapter`.
    `InstructionAdapter(int api, MethodVisitor mv)` Creates a new `InstructionAdapter`.
    `InstructionAdapter(MethodVisitor mv)` Creates a new `InstructionAdapter`.
    `JSRInlinerAdapter(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.
    `LocalVariablesSorter(int api, int access, String desc, MethodVisitor mv)` Creates a new `LocalVariablesSorter`.
    `LocalVariablesSorter(int access, String desc, MethodVisitor mv)` Creates a new `LocalVariablesSorter`.
    `RemappingMethodAdapter(int api, int access, String desc, MethodVisitor mv, Remapper remapper)`
    `RemappingMethodAdapter(int access, String desc, MethodVisitor mv, Remapper remapper)`
    `TryCatchBlockSorter(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)`

  - ### Uses of MethodVisitor in org.objectweb.asm.tree

    Subclasses of MethodVisitor in org.objectweb.asm.tree
    Modifier and Type | Class and Description
    --- | ---
    `class` | `MethodNode` A node that represents a method.

    Methods in org.objectweb.asm.tree that return MethodVisitor
    Modifier and Type | Method and Description
    --- | ---
    `MethodVisitor` | ClassNode.`visitMethod(int access, String name, String desc, String signature, String[] exceptions)`

    Methods in org.objectweb.asm.tree with parameters of type MethodVisitor
    Modifier and Type | Method and Description
    --- | ---
    `void` | LdcInsnNode.`accept(MethodVisitor mv)`
    `void` | JumpInsnNode.`accept(MethodVisitor mv)`
    `abstract void` | AbstractInsnNode.`accept(MethodVisitor cv)` Makes the given code visitor visit this instruction.
    `void` | LineNumberNode.`accept(MethodVisitor mv)`
    `void` | FrameNode.`accept(MethodVisitor mv)` Makes the given visitor visit this stack map frame.
    `void` | InsnNode.`accept(MethodVisitor mv)` Makes the given visitor visit this instruction.
    `void` | InvokeDynamicInsnNode.`accept(MethodVisitor mv)`
    `void` | MultiANewArrayInsnNode.`accept(MethodVisitor mv)`
    `void` | TableSwitchInsnNode.`accept(MethodVisitor mv)`
    `void` | IntInsnNode.`accept(MethodVisitor mv)`
    `void` | TryCatchBlockNode.`accept(MethodVisitor mv)` Makes the given visitor visit this try catch block.
    `void` | LookupSwitchInsnNode.`accept(MethodVisitor mv)`
    `void` | LabelNode.`accept(MethodVisitor cv)`
    `void` | IincInsnNode.`accept(MethodVisitor mv)`
    `void` | VarInsnNode.`accept(MethodVisitor mv)`
    `void` | MethodNode.`accept(MethodVisitor mv)` Makes the given method visitor visit this method.
    `void` | ParameterNode.`accept(MethodVisitor mv)` Makes the given visitor visit this parameter declaration.
    `void` | InsnList.`accept(MethodVisitor mv)` Makes the given visitor visit all of the instructions in this list.
    `void` | FieldInsnNode.`accept(MethodVisitor mv)`
    `void` | LocalVariableNode.`accept(MethodVisitor mv)` Makes the given visitor visit this local variable declaration.
    `void` | TypeInsnNode.`accept(MethodVisitor mv)`
    `void` | MethodInsnNode.`accept(MethodVisitor mv)`
    `void` | LocalVariableAnnotationNode.`accept(MethodVisitor mv, boolean visible)` Makes the given visitor visit this type annotation.
    `protected void` | AbstractInsnNode.`acceptAnnotations(MethodVisitor mv)` Makes the given visitor visit the annotations of this instruction.

  - ### Uses of MethodVisitor in org.objectweb.asm.util

    Subclasses of MethodVisitor in org.objectweb.asm.util
    Modifier and Type | Class and Description
    --- | ---
    `class` | `CheckMethodAdapter` A `MethodVisitor` that checks that its methods are properly used.
    `class` | `TraceMethodVisitor` A `MethodVisitor` that prints the methods it visits with a `Printer`.

    Methods in org.objectweb.asm.util that return MethodVisitor
    Modifier and Type | Method and Description
    --- | ---
    `MethodVisitor` | TraceClassVisitor.`visitMethod(int access, String name, String desc, String signature, String[] exceptions)`
    `MethodVisitor` | CheckClassAdapter.`visitMethod(int access, String name, String desc, String signature, String[] exceptions)`

    Constructors in org.objectweb.asm.util with parameters of type MethodVisitor
    Constructor and Description
    `CheckMethodAdapter(int api, MethodVisitor mv, Map<Label,Integer> labels)` Constructs a new `CheckMethodAdapter` object.
    `CheckMethodAdapter(int access, String name, String desc, MethodVisitor cmv, Map<Label,Integer> labels)` Constructs a new `CheckMethodAdapter` object.
    `CheckMethodAdapter(MethodVisitor mv)` Constructs a new `CheckMethodAdapter` object.
    `CheckMethodAdapter(MethodVisitor mv, Map<Label,Integer> labels)` Constructs a new `CheckMethodAdapter` object.
    `TraceMethodVisitor(MethodVisitor mv, Printer p)`

  - ### Uses of MethodVisitor in org.objectweb.asm.xml

    Subclasses of MethodVisitor in org.objectweb.asm.xml
    Modifier and Type | Class and Description
    --- | ---
    `class` | `SAXCodeAdapter` A `MethodVisitor` that generates SAX 2.0 events from the visited method.

    Methods in org.objectweb.asm.xml that return MethodVisitor
    Modifier and Type | Method and Description
    --- | ---
    `protected MethodVisitor` | ASMContentHandler.Rule.`getCodeVisitor()`
    `MethodVisitor` | SAXClassAdapter.`visitMethod(int access, String name, String desc, String signature, String[] exceptions)`