public interface RoundEnvironment
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
errorRaised() |
Returns
true if an error was raised in the prior round
of processing; returns false otherwise. |
Set<? extends Element> |
getElementsAnnotatedWith(Class<? extends Annotation> a) |
Returns the elements annotated with the given annotation type.
|
Set<? extends Element> |
getElementsAnnotatedWith(TypeElement a) |
Returns the elements annotated with the given annotation type.
|
default Set<? extends Element> |
getElementsAnnotatedWithAny(Set<Class<? extends Annotation>> annotations) |
Returns the elements annotated with one or more of the given
annotation types.
|
default Set<? extends Element> |
getElementsAnnotatedWithAny(TypeElement... annotations) |
Returns the elements annotated with one or more of the given
annotation types.
|
Set<? extends Element> |
getRootElements() |
Returns the root elements for annotation processing generated
by the prior round.
|
boolean |
processingOver() |
Returns
true if types generated by this round will not
be subject to a subsequent round of annotation processing;
returns false otherwise. |
boolean processingOver()
true if types generated by this round will not
be subject to a subsequent round of annotation processing;
returns false otherwise.true if types generated by this round will not
be subject to a subsequent round of annotation processing;
returns false otherwiseboolean errorRaised()
true if an error was raised in the prior round
of processing; returns false otherwise.true if an error was raised in the prior round
of processing; returns false otherwiseSet<? extends Element> getRootElements()
Set<? extends Element> getElementsAnnotatedWith(TypeElement a)
package-info file for that package was
created.
Likewise, elements of a module are not considered included
simply because a module-info file for that module was
createda - annotation type being requestedIllegalArgumentException - if the argument does not
represent an annotation typedefault Set<? extends Element> getElementsAnnotatedWithAny(TypeElement... annotations)
getElementsAnnotatedWith(TypeElement) on
each annotation and adding those results to the result
set. Finally, the contents of the result set are returned as an
unmodifiable set.annotations - annotation types being requestedIllegalArgumentException - if the any elements of the
argument set do not represent an annotation typeSet<? extends Element> getElementsAnnotatedWith(Class<? extends Annotation> a)
package-info file for that package was
created.
Likewise, elements of a module are not considered included
simply because a module-info file for that module was
createda - annotation type being requestedIllegalArgumentException - if the argument does not
represent an annotation typedefault Set<? extends Element> getElementsAnnotatedWithAny(Set<Class<? extends Annotation>> annotations)
getElementsAnnotatedWith(Class) on
each annotation and adding those results to the result
set. Finally, the contents of the result set are returned as an
unmodifiable set.annotations - annotation types being requestedIllegalArgumentException - if the any elements of the
argument set do not represent an annotation type Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b155-1