RecordComponentVisitor that prints the record components it visits with a Printer.
| Modifier and Type | Field and Description |
|---|---|
| public final Printer | printer
The printer to convert the visited record component into text. |
| Access | Constructor and Description |
|---|---|
| public | TraceRecordComponentVisitor(final Printer
the printer to convert the visited record component into text. printer)Constructs a new |
| public | TraceRecordComponentVisitor(final RecordComponentVisitor
the record component visitor to which to delegate calls. May be
null. recordComponentVisitor, final Printer the printer to convert the visited record component 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)Overrides org. |
| public void | visitAttribute(final Attribute
an attribute. attribute)Overrides org. |
| public void | visitEnd()
Overrides org. |
| public AnnotationVisitor | visitTypeAnnotation(final int
a reference to the annotated type. The sort of this type reference must be
typeRef, final TypePath TypeReference#CLASS_TYPE_PARAMETER, TypeReference#CLASS_TYPE_PARAMETER_BOUND or TypeReference#CLASS_EXTENDS. 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. |
| printer | back to summary |
|---|---|
| public final Printer printer The printer to convert the visited record component into text. | |
| TraceRecordComponentVisitor | back to summary |
|---|---|
| public TraceRecordComponentVisitor(final Printer printer) Constructs a new
| |
| TraceRecordComponentVisitor | back to summary |
|---|---|
| public TraceRecordComponentVisitor(final RecordComponentVisitor recordComponentVisitor, 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 record component.
| |
| visitAttribute | back to summary |
|---|---|
| public void visitAttribute(final Attribute attribute) Overrides org. Doc from org. Visits a non standard attribute of the record component. | |
| visitEnd | back to summary |
|---|---|
| public void visitEnd() Overrides org. Doc from org. Visits the end of the record component. This method, which is the last one to be called, is used to inform the visitor that everything 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 a type in the record component signature.
| |