Package org.jboss.metadata.spi.signature

Examples of org.jboss.metadata.spi.signature.FieldSignature


               else if (trace)
                  log.trace("No annotations for property " + pi.getName());
            }
            else if (field != null)
            {
               Signature sis = new FieldSignature(field);
               MetaData cmdr = retrieval.getComponentMetaData(sis);
               if (cmdr != null)
               {
                  for(AnnotationPlugin plugin : fieldAnnotationPlugins)
                  {
View Full Code Here


   private void addAnnotations(ClassLoader classloader, MemoryMetaDataLoader mutable, FieldInfo fieldInfo, Set<AnnotationMetaData> annotations)
   {
      ScopeKey scope = new ScopeKey(CommonLevels.JOINPOINT_OVERRIDE, fieldInfo.getName());
      MemoryMetaDataLoader loader = new MemoryMetaDataLoader(scope);
      addAnnotations(classloader, loader, annotations);
      mutable.addComponentMetaDataRetrieval(new FieldSignature(fieldInfo), loader);
   }
View Full Code Here

   public <T extends Annotation> T resolveTypedAnnotation(Field f, Class<T> annotation)
   {
      T value = null;
      if (metadata != null)
      {
         FieldSignature signature = new FieldSignature(f);
         MetaData fieldMD = metadata.getComponentMetaData(signature);
         if (fieldMD != null)
         {
            value = fieldMD.getAnnotation(annotation);
            if (value != null) return value;
View Full Code Here

  
   public boolean hasAnnotation(Field m, String annotation)
   {
      if (metadata != null)
      {
         if (hasJoinPointAnnotation(m.getDeclaringClass(), new FieldSignature(m), annotation))
         {
            return true;
         }
      }
      try
View Full Code Here

/* 267 */     FieldInfo[] fields = classInfo.getDeclaredFields();
/* 268 */     if ((fields != null) && (fields.length > 0))
/*     */     {
/* 270 */       for (FieldInfo fi : fields)
/*     */       {
/* 272 */         Signature fis = new FieldSignature(fi.getName());
/* 273 */         MetaData cmdr = retrieval.getComponentMetaData(fis);
/* 274 */         if (cmdr != null)
/*     */         {
/* 276 */           for (AnnotationPlugin plugin : this.fieldAnnotationPlugins)
/*     */           {
View Full Code Here

/*     */         }
/* 138 */         return new ConstructorSignature(params);
/*     */       }
/* 140 */       if ((member instanceof CtField))
/*     */       {
/* 142 */         return new FieldSignature(member.getName());
/*     */       }
/* 144 */       throw new IllegalArgumentException("Unknown member type: " + member);
/*     */     }
/*     */     catch (NotFoundException e) {
/*     */     }
View Full Code Here

/*      */   public Object resolveAnnotation(Field f, Class annotation)
/*      */   {
/*  468 */     Object value = null;
/*  469 */     if (this.metadata != null)
/*      */     {
/*  471 */       FieldSignature signature = new FieldSignature(f);
/*  472 */       MetaData fieldMD = this.metadata.getComponentMetaData(signature);
/*  473 */       if (fieldMD != null)
/*      */       {
/*  475 */         value = fieldMD.getAnnotation(annotation);
/*  476 */         if (value != null) return value;
View Full Code Here

/*      */
/*      */   public boolean hasAnnotation(Field m, String annotation)
/*      */   {
/*  556 */     if (this.metadata != null)
/*      */     {
/*  558 */       if (hasJoinPointAnnotationFromStringName(m.getDeclaringClass(), new FieldSignature(m), annotation))
/*      */       {
/*  560 */         return true;
/*      */       }
/*      */     }
/*  563 */     if (this.annotations.hasAnnotation(m, annotation)) return true;
View Full Code Here

   public Object resolveAnnotation(Field f, Class annotation)
   {
      Object value = null;
      if (metadata != null)
      {
         FieldSignature signature = new FieldSignature(f);
         MetaData fieldMD = metadata.getComponentMetaData(signature);
         if (fieldMD != null)
         {
            value = fieldMD.getAnnotation(annotation);
            if (value != null) return value;
View Full Code Here

   public boolean hasAnnotation(Field m, String annotation)
   {
      if (metadata != null)
      {
         if (hasJoinPointAnnotationFromStringName(m.getDeclaringClass(), new FieldSignature(m), annotation))
         {
            return true;
         }
      }
      if (annotations.hasAnnotation(m, annotation)) return true;
View Full Code Here

TOP

Related Classes of org.jboss.metadata.spi.signature.FieldSignature

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.