FieldVisitor that checks that its methods are properly used.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | visitEndCalled
Whether the |
| Access | Constructor and Description |
|---|---|
| public | CheckFieldAdapter(final FieldVisitor
the field visitor to which this adapter must delegate calls. fieldVisitor)Constructs a new |
| protected | CheckFieldAdapter(final int
the ASM API version implemented by this visitor. Must be one of the api, final FieldVisitor ASMx values in Opcodes.the field visitor to which this adapter must delegate calls. fieldVisitor)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| 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. |
| visitEndCalled | back to summary |
|---|---|
| private boolean visitEndCalled Whether the | |
| CheckFieldAdapter | back to summary |
|---|---|
| public CheckFieldAdapter(final FieldVisitor fieldVisitor) Constructs a new
| |
| CheckFieldAdapter | back to summary |
|---|---|
| protected CheckFieldAdapter(final int api, final FieldVisitor fieldVisitor) Constructs a new
| |
| checkVisitEndNotCalled | back to summary |
|---|---|
| private void checkVisitEndNotCalled() | |
| 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.
| |