org.objectweb.asm.util

Class ASMifierCodeVisitor

public class ASMifierCodeVisitor extends PrintCodeVisitor

A {@link PrintCodeVisitor} that prints the ASM code that generates the code it visits.

Author: Eric Bruneton, Eugene Kuleshov

Constructor Summary
ASMifierCodeVisitor()
Constructs a new {@link ASMifierCodeVisitor} 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)

Constructor Detail

ASMifierCodeVisitor

public ASMifierCodeVisitor()
Constructs a new {@link ASMifierCodeVisitor} object.

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)