org.objectweb.asm.util

Class TraceAbstractVisitor

public abstract class TraceAbstractVisitor extends AbstractVisitor

An abstract trace visitor.

Author: Eric Bruneton

Field Summary
static intCLASS_DECLARATION
Constant used in appendDescriptor for class signatures, formatted in default Java notation (non-bytecode)
static intCLASS_SIGNATURE
Constant used in appendDescriptor for class signatures, formatted in bytecode notation
static intFIELD_DESCRIPTOR
Constant used in appendDescriptor for field descriptors, formatted in bytecode notation
static intFIELD_SIGNATURE
Constant used in appendDescriptor for field signatures, formatted in bytecode notation
static intINTERNAL_NAME
Constant used in appendDescriptor for internal type names in bytecode notation.
static intMETHOD_DESCRIPTOR
Constant used in appendDescriptor for method descriptors, formatted in bytecode notation
static intMETHOD_SIGNATURE
Constant used in appendDescriptor for method signatures, formatted in bytecode notation
static intPARAMETERS_DECLARATION
Constant used in appendDescriptor for method parameter signatures, formatted in default Java notation (non-bytecode)
protected Stringtab
Tab for class members.
static intTYPE_DECLARATION
Constant used in appendDescriptor for field or method return value signatures, formatted in default Java notation (non-bytecode)
Method Summary
protected voidappendDescriptor(int type, String desc)
Appends an internal name, a type descriptor or a type signature to buf.
protected TraceAnnotationVisitorcreateTraceAnnotationVisitor()
AnnotationVisitorvisitAnnotation(String desc, boolean visible)
Prints a disassembled view of the given annotation.
voidvisitAttribute(Attribute attr)
Prints a disassembled view of the given attribute.
voidvisitEnd()
Does nothing.

Field Detail

CLASS_DECLARATION

public static final int CLASS_DECLARATION
Constant used in appendDescriptor for class signatures, formatted in default Java notation (non-bytecode)

CLASS_SIGNATURE

public static final int CLASS_SIGNATURE
Constant used in appendDescriptor for class signatures, formatted in bytecode notation

FIELD_DESCRIPTOR

public static final int FIELD_DESCRIPTOR
Constant used in appendDescriptor for field descriptors, formatted in bytecode notation

FIELD_SIGNATURE

public static final int FIELD_SIGNATURE
Constant used in appendDescriptor for field signatures, formatted in bytecode notation

INTERNAL_NAME

public static final int INTERNAL_NAME
Constant used in appendDescriptor for internal type names in bytecode notation.

METHOD_DESCRIPTOR

public static final int METHOD_DESCRIPTOR
Constant used in appendDescriptor for method descriptors, formatted in bytecode notation

METHOD_SIGNATURE

public static final int METHOD_SIGNATURE
Constant used in appendDescriptor for method signatures, formatted in bytecode notation

PARAMETERS_DECLARATION

public static final int PARAMETERS_DECLARATION
Constant used in appendDescriptor for method parameter signatures, formatted in default Java notation (non-bytecode)

tab

protected String tab
Tab for class members.

TYPE_DECLARATION

public static final int TYPE_DECLARATION
Constant used in appendDescriptor for field or method return value signatures, formatted in default Java notation (non-bytecode)

Method Detail

appendDescriptor

protected void appendDescriptor(int type, String desc)
Appends an internal name, a type descriptor or a type signature to buf.

Parameters: type indicates if desc is an internal name, a field descriptor, a method descriptor, a class signature, ... desc an internal name, type descriptor, or type signature. May be null.

createTraceAnnotationVisitor

protected TraceAnnotationVisitor createTraceAnnotationVisitor()

visitAnnotation

public AnnotationVisitor visitAnnotation(String desc, boolean visible)
Prints a disassembled view of the given annotation.

Parameters: desc the class descriptor of the annotation class. visible true if the annotation is visible at runtime.

Returns: a visitor to visit the annotation values.

visitAttribute

public void visitAttribute(Attribute attr)
Prints a disassembled view of the given attribute.

Parameters: attr an attribute.

visitEnd

public void visitEnd()
Does nothing.