Package org.jboss.reflect.spi

Examples of org.jboss.reflect.spi.AnnotationValue


/*    */
/*    */   public <T extends Annotation> T getUnderlyingAnnotation(Class<T> annotationType)
/*    */   {
/* 53 */     if (annotationType == null)
/* 54 */       throw new IllegalArgumentException("Null annotationType");
/* 55 */     AnnotationValue value = getAnnotation(annotationType.getName());
/* 56 */     if (value == null)
/* 57 */       return null;
/* 58 */     return value.getUnderlyingAnnotation(annotationType);
/*    */   }
View Full Code Here


/*     */   public boolean equals(Object o)
/*     */   {
/* 135 */     if (this == o) return true;
/* 136 */     if ((o == null) || (!(o instanceof AnnotationValue))) return false;
/*     */
/* 138 */     AnnotationValue annotationValue = (AnnotationValue)o;
/*     */
/* 140 */     if (!this.annotationType.equals(annotationValue.getAnnotationType())) return false;
/* 141 */     if (!this.attributeValues.equals(annotationValue.getValues())) return false;
/*     */
/* 143 */     Annotation otherUnderlying = annotationValue.getUnderlyingAnnotation();
/* 144 */     if ((this.underlying == null) && (otherUnderlying != null))
/* 145 */       return false;
/* 146 */     if ((this.underlying != null) && (otherUnderlying == null))
/* 147 */       return false;
/* 148 */     return this.underlying.equals(otherUnderlying);
View Full Code Here

/*     */
/* 111 */       if ((superHolder != null) && (superAllAnnotations != null) && (superAllAnnotations.length != 0))
/*     */       {
/* 113 */         for (int i = 0; i < superAllAnnotations.length; i++)
/*     */         {
/* 115 */           AnnotationValue av = superAllAnnotations[i];
/* 116 */           if (!av.getAnnotationType().isAnnotationPresent(INHERITED_NAME))
/*     */             continue;
/* 118 */           this.allAnnotations.put(av.getAnnotationType().getName(), av);
/*     */         }
/*     */       }
/*     */       else
/*     */       {
/* 123 */         this.allAnnotationsArray = this.annotationsArray;
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

      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 = 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.