Package | Description |
---|---|
org.mockito.asm |
Provides a small and fast bytecode manipulation framework.
|
org.mockito.asm.tree |
Provides an ASM visitor that constructs a tree representation of the
classes it visits.
|
org.mockito.asm.util |
Provides ASM visitors that can be useful for programming and
debugging purposes.
|
org.mockito.cglib.core | |
org.mockito.cglib.transform |
Modifier and Type | Class and Description |
---|---|
class |
MethodAdapter
An empty
MethodVisitor that delegates to another
MethodVisitor . |
Modifier and Type | Field and Description |
---|---|
protected MethodVisitor |
MethodAdapter.mv
The
MethodVisitor to which this adapter delegates calls. |
Modifier and Type | Method and Description |
---|---|
MethodVisitor |
ClassWriter.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |
MethodVisitor |
ClassVisitor.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions)
Visits a method of the class.
|
MethodVisitor |
ClassAdapter.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |
Constructor and Description |
---|
MethodAdapter(MethodVisitor mv)
Constructs a new
MethodAdapter object. |
Modifier and Type | Class and Description |
---|---|
class |
MethodNode
A node that represents a method.
|
Modifier and Type | Method and Description |
---|---|
MethodVisitor |
ClassNode.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |
Modifier and Type | Method and Description |
---|---|
void |
VarInsnNode.accept(MethodVisitor mv) |
void |
TypeInsnNode.accept(MethodVisitor mv) |
void |
TryCatchBlockNode.accept(MethodVisitor mv)
Makes the given visitor visit this try catch block.
|
void |
TableSwitchInsnNode.accept(MethodVisitor mv) |
void |
MultiANewArrayInsnNode.accept(MethodVisitor mv) |
void |
MethodNode.accept(MethodVisitor mv)
Makes the given method visitor visit this method.
|
void |
MethodInsnNode.accept(MethodVisitor mv) |
void |
LookupSwitchInsnNode.accept(MethodVisitor mv) |
void |
LocalVariableNode.accept(MethodVisitor mv)
Makes the given visitor visit this local variable declaration.
|
void |
LineNumberNode.accept(MethodVisitor mv) |
void |
LdcInsnNode.accept(MethodVisitor mv) |
void |
LabelNode.accept(MethodVisitor cv) |
void |
JumpInsnNode.accept(MethodVisitor mv) |
void |
IntInsnNode.accept(MethodVisitor mv) |
void |
InsnNode.accept(MethodVisitor mv)
Makes the given visitor visit this instruction.
|
void |
InsnList.accept(MethodVisitor mv)
Makes the given visitor visit all of the instructions in this list.
|
void |
IincInsnNode.accept(MethodVisitor mv) |
void |
FrameNode.accept(MethodVisitor mv)
Makes the given visitor visit this stack map frame.
|
void |
FieldInsnNode.accept(MethodVisitor cv) |
abstract void |
AbstractInsnNode.accept(MethodVisitor cv)
Makes the given code visitor visit this instruction.
|
Modifier and Type | Class and Description |
---|---|
class |
ASMifierMethodVisitor
A
MethodVisitor that prints the ASM code that generates the methods
it visits. |
class |
CheckMethodAdapter
A
MethodAdapter that checks that its methods are properly used. |
class |
TraceMethodVisitor
A
MethodVisitor that prints a disassembled view of the methods it
visits. |
Modifier and Type | Field and Description |
---|---|
protected MethodVisitor |
TraceMethodVisitor.mv
The
MethodVisitor to which this visitor delegates calls. |
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) |
MethodVisitor |
ASMifierClassVisitor.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |
Constructor and Description |
---|
CheckMethodAdapter(MethodVisitor cv)
Constructs a new
CheckMethodAdapter object. |
TraceMethodVisitor(MethodVisitor mv)
Constructs a new
TraceMethodVisitor . |
Modifier and Type | Class and Description |
---|---|
class |
CodeEmitter |
class |
LocalVariablesSorter
A
MethodAdapter that renumbers local variables in their order of
appearance. |
Modifier and Type | Method and Description |
---|---|
MethodVisitor |
ClassEmitter.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |
Constructor and Description |
---|
LocalVariablesSorter(int access,
String desc,
MethodVisitor mv) |
Modifier and Type | Class and Description |
---|---|
class |
MethodVisitorTee |
Modifier and Type | Method and Description |
---|---|
MethodVisitor |
MethodFilterTransformer.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |
MethodVisitor |
ClassVisitorTee.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |
MethodVisitor |
ClassTransformerChain.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |
MethodVisitor |
AbstractClassFilterTransformer.visitMethod(int access,
String name,
String desc,
String signature,
String[] exceptions) |
Constructor and Description |
---|
MethodVisitorTee(MethodVisitor mv1,
MethodVisitor mv2) |
Copyright © 2018. All rights reserved.