public class CheckFieldAdapter extends Object implements FieldVisitor
FieldVisitor
that checks that its methods are properly used.Constructor and Description |
---|
CheckFieldAdapter(FieldVisitor fv) |
Modifier and Type | Method and Description |
---|---|
AnnotationVisitor |
visitAnnotation(String desc,
boolean visible)
Visits an annotation of the field.
|
void |
visitAttribute(Attribute attr)
Visits a non standard attribute of the field.
|
void |
visitEnd()
Visits the end of the field.
|
public CheckFieldAdapter(FieldVisitor fv)
public AnnotationVisitor visitAnnotation(String desc, boolean visible)
FieldVisitor
visitAnnotation
in interface FieldVisitor
desc
- the class descriptor of the annotation class.visible
- true if the annotation is visible at runtime.public void visitAttribute(Attribute attr)
FieldVisitor
visitAttribute
in interface FieldVisitor
attr
- an attribute.public void visitEnd()
FieldVisitor
visitEnd
in interface FieldVisitor
Copyright © 2018. All rights reserved.