Class TraceAbstractVisitor
java.lang.Object
org.objectweb.asm.util.AbstractVisitor
org.objectweb.asm.util.TraceAbstractVisitor
- Direct Known Subclasses:
TraceAnnotationVisitor, TraceClassVisitor, TraceFieldVisitor, TraceMethodVisitor
An abstract trace visitor.
- Author:
- Eric Bruneton
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant used inappendDescriptorfor class signatures, formatted in default Java notation (non-bytecode)static final intConstant used inappendDescriptorfor class signatures, formatted in bytecode notationstatic final intConstant used inappendDescriptorfor field descriptors, formatted in bytecode notationstatic final intConstant used inappendDescriptorfor field signatures, formatted in bytecode notationstatic final intConstant used inappendDescriptorfor internal type names in bytecode notation.static final intConstant used inappendDescriptorfor method descriptors, formatted in bytecode notationstatic final intConstant used inappendDescriptorfor method signatures, formatted in bytecode notationstatic final intConstant used inappendDescriptorfor method parameter signatures, formatted in default Java notation (non-bytecode)protected StringTab for class members.static final intConstant used inappendDescriptorfor field or method return value signatures, formatted in default Java notation (non-bytecode)Fields inherited from class AbstractVisitor
buf, OPCODES, text, TYPES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendDescriptor(int type, String desc) Appends an internal name, a type descriptor or a type signature tobuf.protected TraceAnnotationVisitorvisitAnnotation(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.Methods inherited from class AbstractVisitor
appendString, getDefaultAttributes, getText, print
-
Field Details
-
INTERNAL_NAME
public static final int INTERNAL_NAMEConstant used inappendDescriptorfor internal type names in bytecode notation.- See Also:
-
FIELD_DESCRIPTOR
public static final int FIELD_DESCRIPTORConstant used inappendDescriptorfor field descriptors, formatted in bytecode notation- See Also:
-
FIELD_SIGNATURE
public static final int FIELD_SIGNATUREConstant used inappendDescriptorfor field signatures, formatted in bytecode notation- See Also:
-
METHOD_DESCRIPTOR
public static final int METHOD_DESCRIPTORConstant used inappendDescriptorfor method descriptors, formatted in bytecode notation- See Also:
-
METHOD_SIGNATURE
public static final int METHOD_SIGNATUREConstant used inappendDescriptorfor method signatures, formatted in bytecode notation- See Also:
-
CLASS_SIGNATURE
public static final int CLASS_SIGNATUREConstant used inappendDescriptorfor class signatures, formatted in bytecode notation- See Also:
-
TYPE_DECLARATION
public static final int TYPE_DECLARATIONConstant used inappendDescriptorfor field or method return value signatures, formatted in default Java notation (non-bytecode)- See Also:
-
CLASS_DECLARATION
public static final int CLASS_DECLARATIONConstant used inappendDescriptorfor class signatures, formatted in default Java notation (non-bytecode)- See Also:
-
PARAMETERS_DECLARATION
public static final int PARAMETERS_DECLARATIONConstant used inappendDescriptorfor method parameter signatures, formatted in default Java notation (non-bytecode)- See Also:
-
tab
Tab for class members.
-
-
Constructor Details
-
TraceAbstractVisitor
public TraceAbstractVisitor()
-
-
Method Details
-
visitAnnotation
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
Prints a disassembled view of the given attribute.- Parameters:
attr- an attribute.
-
visitEnd
public void visitEnd()Does nothing. -
createTraceAnnotationVisitor
-
appendDescriptor
Appends an internal name, a type descriptor or a type signature tobuf.- 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.
-