AnnotationVisitor that checks that its methods are properly used.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | useNamedValue
Whether the values of the visited annotation are named. |
| private boolean | visitEndCalled
Whether the |
| Access | Constructor and Description |
|---|---|
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| 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 |
| useNamedValue | back to summary |
|---|---|
| private final boolean useNamedValue Whether the values of the visited annotation are named. AnnotationVisitor instances used for annotation default and annotation arrays use unnamed values. | |
| visitEndCalled | back to summary |
|---|---|
| private boolean visitEndCalled Whether the | |
| CheckAnnotationAdapter | back to summary |
|---|---|
| public CheckAnnotationAdapter(final AnnotationVisitor annotationVisitor) | |
| CheckAnnotationAdapter | back to summary |
|---|---|
| pack-priv CheckAnnotationAdapter(final AnnotationVisitor annotationVisitor, final boolean useNamedValues) | |
| checkName | back to summary |
|---|---|
| private void checkName(final String name) | |
| checkVisitEndNotCalled | back to summary |
|---|---|
| private void checkVisitEndNotCalled() | |
| 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. | |