The methods in this class do not take type annotations into account, as target types, not java elements.
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final Elements | |
| private final boolean | |
| private static final String | |
| private final ProcessingEnvironment | |
| private final boolean | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| pack-priv | JavacRoundEnvironment(boolean processingOver, boolean errorRaised, Set<? extends Element> rootElements, JavacProcessingEnvironment processingEnv)
|
| Modifier and Type | Method and Description |
|---|---|
| private TypeElement | |
| public boolean | Returns: true if an error was raised in the prior round
of processing; returns false otherwise.Implements javax. Returns |
| public Set | Returns: the elements annotated with the given annotation type, or an empty set if there are noneannotation type being requested a)Implements javax. Returns the elements annotated with the given annotation type. |
| public Set | getElementsAnnotatedWith(Class<? extends Annotation> a)
Implements javax. Returns the elements annotated with the given annotation interface. |
| public Set | getElementsAnnotatedWithAny(TypeElement... annotations)
Overrides default javax. Returns the elements annotated with one or more of the given annotation interfaces. |
| public Set | getElementsAnnotatedWithAny(Set<Class<? extends Annotation>> annotations)
Overrides default javax. Returns the elements annotated with one or more of the given annotation interfaces. |
| public Set | Returns: the types elements specified by the prior round, or an empty set if there were noneImplements javax. Returns the type elements specified by the prior round. |
| private Element | |
| public boolean | processingOver()
Implements javax. Returns |
| private void | |
| private void | |
| public String |
| allowModules | back to summary |
|---|---|
| private final boolean allowModules | |
| eltUtils | back to summary |
|---|---|
| private final Elements eltUtils | |
| errorRaised | back to summary |
|---|---|
| private final boolean errorRaised | |
| NOT_AN_ANNOTATION_TYPE | back to summary |
|---|---|
| private static final String NOT_AN_ANNOTATION_TYPE | |
| processingEnv | back to summary |
|---|---|
| private final ProcessingEnvironment processingEnv | |
| processingOver | back to summary |
|---|---|
| private final boolean processingOver | |
| rootElements | back to summary |
|---|---|
| private final Set<? extends Element> rootElements | |
| JavacRoundEnvironment | back to summary |
|---|---|
| pack-priv JavacRoundEnvironment(boolean processingOver, boolean errorRaised, Set<? extends Element> rootElements, JavacProcessingEnvironment processingEnv) | |
| annotationToElement | back to summary |
|---|---|
| private TypeElement annotationToElement(Class<? extends Annotation> annotation) | |
| errorRaised | back to summary |
|---|---|
| public boolean errorRaised() Implements javax. Returns
| |
| getElementsAnnotatedWith | back to summary |
|---|---|
| public Set Implements javax. Returns the elements annotated with the given annotation type. Only type elements included in this round of annotation processing, or declarations of members, parameters, type parameters, or record components declared within those, are returned. Included type elements are specified types and any types nested within them.
| |
| getElementsAnnotatedWith | back to summary |
|---|---|
| public Set Implements javax. Doc from javax. Returns the elements annotated with the given annotation interface.
The annotation may appear directly or be inherited. Only
package elements, module elements, and type elements included in this
round of annotation processing, or declarations of members,
constructors, parameters, type parameters, or record components
declared within those, are returned. Included type elements are root types and any member types nested within
them. Elements in a package are not considered included simply
because a Note An implementation of this method typically performs
an internal conversion from the runtime reflective
representation of an annotation interface as a
| |
| getElementsAnnotatedWithAny | back to summary |
|---|---|
| public Set Overrides default javax. Doc from javax. Returns the elements annotated with one or more of the given annotation interfaces.
| |
| getElementsAnnotatedWithAny | back to summary |
|---|---|
| public Set Overrides default javax. Doc from javax. Returns the elements annotated with one or more of the given annotation interfaces. Note An implementation of this method typically performs
an internal conversion from the runtime reflective
representation of an annotation interface as a
| |
| getRootElements | back to summary |
|---|---|
| public Set Implements javax. Returns the type elements specified by the prior round. | |
| mirrorAsElement | back to summary |
|---|---|
| private Element mirrorAsElement(AnnotationMirror annotationMirror) | |
| processingOver | back to summary |
|---|---|
| public boolean processingOver() Implements javax. Doc from javax. Returns
| |
| throwIfNotAnnotation | back to summary |
|---|---|
| private void throwIfNotAnnotation(Class<? extends Annotation> a) | |
| throwIfNotAnnotation | back to summary |
|---|---|
| private void throwIfNotAnnotation(TypeElement a) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Set | scan(Element e, Set<TypeElement> annotations)
Overrides javax. Processes an element by calling |
| public Set | visitModule(ModuleElement e, Set<TypeElement> annotations)
Overrides javax. Overrides default javax. Visits a module element. |
| public Set | visitPackage(PackageElement e, Set<TypeElement> annotations)
Overrides javax. Implements javax. Visits a package element. |
| annotatedElements | back to summary |
|---|---|
| private Set<Element> annotatedElements | |
| AnnotationSetMultiScanner | back to summary |
|---|---|
| pack-priv AnnotationSetMultiScanner(Set<Element> defaultSet) | |
| scan | back to summary |
|---|---|
| public Set Overrides javax. Doc from javax. Processes an element by calling
| |
| visitModule | back to summary |
|---|---|
| public Set Overrides javax. Overrides default javax. Doc from javax. Visits a module element.
| |
| visitPackage | back to summary |
|---|---|
| public Set Overrides javax. Implements javax. Doc from javax. Visits a package element.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Set | scan(Element e, TypeElement annotation)
Overrides javax. Processes an element by calling |
| public Set | visitModule(ModuleElement e, TypeElement annotation)
Overrides javax. Overrides default javax. Visits a module element. |
| public Set | visitPackage(PackageElement e, TypeElement annotation)
Overrides javax. Implements javax. Visits a package element. |
| annotatedElements | back to summary |
|---|---|
| private Set<Element> annotatedElements | |
| AnnotationSetScanner | back to summary |
|---|---|
| pack-priv AnnotationSetScanner(Set<Element> defaultSet) | |
| scan | back to summary |
|---|---|
| public Set Overrides javax. Doc from javax. Processes an element by calling
| |
| visitModule | back to summary |
|---|---|
| public Set Overrides javax. Overrides default javax. Doc from javax. Visits a module element.
| |
| visitPackage | back to summary |
|---|---|
| public Set Overrides javax. Implements javax. Doc from javax. Visits a package element.
| |