src/share/classes/com/sun/tools/javac/processing/JavacProcessingEnvironment.java

Print this page




 728             if (unmatchedAnnotations.size() > 0) {
 729                 log = Log.instance(context);
 730                 log.warning("proc.annotations.without.processors",
 731                             unmatchedAnnotations.keySet());
 732             }
 733         }
 734 
 735         // Run contributing processors that haven't run yet
 736         psi.runContributingProcs(renv);
 737 
 738         // Debugging
 739         if (options.get("displayFilerState") != null)
 740             filer.displayState();
 741     }
 742 
 743     /**
 744      * Computes the set of annotations on the symbol in question.
 745      * Leave class public for external testing purposes.
 746      */
 747     public static class ComputeAnnotationSet extends
 748         ElementScanner6<Set<TypeElement>, Set<TypeElement>> {
 749         final Elements elements;
 750 
 751         public ComputeAnnotationSet(Elements elements) {
 752             super();
 753             this.elements = elements;
 754         }
 755 
 756         @Override
 757         public Set<TypeElement> visitPackage(PackageElement e, Set<TypeElement> p) {
 758             // Don't scan enclosed elements of a package
 759             return p;
 760         }
 761 
 762         @Override
 763          public Set<TypeElement> scan(Element e, Set<TypeElement> p) {
 764             for (AnnotationMirror annotationMirror :
 765                      elements.getAllAnnotationMirrors(e) ) {
 766                 Element e2 = annotationMirror.getAnnotationType().asElement();
 767                 p.add((TypeElement) e2);
 768             }




 728             if (unmatchedAnnotations.size() > 0) {
 729                 log = Log.instance(context);
 730                 log.warning("proc.annotations.without.processors",
 731                             unmatchedAnnotations.keySet());
 732             }
 733         }
 734 
 735         // Run contributing processors that haven't run yet
 736         psi.runContributingProcs(renv);
 737 
 738         // Debugging
 739         if (options.get("displayFilerState") != null)
 740             filer.displayState();
 741     }
 742 
 743     /**
 744      * Computes the set of annotations on the symbol in question.
 745      * Leave class public for external testing purposes.
 746      */
 747     public static class ComputeAnnotationSet extends
 748         ElementScanner7<Set<TypeElement>, Set<TypeElement>> {
 749         final Elements elements;
 750 
 751         public ComputeAnnotationSet(Elements elements) {
 752             super();
 753             this.elements = elements;
 754         }
 755 
 756         @Override
 757         public Set<TypeElement> visitPackage(PackageElement e, Set<TypeElement> p) {
 758             // Don't scan enclosed elements of a package
 759             return p;
 760         }
 761 
 762         @Override
 763          public Set<TypeElement> scan(Element e, Set<TypeElement> p) {
 764             for (AnnotationMirror annotationMirror :
 765                      elements.getAllAnnotationMirrors(e) ) {
 766                 Element e2 = annotationMirror.getAnnotationType().asElement();
 767                 p.add((TypeElement) e2);
 768             }