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

Print this page




 703             if (unmatchedAnnotations.size() > 0) {
 704                 log = Log.instance(context);
 705                 log.warning("proc.annotations.without.processors",
 706                             unmatchedAnnotations.keySet());
 707             }
 708         }
 709 
 710         // Run contributing processors that haven't run yet
 711         psi.runContributingProcs(renv);
 712 
 713         // Debugging
 714         if (options.isSet("displayFilerState"))
 715             filer.displayState();
 716     }
 717 
 718     /**
 719      * Computes the set of annotations on the symbol in question.
 720      * Leave class public for external testing purposes.
 721      */
 722     public static class ComputeAnnotationSet extends
 723         ElementScanner7<Set<TypeElement>, Set<TypeElement>> {
 724         final Elements elements;
 725 
 726         public ComputeAnnotationSet(Elements elements) {
 727             super();
 728             this.elements = elements;
 729         }
 730 
 731         @Override
 732         public Set<TypeElement> visitPackage(PackageElement e, Set<TypeElement> p) {
 733             // Don't scan enclosed elements of a package
 734             return p;
 735         }
 736 
 737         @Override
 738         public Set<TypeElement> scan(Element e, Set<TypeElement> p) {
 739             for (AnnotationMirror annotationMirror :
 740                      elements.getAllAnnotationMirrors(e) ) {
 741                 Element e2 = annotationMirror.getAnnotationType().asElement();
 742                 p.add((TypeElement) e2);
 743             }




 703             if (unmatchedAnnotations.size() > 0) {
 704                 log = Log.instance(context);
 705                 log.warning("proc.annotations.without.processors",
 706                             unmatchedAnnotations.keySet());
 707             }
 708         }
 709 
 710         // Run contributing processors that haven't run yet
 711         psi.runContributingProcs(renv);
 712 
 713         // Debugging
 714         if (options.isSet("displayFilerState"))
 715             filer.displayState();
 716     }
 717 
 718     /**
 719      * Computes the set of annotations on the symbol in question.
 720      * Leave class public for external testing purposes.
 721      */
 722     public static class ComputeAnnotationSet extends
 723         ElementScanner8<Set<TypeElement>, Set<TypeElement>> {
 724         final Elements elements;
 725 
 726         public ComputeAnnotationSet(Elements elements) {
 727             super();
 728             this.elements = elements;
 729         }
 730 
 731         @Override
 732         public Set<TypeElement> visitPackage(PackageElement e, Set<TypeElement> p) {
 733             // Don't scan enclosed elements of a package
 734             return p;
 735         }
 736 
 737         @Override
 738         public Set<TypeElement> scan(Element e, Set<TypeElement> p) {
 739             for (AnnotationMirror annotationMirror :
 740                      elements.getAllAnnotationMirrors(e) ) {
 741                 Element e2 = annotationMirror.getAnnotationType().asElement();
 742                 p.add((TypeElement) e2);
 743             }