< prev index next >

src/java.compiler/share/classes/javax/annotation/processing/RoundEnvironment.java

Print this page




  48      * Returns {@code true} if types generated by this round will not
  49      * be subject to a subsequent round of annotation processing;
  50      * returns {@code false} otherwise.
  51      *
  52      * @return {@code true} if types generated by this round will not
  53      * be subject to a subsequent round of annotation processing;
  54      * returns {@code false} otherwise
  55      */
  56     boolean processingOver();
  57 
  58     /**
  59      * Returns {@code true} if an error was raised in the prior round
  60      * of processing; returns {@code false} otherwise.
  61      *
  62      * @return {@code true} if an error was raised in the prior round
  63      * of processing; returns {@code false} otherwise
  64      */
  65     boolean errorRaised();
  66 
  67     /**
  68      * Returns the root elements for annotation processing generated
  69      * by the prior round.
  70      *
  71      * @return the root elements for annotation processing generated
  72      * by the prior round, or an empty set if there were none
  73      */
  74     Set<? extends Element> getRootElements();
  75 
  76     /**
  77      * Returns the elements annotated with the given annotation type.
  78      * The annotation may appear directly or be inherited.  Only
  79      * package elements, module elements, and type elements <i>included</i> in this
  80      * round of annotation processing, or declarations of members,
  81      * constructors, parameters, or type parameters declared within
  82      * those, are returned.  Included type elements are {@linkplain
  83      * #getRootElements root types} and any member types nested within
  84      * them.  Elements of a package are not considered included simply
  85      * because a {@code package-info} file for that package was
  86      * created.
  87      * Likewise, elements of a module are not considered included
  88      * simply because a {@code module-info} file for that module was




  48      * Returns {@code true} if types generated by this round will not
  49      * be subject to a subsequent round of annotation processing;
  50      * returns {@code false} otherwise.
  51      *
  52      * @return {@code true} if types generated by this round will not
  53      * be subject to a subsequent round of annotation processing;
  54      * returns {@code false} otherwise
  55      */
  56     boolean processingOver();
  57 
  58     /**
  59      * Returns {@code true} if an error was raised in the prior round
  60      * of processing; returns {@code false} otherwise.
  61      *
  62      * @return {@code true} if an error was raised in the prior round
  63      * of processing; returns {@code false} otherwise
  64      */
  65     boolean errorRaised();
  66 
  67     /**
  68      * Returns the {@linkplain Processor root elements} for annotation processing generated
  69      * by the prior round.
  70      *
  71      * @return the root elements for annotation processing generated
  72      * by the prior round, or an empty set if there were none
  73      */
  74     Set<? extends Element> getRootElements();
  75 
  76     /**
  77      * Returns the elements annotated with the given annotation type.
  78      * The annotation may appear directly or be inherited.  Only
  79      * package elements, module elements, and type elements <i>included</i> in this
  80      * round of annotation processing, or declarations of members,
  81      * constructors, parameters, or type parameters declared within
  82      * those, are returned.  Included type elements are {@linkplain
  83      * #getRootElements root types} and any member types nested within
  84      * them.  Elements of a package are not considered included simply
  85      * because a {@code package-info} file for that package was
  86      * created.
  87      * Likewise, elements of a module are not considered included
  88      * simply because a {@code module-info} file for that module was


< prev index next >