public class TraceFieldVisitor extends TraceAbstractVisitor implements FieldVisitor
FieldVisitor
that prints a disassembled view of the fields it
visits.Modifier and Type | Field and Description |
---|---|
protected FieldVisitor |
fv
The
FieldVisitor to which this visitor delegates calls. |
CLASS_DECLARATION, CLASS_SIGNATURE, FIELD_DESCRIPTOR, FIELD_SIGNATURE, INTERNAL_NAME, METHOD_DESCRIPTOR, METHOD_SIGNATURE, PARAMETERS_DECLARATION, tab, TYPE_DECLARATION
buf, OPCODES, text, TYPES
Constructor and Description |
---|
TraceFieldVisitor() |
Modifier and Type | Method and Description |
---|---|
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.
|
appendDescriptor, createTraceAnnotationVisitor
appendString, getDefaultAttributes, getText, print
protected FieldVisitor fv
FieldVisitor
to which this visitor delegates calls. May be
null.public AnnotationVisitor visitAnnotation(String desc, boolean visible)
TraceAbstractVisitor
visitAnnotation
in interface FieldVisitor
visitAnnotation
in class TraceAbstractVisitor
desc
- the class descriptor of the annotation class.visible
- true if the annotation is visible at runtime.public void visitAttribute(Attribute attr)
TraceAbstractVisitor
visitAttribute
in interface FieldVisitor
visitAttribute
in class TraceAbstractVisitor
attr
- an attribute.public void visitEnd()
TraceAbstractVisitor
visitEnd
in interface FieldVisitor
visitEnd
in class TraceAbstractVisitor
Copyright © 2018. All rights reserved.