org.objectweb.asm
public class CodeAdapter extends Object implements CodeVisitor
CodeVisitor that delegates to another CodeVisitor. This class can be used as a super class to quickly
implement usefull code adapter classes, just by overriding the necessary
methods.
| Field Summary | |
|---|---|
| protected CodeVisitor | cv
The CodeVisitor to which this adapter delegates calls. |
| Constructor Summary | |
|---|---|
| CodeAdapter(CodeVisitor cv)
Constructs a new CodeAdapter object.
| |
| Method Summary | |
|---|---|
| void | visitAttribute(Attribute attr) |
| void | visitFieldInsn(int opcode, String owner, String name, String desc) |
| void | visitIincInsn(int var, int increment) |
| void | visitInsn(int opcode) |
| void | visitIntInsn(int opcode, int operand) |
| void | visitJumpInsn(int opcode, Label label) |
| void | visitLabel(Label label) |
| void | visitLdcInsn(Object cst) |
| void | visitLineNumber(int line, Label start) |
| void | visitLocalVariable(String name, String desc, Label start, Label end, int index) |
| void | visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels) |
| void | visitMaxs(int maxStack, int maxLocals) |
| void | visitMethodInsn(int opcode, String owner, String name, String desc) |
| void | visitMultiANewArrayInsn(String desc, int dims) |
| void | visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels) |
| void | visitTryCatchBlock(Label start, Label end, Label handler, String type) |
| void | visitTypeInsn(int opcode, String desc) |
| void | visitVarInsn(int opcode, int var) |
CodeVisitor to which this adapter delegates calls. CodeAdapter object.
Parameters: cv the code visitor to which this adapter must delegate calls.