AnnotationVisitor that prints the annotations it visits with a Printer.
| Modifier and Type | Field and Description |
|---|---|
| private final Printer | printer
The printer to convert the visited annotation into text. |
| Access | Constructor and Description |
|---|---|
| public | TraceAnnotationVisitor(final Printer
the printer to convert the visited annotation into text. printer)Constructs a new |
| public | TraceAnnotationVisitor(final AnnotationVisitor
the annotation visitor to which to delegate calls. May be null. annotationVisitor, final Printer the printer to convert the visited annotation into text. printer)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public void | visit(final String
the value name. name, final Object the actual value, whose type must be value)Byte, Boolean, Character, Short, Integer , Long, Float, Double,
String or Type of Type#OBJECT or Type#ARRAY sort. This
value can also be an array of byte, boolean, short, char, int, long, float or double values
(this is equivalent to using visitArray and visiting each array element in turn,
but is more convenient).Overrides org. |
| public AnnotationVisitor | visitAnnotation(final String
the value name. name, final String the class descriptor of the nested annotation class. descriptor)Overrides org. |
| public AnnotationVisitor | visitArray(final String
the value name. name)
Visits an array value of the annotation.
|
| public void | |
| public void |
| printer | back to summary |
|---|---|
| private final Printer printer The printer to convert the visited annotation into text. | |
| TraceAnnotationVisitor | back to summary |
|---|---|
| public TraceAnnotationVisitor(final Printer printer) Constructs a new
| |
| TraceAnnotationVisitor | back to summary |
|---|---|
| public TraceAnnotationVisitor(final AnnotationVisitor annotationVisitor, final Printer printer) Constructs a new
| |
| visit | back to summary |
|---|---|
| public void visit(final String name, final Object value) Overrides org. Doc from org. Visits a primitive value of the annotation.
| |
| visitAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitAnnotation(final String name, final String descriptor) Overrides org. Doc from org. Visits a nested annotation value of the annotation.
| |
| visitArray | back to summary |
|---|---|
| public AnnotationVisitor visitArray(final String name) Overrides org. Doc from org. Visits an array value of the annotation. Note that arrays of primitive values (such as byte,
boolean, short, char, int, long, float or double) can be passed as value to
| |
| visitEnd | back to summary |
|---|---|
| public void visitEnd() Overrides org. Doc from org. Visits the end of the annotation.
| |
| visitEnum | back to summary |
|---|---|
| public void visitEnum(final String name, final String descriptor, final String value) Overrides org. Doc from org. Visits an enumeration value of the annotation. | |