コード例 #1
0
ファイル: Utils.java プロジェクト: orionhealth/jax-doclets
 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
ファイル: Utils.java プロジェクト: orionhealth/jax-doclets
 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");
 }