Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.objectweb.asm.util.AbstractVisitor
org.objectweb.asm.util.TraceAbstractVisitor
org.objectweb.asm.util.TraceMethodVisitor
MethodVisitor
that prints a disassembled view of the methods it
visits.
Field Summary | |
protected Map |
|
protected String |
|
protected MethodVisitor |
|
protected String |
|
protected String |
|
Fields inherited from class org.objectweb.asm.util.TraceAbstractVisitor | |
CLASS_DECLARATION , CLASS_SIGNATURE , FIELD_DESCRIPTOR , FIELD_SIGNATURE , INTERNAL_NAME , METHOD_DESCRIPTOR , METHOD_SIGNATURE , PARAMETERS_DECLARATION , TYPE_DECLARATION , tab |
Fields inherited from class org.objectweb.asm.util.AbstractVisitor | |
OPCODES , TYPES , buf , text |
Constructor Summary | |
| |
|
Method Summary | |
protected void |
|
AnnotationVisitor |
|
AnnotationVisitor | |
void |
|
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
AnnotationVisitor |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.objectweb.asm.util.TraceAbstractVisitor | |
appendDescriptor , createTraceAnnotationVisitor , visitAnnotation , visitAttribute , visitEnd |
Methods inherited from class org.objectweb.asm.util.AbstractVisitor | |
appendString , getDefaultAttributes , getText , print |
protected final Map labelNames
The label names. This map associate String values to Label keys.
protected String ltab
Tab for labels.
protected String tab2
Tab for bytecode instructions.
protected String tab3
Tab for table and lookup switch instructions.
public TraceMethodVisitor(MethodVisitor mv)
Constructs a newTraceMethodVisitor
.
- Parameters:
mv
- theMethodVisitor
to which this visitor delegates calls. May be null.
protected void appendLabel(Label l)
Appends the name of the given label tobuf
. Creates a new label name if the given label does not yet have one.
- Parameters:
l
- a label.
public AnnotationVisitor visitAnnotation(String desc, boolean visible)
- Specified by:
- visitAnnotation in interface MethodVisitor
- Overrides:
- visitAnnotation in interface TraceAbstractVisitor
public AnnotationVisitor visitAnnotationDefault()
- Specified by:
- visitAnnotationDefault in interface MethodVisitor
public void visitAttribute(Attribute attr)
- Specified by:
- visitAttribute in interface MethodVisitor
- Overrides:
- visitAttribute in interface TraceAbstractVisitor
public void visitEnd()
- Specified by:
- visitEnd in interface MethodVisitor
- Overrides:
- visitEnd in interface TraceAbstractVisitor
public void visitFieldInsn(int opcode, String owner, String name, String desc)
- Specified by:
- visitFieldInsn in interface MethodVisitor
public void visitFrame(int type, int nLocal, Object[] local, int nStack, Object[] stack)
- Specified by:
- visitFrame in interface MethodVisitor
public void visitIincInsn(int var, int increment)
- Specified by:
- visitIincInsn in interface MethodVisitor
public void visitIntInsn(int opcode, int operand)
- Specified by:
- visitIntInsn in interface MethodVisitor
public void visitJumpInsn(int opcode, Label label)
- Specified by:
- visitJumpInsn in interface MethodVisitor
public void visitLdcInsn(Object cst)
- Specified by:
- visitLdcInsn in interface MethodVisitor
public void visitLineNumber(int line, Label start)
- Specified by:
- visitLineNumber in interface MethodVisitor
public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index)
- Specified by:
- visitLocalVariable in interface MethodVisitor
public void visitLookupSwitchInsn(Label dflt, int[] keys, Label[] labels)
- Specified by:
- visitLookupSwitchInsn in interface MethodVisitor
public void visitMaxs(int maxStack, int maxLocals)
- Specified by:
- visitMaxs in interface MethodVisitor
public void visitMethodInsn(int opcode, String owner, String name, String desc)
- Specified by:
- visitMethodInsn in interface MethodVisitor
public void visitMultiANewArrayInsn(String desc, int dims)
- Specified by:
- visitMultiANewArrayInsn in interface MethodVisitor
public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible)
- Specified by:
- visitParameterAnnotation in interface MethodVisitor
public void visitTableSwitchInsn(int min, int max, Label dflt, Label[] labels)
- Specified by:
- visitTableSwitchInsn in interface MethodVisitor
public void visitTryCatchBlock(Label start, Label end, Label handler, String type)
- Specified by:
- visitTryCatchBlock in interface MethodVisitor
public void visitTypeInsn(int opcode, String type)
- Specified by:
- visitTypeInsn in interface MethodVisitor
public void visitVarInsn(int opcode, int var)
- Specified by:
- visitVarInsn in interface MethodVisitor