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 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 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 Description MethodVisitor(int api, MethodVisitor mv)
Constructs a newMethodVisitor
. -
Uses of MethodVisitor in org.objectweb.asm.commons
Subclasses of MethodVisitor in org.objectweb.asm.commons Modifier and Type Class Description class
AdviceAdapter
AMethodVisitor
to insert before, after and around advices in methods and constructors.class
AnalyzerAdapter
AMethodVisitor
that keeps track of stack map frame changes betweenvisitFrame
calls.class
CodeSizeEvaluator
AMethodVisitor
that can be used to approximate method size.class
GeneratorAdapter
AMethodVisitor
with convenient methods to generate code.class
InstructionAdapter
AMethodVisitor
providing a more detailed API to generate and transform instructions.class
JSRInlinerAdapter
AMethodVisitor
that removes JSR instructions and inlines the referenced subroutines.class
LocalVariablesSorter
AMethodVisitor
that renumbers local variables in their order of appearance.class
MethodRemapper
ALocalVariablesSorter
for type mapping.class
RemappingMethodAdapter
Deprecated.useMethodRemapper
instead.class
TryCatchBlockSorter
AMethodVisitor
adapter to sort the exception handlers.Methods in org.objectweb.asm.commons that return MethodVisitor Modifier and Type Method Description protected MethodVisitor
ClassRemapper. createMethodRemapper(MethodVisitor mv)
protected MethodVisitor
RemappingClassAdapter. createRemappingMethodAdapter(int access, String newDesc, MethodVisitor mv)
Deprecated.MethodVisitor
ClassRemapper. visitMethod(int access, String name, String desc, String signature, String[] exceptions)
MethodVisitor
RemappingClassAdapter. visitMethod(int access, String name, String desc, String signature, String[] exceptions)
Deprecated.MethodVisitor
SerialVersionUIDAdder. visitMethod(int access, String name, String desc, String signature, String[] exceptions)
MethodVisitor
StaticInitMerger. 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 Description protected MethodVisitor
ClassRemapper. createMethodRemapper(MethodVisitor mv)
protected MethodVisitor
RemappingClassAdapter. createRemappingMethodAdapter(int access, String newDesc, MethodVisitor mv)
Deprecated. -
Uses of MethodVisitor in org.objectweb.asm.tree
Subclasses of MethodVisitor in org.objectweb.asm.tree Modifier and Type Class Description class
MethodNode
A node that represents a method.Methods in org.objectweb.asm.tree that return MethodVisitor Modifier and Type Method 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 Description abstract void
AbstractInsnNode. accept(MethodVisitor cv)
Makes the given code visitor visit this instruction.void
FieldInsnNode. accept(MethodVisitor mv)
void
FrameNode. accept(MethodVisitor mv)
Makes the given visitor visit this stack map frame.void
IincInsnNode. accept(MethodVisitor mv)
void
InsnList. accept(MethodVisitor mv)
Makes the given visitor visit all of the instructions in this list.void
InsnNode. accept(MethodVisitor mv)
Makes the given visitor visit this instruction.void
IntInsnNode. accept(MethodVisitor mv)
void
InvokeDynamicInsnNode. accept(MethodVisitor mv)
void
JumpInsnNode. accept(MethodVisitor mv)
void
LabelNode. accept(MethodVisitor cv)
void
LdcInsnNode. accept(MethodVisitor mv)
void
LineNumberNode. accept(MethodVisitor mv)
void
LocalVariableAnnotationNode. accept(MethodVisitor mv, boolean visible)
Makes the given visitor visit this type annotation.void
LocalVariableNode. accept(MethodVisitor mv)
Makes the given visitor visit this local variable declaration.void
LookupSwitchInsnNode. accept(MethodVisitor mv)
void
MethodInsnNode. accept(MethodVisitor mv)
void
MethodNode. accept(MethodVisitor mv)
Makes the given method visitor visit this method.void
MultiANewArrayInsnNode. accept(MethodVisitor mv)
void
ParameterNode. accept(MethodVisitor mv)
Makes the given visitor visit this parameter declaration.void
TableSwitchInsnNode. accept(MethodVisitor mv)
void
TryCatchBlockNode. accept(MethodVisitor mv)
Makes the given visitor visit this try catch block.void
TypeInsnNode. accept(MethodVisitor mv)
void
VarInsnNode. accept(MethodVisitor mv)
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 Description class
CheckMethodAdapter
AMethodVisitor
that checks that its methods are properly used.class
TraceMethodVisitor
AMethodVisitor
that prints the methods it visits with aPrinter
.Methods in org.objectweb.asm.util that return MethodVisitor Modifier and Type Method Description MethodVisitor
CheckClassAdapter. visitMethod(int access, String name, String desc, String signature, String[] exceptions)
MethodVisitor
TraceClassVisitor. visitMethod(int access, String name, String desc, String signature, String[] exceptions)
Constructors in org.objectweb.asm.util with parameters of type MethodVisitor Constructor Description CheckMethodAdapter(int access, String name, String desc, MethodVisitor cmv, Map<Label,Integer> labels)
Constructs a newCheckMethodAdapter
object.CheckMethodAdapter(int api, MethodVisitor mv, Map<Label,Integer> labels)
Constructs a newCheckMethodAdapter
object.CheckMethodAdapter(MethodVisitor mv)
Constructs a newCheckMethodAdapter
object.CheckMethodAdapter(MethodVisitor mv, Map<Label,Integer> labels)
Constructs a newCheckMethodAdapter
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 Description class
SAXCodeAdapter
AMethodVisitor
that generates SAX 2.0 events from the visited method.Methods in org.objectweb.asm.xml that return MethodVisitor Modifier and Type Method Description protected MethodVisitor
ASMContentHandler.Rule. getCodeVisitor()
MethodVisitor
SAXClassAdapter. visitMethod(int access, String name, String desc, String signature, String[] exceptions)
-