FieldVisitor that prints the fields it visits with a Printer.
| Modifier and Type | Field and Description |
|---|---|
| public final Printer | p
The printer to convert the visited field into text. |
| Access | Constructor and Description |
|---|---|
| public | TraceFieldVisitor(final Printer
the printer to convert the visited field into text. printer)Constructs a new |
| public | TraceFieldVisitor(final FieldVisitor
the field visitor to which to delegate calls. May be null. fieldVisitor, final Printer the printer to convert the visited field into text. printer)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public AnnotationVisitor | visitAnnotation(final String
the class descriptor of the annotation class. descriptor, final boolean true if the annotation is visible at runtime. visible)
Visits an annotation of the field.
|
| public void | visitAttribute(final Attribute
an attribute. attribute)
Visits a non standard attribute of the field.
|
| public void | |
| public AnnotationVisitor | visitTypeAnnotation(final int
a reference to the annotated type. The sort of this type reference must be
typeRef, final TypePath TypeReference#FIELD. See TypeReference.the path to the annotated type argument, wildcard bound, array element type, or
static inner type within 'typeRef'. May be null if the annotation targets
'typeRef' as a whole. typePath, final String the class descriptor of the annotation class. descriptor, final boolean true if the annotation is visible at runtime. visible)Overrides org. |
| p | back to summary |
|---|---|
| public final Printer p The printer to convert the visited field into text. | |
| TraceFieldVisitor | back to summary |
|---|---|
| public TraceFieldVisitor(final Printer printer) Constructs a new
| |
| TraceFieldVisitor | back to summary |
|---|---|
| public TraceFieldVisitor(final FieldVisitor fieldVisitor, final Printer printer) Constructs a new
| |
| visitAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitAnnotation(final String descriptor, final boolean visible) Overrides org. Doc from org. Visits an annotation of the field.
| |
| visitAttribute | back to summary |
|---|---|
| public void visitAttribute(final Attribute attribute) Overrides org. Doc from org. Visits a non standard attribute of the field. | |
| visitEnd | back to summary |
|---|---|
| public void visitEnd() Overrides org. Doc from org. Visits the end of the field. This method, which is the last one to be called, is used to inform the visitor that all the annotations and attributes of the field have been visited.
| |
| visitTypeAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitTypeAnnotation(final int typeRef, final TypePath typePath, final String descriptor, final boolean visible) Overrides org. Doc from org. Visits an annotation on the type of the field.
| |