org.objectweb.asm.util

Class TraceCodeVisitor

public class TraceCodeVisitor extends PrintCodeVisitor

A {@link PrintCodeVisitor PrintCodeVisitor} that prints a disassembled view of the code it visits.

Author: Eric Bruneton

Field Summary
protected CodeVisitorcv
The {@link CodeVisitor CodeVisitor} to which this visitor delegates calls.
Constructor Summary
TraceCodeVisitor(CodeVisitor cv)
Constructs a new {@link TraceCodeVisitor TraceCodeVisitor} object.
Method Summary
voidprintAttribute(Attribute attr)
voidprintFieldInsn(int opcode, String owner, String name, String desc)
voidprintIincInsn(int var, int increment)
voidprintInsn(int opcode)
voidprintIntInsn(int opcode, int operand)
voidprintJumpInsn(int opcode, Label label)
voidprintLabel(Label label)
voidprintLdcInsn(Object cst)
voidprintLineNumber(int line, Label start)
voidprintLocalVariable(String name, String desc, Label start, Label end, int index)
voidprintLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
voidprintMaxs(int maxStack, int maxLocals)
voidprintMethodInsn(int opcode, String owner, String name, String desc)
voidprintMultiANewArrayInsn(String desc, int dims)
voidprintTableSwitchInsn(int min, int max, Label dflt, Label[] labels)
voidprintTryCatchBlock(Label start, Label end, Label handler, String type)
voidprintTypeInsn(int opcode, String desc)
voidprintVarInsn(int opcode, int var)

Field Detail

cv

protected final CodeVisitor cv
The {@link CodeVisitor CodeVisitor} to which this visitor delegates calls. May be null.

Constructor Detail

TraceCodeVisitor

public TraceCodeVisitor(CodeVisitor cv)
Constructs a new {@link TraceCodeVisitor TraceCodeVisitor} object.

Parameters: cv the code visitor to which this adapter must delegate calls. May be null.

Method Detail

printAttribute

public void printAttribute(Attribute attr)

printFieldInsn

public void printFieldInsn(int opcode, String owner, String name, String desc)

printIincInsn

public void printIincInsn(int var, int increment)

printInsn

public void printInsn(int opcode)

printIntInsn

public void printIntInsn(int opcode, int operand)

printJumpInsn

public void printJumpInsn(int opcode, Label label)

printLabel

public void printLabel(Label label)

printLdcInsn

public void printLdcInsn(Object cst)

printLineNumber

public void printLineNumber(int line, Label start)

printLocalVariable

public void printLocalVariable(String name, String desc, Label start, Label end, int index)

printLookupSwitchInsn

public void printLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)

printMaxs

public void printMaxs(int maxStack, int maxLocals)

printMethodInsn

public void printMethodInsn(int opcode, String owner, String name, String desc)

printMultiANewArrayInsn

public void printMultiANewArrayInsn(String desc, int dims)

printTableSwitchInsn

public void printTableSwitchInsn(int min, int max, Label dflt, Label[] labels)

printTryCatchBlock

public void printTryCatchBlock(Label start, Label end, Label handler, String type)

printTypeInsn

public void printTypeInsn(int opcode, String desc)

printVarInsn

public void printVarInsn(int opcode, int var)