Package org.jboss.metadata.spi.signature

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


   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;
         }
      }
      if (annotations.hasAnnotation(m, annotation)) return true;
View Full Code Here

      return new MethodSignature(getMethodInfo());
   }

   protected FieldSignature getStringFieldSignature()
   {
      return new FieldSignature("calendar");
   }
View Full Code Here

      return new FieldSignature("calendar");
   }

   protected FieldSignature getFieldSignature() throws Exception
   {
      return new FieldSignature(getField());
   }
View Full Code Here

      return new FieldSignature(getField());
   }

   protected FieldSignature getFieldInfoSignature()
   {
      return new FieldSignature(getFieldInfo());
   }
View Full Code Here

   protected abstract MetaData setupConstructorParams();

   public void testFieldEmpty() throws Exception
   {
      MetaData metaData = setupField();
      metaData = metaData.getComponentMetaData(new FieldSignature("empty"));
      testEmpty(metaData);
   }
View Full Code Here

   }
  
   public void testFieldTestAnnotation() throws Exception
   {
      MetaData metaData = setupField();
      metaData = metaData.getComponentMetaData(new FieldSignature("testAnnotation"));
      testTestAnnotation(metaData);
   }
View Full Code Here

   }
  
   public void testFieldTestAnnotation12() throws Exception
   {
      MetaData metaData = setupField();
      metaData = metaData.getComponentMetaData(new FieldSignature("testAnnotation12"));
      testTestAnnotation12(metaData);
   }
View Full Code Here

      MethodInfo mi = getMethodInfo();
      Signature sm = new MethodSignature(m);
      checkAnnotationCycle(sm, m, mi);
      Field f = getField();
      FieldInfo fi = getFieldInfo();
      Signature sf = new FieldSignature(f);
      checkAnnotationCycle(sf, f, fi);
   }
View Full Code Here

      MethodInfo mi = getMethodInfo();
      Signature sm = new MethodSignature(m);
      checkMetaDataCycle(sm, m, mi);
      Field f = getField();
      FieldInfo fi = getFieldInfo();
      Signature sf = new FieldSignature(f);
      checkMetaDataCycle(sf, f, fi);
   }
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.