public abstract class TraceAbstractVisitor extends AbstractVisitor
Modifier and Type | Field and Description |
---|---|
static int |
CLASS_DECLARATION
Constant used in
appendDescriptor for class
signatures, formatted in default Java notation (non-bytecode) |
static int |
CLASS_SIGNATURE
Constant used in
appendDescriptor for class
signatures, formatted in bytecode notation |
static int |
FIELD_DESCRIPTOR
Constant used in
appendDescriptor for field
descriptors, formatted in bytecode notation |
static int |
FIELD_SIGNATURE
Constant used in
appendDescriptor for field
signatures, formatted in bytecode notation |
static int |
INTERNAL_NAME
Constant used in
appendDescriptor for internal
type names in bytecode notation. |
static int |
METHOD_DESCRIPTOR
Constant used in
appendDescriptor for method
descriptors, formatted in bytecode notation |
static int |
METHOD_SIGNATURE
Constant used in
appendDescriptor for method
signatures, formatted in bytecode notation |
static int |
PARAMETERS_DECLARATION
Constant used in
appendDescriptor for method
parameter signatures, formatted in default Java notation (non-bytecode) |
protected String |
tab
Tab for class members.
|
static int |
TYPE_DECLARATION
Constant used in
appendDescriptor for field or
method return value signatures, formatted in default Java notation
(non-bytecode) |
buf, OPCODES, text, TYPES
Constructor and Description |
---|
TraceAbstractVisitor() |
Modifier and Type | Method and Description |
---|---|
protected void |
appendDescriptor(int type,
String desc)
Appends an internal name, a type descriptor or a type signature to
buf . |
protected TraceAnnotationVisitor |
createTraceAnnotationVisitor() |
AnnotationVisitor |
visitAnnotation(String desc,
boolean visible)
Prints a disassembled view of the given annotation.
|
void |
visitAttribute(Attribute attr)
Prints a disassembled view of the given attribute.
|
void |
visitEnd()
Does nothing.
|
appendString, getDefaultAttributes, getText, print
public static final int INTERNAL_NAME
appendDescriptor
for internal
type names in bytecode notation.public static final int FIELD_DESCRIPTOR
appendDescriptor
for field
descriptors, formatted in bytecode notationpublic static final int FIELD_SIGNATURE
appendDescriptor
for field
signatures, formatted in bytecode notationpublic static final int METHOD_DESCRIPTOR
appendDescriptor
for method
descriptors, formatted in bytecode notationpublic static final int METHOD_SIGNATURE
appendDescriptor
for method
signatures, formatted in bytecode notationpublic static final int CLASS_SIGNATURE
appendDescriptor
for class
signatures, formatted in bytecode notationpublic static final int TYPE_DECLARATION
appendDescriptor
for field or
method return value signatures, formatted in default Java notation
(non-bytecode)public static final int CLASS_DECLARATION
appendDescriptor
for class
signatures, formatted in default Java notation (non-bytecode)public static final int PARAMETERS_DECLARATION
appendDescriptor
for method
parameter signatures, formatted in default Java notation (non-bytecode)protected String tab
public AnnotationVisitor visitAnnotation(String desc, boolean visible)
desc
- the class descriptor of the annotation class.visible
- true if the annotation is visible at runtime.public void visitAttribute(Attribute attr)
attr
- an attribute.public void visitEnd()
protected TraceAnnotationVisitor createTraceAnnotationVisitor()
protected void appendDescriptor(int type, String desc)
buf
.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.Copyright © 2018. All rights reserved.