예제 #1
0
 public static AnnotationDesc findAnnotation(
     final AnnotationDesc[] annotations, final String... soughtAnnotations) {
   for (final AnnotationDesc annotation : annotations) {
     final AnnotationTypeDoc annotationType = annotation.annotationType();
     for (final String soughtAnnotation : soughtAnnotations) {
       if (annotationType.qualifiedTypeName().equals(soughtAnnotation)) {
         return annotation;
       }
     }
   }
   return null;
 }
예제 #2
0
 public static List<AnnotationDesc> findAnnotations(
     final AnnotationDesc[] annotations, final Class<?>... soughtAnnotations) {
   List<AnnotationDesc> ret = new LinkedList<AnnotationDesc>();
   for (final AnnotationDesc annotation : annotations) {
     final AnnotationTypeDoc annotationType = annotation.annotationType();
     for (final Class<?> soughtAnnotation : soughtAnnotations) {
       if (annotationType.qualifiedTypeName().equals(soughtAnnotation.getName())) {
         ret.add(annotation);
       }
     }
   }
   return ret;
 }
예제 #3
0
 boolean isBusinessMeaningful(final AnnotationTypeDoc annotationType) {
   return annotationType.qualifiedTypeName().contains("livingdocs");
 }