use of org.eclipse.jdt.core.dom.IAnnotationBinding in project eclipse.jdt.ls by eclipse.
the class TypeAnnotationRewrite method isPureTypeAnnotation.
private static boolean isPureTypeAnnotation(Annotation annotation) {
IAnnotationBinding binding = annotation.resolveAnnotationBinding();
if (binding == null) {
return false;
}
IAnnotationBinding targetAnnotationBinding = findTargetAnnotation(binding.getAnnotationType().getAnnotations());
if (targetAnnotationBinding == null) {
return false;
}
return isTypeUseOnly(targetAnnotationBinding);
}
Aggregations