use of javassist.bytecode.FieldInfo in project audit4j-core by audit4j.
the class AnnotationDB method scanFields.
protected void scanFields(ClassFile cf) {
List<ClassFile> fields = cf.getFields();
if (fields == null)
return;
for (Object obj : fields) {
FieldInfo field = (FieldInfo) obj;
AnnotationsAttribute visible = (AnnotationsAttribute) field.getAttribute(AnnotationsAttribute.visibleTag);
AnnotationsAttribute invisible = (AnnotationsAttribute) field.getAttribute(AnnotationsAttribute.invisibleTag);
if (visible != null)
populate(visible.getAnnotations(), cf.getName());
if (invisible != null)
populate(invisible.getAnnotations(), cf.getName());
}
}
Aggregations