Exemple #1
0
 @Override
 public Annotation getAnnotation(AnnotationType type) {
   for (int i = getAnnotations().size() - 1; i >= 0; i--) {
     Annotation ann = getAnnotations().get(i);
     if (ann.getEClass().equals(type)) {
       return ann;
     }
   }
   return null;
 }
Exemple #2
0
 @Override
 public Annotation getAnnotation(String name) {
   for (int i = getAnnotations().size() - 1; i >= 0; i--) {
     Annotation ann = getAnnotations().get(i);
     if (ann.getEClass().getETypeSignature().equalsIgnoreCase(name)) {
       return ann;
     }
   }
   return null;
 }