Package org.jboss.metadata.spi.signature

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


      return new FieldSignature(getFieldInfo());
   }

   protected MethodParametersSignature getStringMethodParametersSignature()
   {
      return new MethodParametersSignature("applyTimeZone", new String[]{Calendar.class.getName(), TimeZone.class.getName()}, 0);
   }
View Full Code Here


      return new MethodParametersSignature("applyTimeZone", new String[]{Calendar.class.getName(), TimeZone.class.getName()}, 0);
   }

   protected MethodParametersSignature getClassMethodParametersSignature() throws Exception
   {
      return new MethodParametersSignature("applyTimeZone", 0, Calendar.class, TimeZone.class);
   }
View Full Code Here

      return new MethodParametersSignature("applyTimeZone", 0, Calendar.class, TimeZone.class);
   }

   protected MethodParametersSignature getMethodParametersSignature() throws Exception
   {
      return new MethodParametersSignature(getMethod(), 0);
   }
View Full Code Here

      return new MethodParametersSignature(getMethod(), 0);
   }

   protected MethodParametersSignature getMethodInfoParametersSignature() throws Exception
   {
      return new MethodParametersSignature(getMethodInfo(), 0);
   }
View Full Code Here

   }
  
   public void testMethodParamsEmpty() throws Exception
   {
      MetaData metaData = setupMethodParams();
      metaData = metaData.getComponentMetaData(new MethodParametersSignature("empty", 0, String.class));
      testEmpty(metaData);
   }
View Full Code Here

   }
  
   public void testMethodParamsTestAnnotation() throws Exception
   {
      MetaData metaData = setupMethodParams();
      metaData = metaData.getComponentMetaData(new MethodParametersSignature("testAnnotation", 0, String.class));
      testTestAnnotation(metaData);
   }
View Full Code Here

   }
  
   public void testMethodParamTestAnnotation12() throws Exception
   {
      MetaData metaData = setupMethodParams();
      metaData = metaData.getComponentMetaData(new MethodParametersSignature("testAnnotation12", 1, String.class, Class.class));
      testTestAnnotation12(metaData);
   }
View Full Code Here

   protected MetaData setupMethodParams()
   {
      MemoryMetaDataLoader loader = new MemoryMetaDataLoader();
      MemoryMetaDataLoader component = new MemoryMetaDataLoader();
      loader.addComponentMetaDataRetrieval(new MethodParametersSignature("empty", 0, String.class), component);
      component = new MemoryMetaDataLoader();
      component.addAnnotation(new TestAnnotationImpl());
      loader.addComponentMetaDataRetrieval(new MethodParametersSignature("testAnnotation", 0, String.class), component);
      component = new MemoryMetaDataLoader();
      component.addAnnotation(new TestAnnotation1Impl());
      component.addAnnotation(new TestAnnotation2Impl());
      loader.addComponentMetaDataRetrieval(new MethodParametersSignature("testAnnotation12", 1, String.class, Class.class), component);
      return new MetaDataRetrievalToMetaDataBridge(loader);
   }
View Full Code Here

         {
         }
      }
      else if (signature instanceof MethodParametersSignature)
      {
         MethodParametersSignature mps = (MethodParametersSignature)signature;
         try
         {
            Method method = clazz.getMethod(signature.getName(), signature.getParametersTypes(clazz));
            annotations = method.getParameterAnnotations()[mps.getParam()];
         }
         catch (NoSuchMethodException ignored)
         {
         }
      }
View Full Code Here

      super(annotation, adapters);
   }

   protected Signature createParametersSignature(String name, String[] parameters, int index)
   {
      return new MethodParametersSignature(name, parameters, index);
   }
View Full Code Here

TOP

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

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.