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.
|
Modifier and Type | Field | Description |
---|---|---|
protected MethodVisitor |
MethodVisitor.mv |
The method visitor to which this visitor must delegate method calls.
|
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) |
Constructor | Description |
---|---|
MethodVisitor(int api,
MethodVisitor mv) |
Constructs a new
MethodVisitor . |
Modifier and Type | Class | 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 |
MethodRemapper |
A
LocalVariablesSorter for type mapping. |
class |
RemappingMethodAdapter |
Deprecated.
use
MethodRemapper instead. |
class |
TryCatchBlockSorter |
A
MethodVisitor adapter to sort the exception handlers. |
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) |
Modifier and Type | Method | Description |
---|---|---|
protected MethodVisitor |
ClassRemapper.createMethodRemapper(MethodVisitor mv) |
|
protected MethodVisitor |
RemappingClassAdapter.createRemappingMethodAdapter(int access,
String newDesc,
MethodVisitor mv) |
Deprecated.
|
Modifier and Type | Class | Description |
---|---|---|
class |
MethodNode |
A node that represents a method.
|
Modifier and Type | Method | Description |
---|---|---|
MethodVisitor |
ClassNode.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |
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.
|
Modifier and Type | Class | 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 . |
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) |
Constructor | Description |
---|---|
CheckMethodAdapter(int access,
String name,
String desc,
MethodVisitor cmv,
Map<Label,Integer> labels) |
Constructs a new
CheckMethodAdapter object. |
CheckMethodAdapter(int api,
MethodVisitor mv,
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) |
Modifier and Type | Class | Description |
---|---|---|
class |
SAXCodeAdapter |
A
MethodVisitor that generates SAX 2.0 events from the visited
method. |
Modifier and Type | Method | Description |
---|---|---|
protected MethodVisitor |
ASMContentHandler.Rule.getCodeVisitor() |
|
MethodVisitor |
SAXClassAdapter.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |