Package org.jboss.metadata.spi.signature

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


/*     */         {
/* 121 */           params = new String[parameterTypes.length];
/* 122 */           for (int i = 0; i < params.length; i++)
/* 123 */             params[i] = parameterTypes[i].getName();
/*     */         }
/* 125 */         return new MethodSignature(method.getName(), params);
/*     */       }
/* 127 */       if ((member instanceof CtConstructor))
/*     */       {
/* 129 */         CtConstructor constructor = (CtConstructor)member;
/* 130 */         CtClass[] parameterTypes = constructor.getParameterTypes();
View Full Code Here


/*      */
/*      */   public Object resolveAnnotation(long hash, Method m, Class annotation)
/*      */   {
/*  434 */     if (this.metadata != null)
/*      */     {
/*  436 */       MethodSignature signature = new MethodSignature(m.getName(), m.getParameterTypes());
/*  437 */       MetaData methodMD = this.metadata.getComponentMetaData(signature);
/*  438 */       if (methodMD != null)
/*      */       {
/*  440 */         Object val = methodMD.getAnnotation(annotation);
/*  441 */         if (val != null) return val;
View Full Code Here

/*      */     {
/*  529 */       annotation = annotationClass.getName();
/*      */     }
/*  531 */     if (this.metadata != null)
/*      */     {
/*  533 */       if (hasJoinPointAnnotationFromStringName(m.getDeclaringClass(), new MethodSignature(m), annotation))
/*      */       {
/*  535 */         return true;
/*      */       }
/*      */     }
/*      */
View Full Code Here

   public Object resolveAnnotation(long hash, Method m, Class annotation)
   {
      if (metadata != null)
      {
         MethodSignature signature = new MethodSignature(m.getName(), m.getParameterTypes());
         MetaData methodMD = metadata.getComponentMetaData(signature);
         if (methodMD != null)
         {
            Object val = methodMD.getAnnotation(annotation);
            if (val != null) return val;
View Full Code Here

         if (annotationClass == null)
         {
            annotationClass = loadAnnotationClass(m.getDeclaringClass(), annotation);
         }
        
         if (annotationClass != null && hasJoinPointAnnotation(m.getDeclaringClass(), new MethodSignature(m), annotationClass))
         {
            return true;
         }
      }
View Full Code Here

    */
   public <T extends Annotation> T resolveTypedAnnotation(long hash, Method m, Class<T> annotation)
   {
      if (metadata != null)
      {
         MethodSignature signature = new MethodSignature(m.getName(), m.getParameterTypes());
         MetaData methodMD = metadata.getComponentMetaData(signature);
         if (methodMD != null)
         {
            T val = methodMD.getAnnotation(annotation);
            if (val != null) return val;
View Full Code Here

      {
         annotation = annotationClass.getName();
      }
      if (metadata != null)
      {
         if (hasJoinPointAnnotation(m.getDeclaringClass(), new MethodSignature(m), annotation))
         {
            return true;
         }
      }
View Full Code Here

         if (annotation == null && info instanceof PropertyInfo)
         {
            PropertyInfo pi = (PropertyInfo) info;
            if(pi.getGetter() != null)
            {
               Signature mis = new MethodSignature(pi.getGetter());
               MetaData imetaData = metaData.getComponentMetaData(mis);
               if (imetaData != null)
                  annotation = imetaData.getAnnotation(annotationType);
            }
            if(annotation == null && pi.getSetter() != null)
            {
               Signature mis = new MethodSignature(pi.getSetter());
               MetaData imetaData = metaData.getComponentMetaData(mis);
               if (imetaData != null)
                  annotation = imetaData.getAnnotation(annotationType);
            }
            if(annotation == null && pi.getFieldInfo() != null)
View Full Code Here

   public Object resolveAnnotation(long hash, Method m, Class annotation)
   {
      if (metadata != null)
      {
         MethodSignature signature = new MethodSignature(m.getName(), m.getParameterTypes());
         MetaData methodMD = metadata.getComponentMetaData(signature);
         if (methodMD != null)
         {
            // FIXME The metadata should already include the class annotations
            //       so we should just return this result
View Full Code Here

               // FIXME ClassLoader - this should use "m.getClass().getClassLoader()"
               annotationClass = SecurityActions.getContextClassLoader().loadClass(annotation);
            }
            // FIXME The metadata should already include the class annotations
            //       so we should just return this result
            MethodSignature signature = new MethodSignature(m.getName(), m.getParameterTypes());
            MetaData methodMD = metadata.getComponentMetaData(signature);
            if (methodMD != null)
            {
               if (methodMD.isAnnotationPresent(annotationClass))
                  return true;
View Full Code Here

TOP

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

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.