Package org.jboss.reflect.spi

Examples of org.jboss.reflect.spi.AnnotationValue


      checkClassArrayValue(value, expectedComplexAnnotationData.classArrayAttribute);

      value = complexAnnotation.getValue("enumArrayValue");
      checkEnumArrayValue(value, expectedComplexAnnotationData.enumArrayAttribute);

      AnnotationValue valueAnnotation = ((AnnotationInfo)complexAnnotation.getType()).getAnnotation(ValueAnnotation.class.getName());
      checkStringValue(valueAnnotation.getValue("value"), expectedComplexAnnotationData.annotationValueAnnotationString);
   }
View Full Code Here


   private void checkContainedAnnotationValue(Value value, String expected)
   {
      assertNotNull(value);
      assertTrue(AnnotationValue.class.isAssignableFrom(value.getClass()));
      AnnotationValue val = (AnnotationValue)value;
      checkValueAnnotation(val, expected);
   }
View Full Code Here

   }

  
   private AnnotationValue getAnnotationCheckTypeAndName(AnnotatedInfo info, String name)
   {
      AnnotationValue annotation = info.getAnnotation(name);
      assertTrue(info.isAnnotationPresent(name));
      assertNotNull(annotation);
      assertNotNull(annotation.getAnnotationType());
      assertEquals(name, annotation.getAnnotationType().getName());
      return annotation;
   }
View Full Code Here

      for (Annotation annotation : annotations)
      {
         Class<?> type = annotation.annotationType();
         AnnotationInfoImpl info = new AnnotationInfoImpl(type.getName(), type.getModifiers());
         // TODO JBMICROCONT-127 attributes
         AnnotationValue a = new AnnotationValueImpl(info, new HashMap<String, Value>(), annotation);
         expected.add(a);
      }
      return expected;
   }
View Full Code Here

      catch (RuntimeException e)
      {
         // AutoGenerated
         throw new RuntimeException("Error creating annotation for " + clazz.getName(), e);
      }
      AnnotationValue value = AnnotationValueFactory.createAnnotationValue(helper, helper, info, annotation);
      getDependenciesForAnnotation(info.getName(), value, dependencies);
   }
View Full Code Here

         if (superHolder != null && superAllAnnotations != null && superAllAnnotations.length != 0)
         {
            for (int i = 0; i < superAllAnnotations.length; i++)
            {
               AnnotationValue av = superAllAnnotations[i];
               if (av.getAnnotationType().isAnnotationPresent(INHERITED_NAME))
               {
                  allAnnotations.put(av.getAnnotationType().getName(), av);
               }
            }
         }
         else
            allAnnotationsArray = annotationsArray;
View Full Code Here

        
         if (superHolder != null && superAllAnnotations != null && superAllAnnotations.length != 0)
         {
            for (int i = 0; i < superAllAnnotations.length; i++)
            {
               AnnotationValue av = superAllAnnotations[i];
               if (av.getAnnotationType().isAnnotationPresent(INHERITED_NAME))
               {
                  allAnnotations.put(av.getAnnotationType().getName(), av);
               }
            }
         }
         else
            allAnnotationsArray = declaredAnnotationsArray;
View Full Code Here

   public boolean equals(Object o)
   {
      if (this == o) return true;
      if (o == null || !(o instanceof AnnotationValue)) return false;

      final AnnotationValue annotationValue = (AnnotationValue) o;

      if (!annotationType.equals(annotationValue.getAnnotationType())) return false;
      if (!attributeValues.equals(annotationValue.getValues())) return false;

      final Annotation otherUnderlying = annotationValue.getUnderlyingAnnotation();
      if (underlying == null && otherUnderlying != null)
         return false;
      if (underlying != null && otherUnderlying == null)
         return false;
View Full Code Here

/*     */     }
/*     */     catch (RuntimeException e)
/*     */     {
/* 253 */       throw new RuntimeException("Error creating annotation for " + clazz.getName(), e);
/*     */     }
/* 255 */     AnnotationValue value = AnnotationValueFactory.createAnnotationValue(helper, helper, info, annotation);
/* 256 */     getDependenciesForAnnotation(info.getName(), value, dependencies);
/*     */   }
View Full Code Here

/*     */
/* 137 */       if ((superHolder != null) && (superAllAnnotations != null) && (superAllAnnotations.length != 0))
/*     */       {
/* 139 */         for (int i = 0; i < superAllAnnotations.length; i++)
/*     */         {
/* 141 */           AnnotationValue av = superAllAnnotations[i];
/* 142 */           if (!av.getAnnotationType().isAnnotationPresent(INHERITED_NAME))
/*     */             continue;
/* 144 */           this.allAnnotations.put(av.getAnnotationType().getName(), av);
/*     */         }
/*     */       }
/*     */       else
/*     */       {
/* 149 */         this.allAnnotationsArray = this.declaredAnnotationsArray;
View Full Code Here

TOP

Related Classes of org.jboss.reflect.spi.AnnotationValue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.