Package org.apache.felix.ipojo.manipulation.ClassChecker

Examples of org.apache.felix.ipojo.manipulation.ClassChecker.AnnotationDescriptor


         mv.visitInsn(RETURN);

         // Move annotations
         if (annotations != null) {
             for (int i = 0; i < annotations.size(); i++) {
                 AnnotationDescriptor ad = (AnnotationDescriptor) annotations.get(i);
                 ad.visitAnnotation(mv);
             }
         }

         // Move parameter annotations if any
         if (paramAnnotations != null  && ! paramAnnotations.isEmpty()) {
             Iterator ids = paramAnnotations.keySet().iterator();
             while(ids.hasNext()) {
                 Integer id = (Integer) ids.next();
                 List ads = (List) paramAnnotations.get(id);
                 for (int i = 0; i < ads.size(); i++) {
                     AnnotationDescriptor ad = (AnnotationDescriptor) ads.get(i);
                     ad.visitParameterAnnotation(id.intValue(), mv);
                 }
             }
         }

         mv.visitMaxs(0, 0);
View Full Code Here


        mv.visitInsn(returnType.getOpcode(IRETURN));

        // Move annotations
        if (annotations != null) {
            for (int i = 0; i < annotations.size(); i++) {
                AnnotationDescriptor ad = (AnnotationDescriptor) annotations.get(i);
                ad.visitAnnotation(mv);
            }
        }

        // Move parameter annotations
        if (paramAnnotations != null  && ! paramAnnotations.isEmpty()) {
            Iterator ids = paramAnnotations.keySet().iterator();
            while(ids.hasNext()) {
                Integer id = (Integer) ids.next();
                List ads = (List) paramAnnotations.get(id);
                for (int i = 0; i < ads.size(); i++) {
                    AnnotationDescriptor ad = (AnnotationDescriptor) ads.get(i);
                    ad.visitParameterAnnotation(id.intValue(), mv);
                }
            }
        }

        mv.visitMaxs(0, 0);
View Full Code Here

TOP

Related Classes of org.apache.felix.ipojo.manipulation.ClassChecker.AnnotationDescriptor

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.