if (visitor.hasMethodLevelAnnotations(annotationClass)) {
for (Map.Entry<IMethod, Annotation> entry : visitor.getMethodLevelAnnotations(annotationClass)
.entrySet()) {
methodMetaData.add(new AutowireMethodAnnotationMetadata(entry.getValue().getAnnotationClass(),
entry.getKey().getHandleIdentifier(), entry.getValue().getMembers(),
new JavaModelSourceLocation(entry.getKey())));
}
}
if (visitor.hasFieldLevelAnnotations(annotationClass)) {
for (Map.Entry<IField, Annotation> entry : visitor.getFieldLevelAnnotations(annotationClass)
.entrySet()) {
methodMetaData.add(new AutowireMethodAnnotationMetadata(entry.getValue().getAnnotationClass(),
entry.getKey().getHandleIdentifier(), entry.getValue().getMembers(),
new JavaModelSourceLocation(entry.getKey())));
}
}
if (methodMetaData.size() > 0) {
beanMetaDataSet.add(new AutowireAnnotationMetadata(bean, annotationClass,
new JavaModelSourceLocation(type), methodMetaData));
}
}
}
catch (JavaModelException e) {
// just fail quietly