| javax.annotation.processing.RoundEnvironment
All known Subclasses: com.sun.tools.javac.processing.JavacRoundEnvironment,
RoundEnvironment | public interface RoundEnvironment (Code) | | An annotation processing tool framework will
so that the processor can query for
information about a round of annotation processing.
author: Joseph D. Darcy author: Scott Seligman author: Peter von der Ahé version: 1.13 07/05/05 since: 1.6 |
Method Summary | |
boolean | errorRaised() Returns
true if an error was raised in the prior round
of processing; returns
false otherwise. | Set<? extends Element> | getElementsAnnotatedWith(TypeElement a) Returns the elements annotated with the given annotation type.
The annotation may appear directly or be inherited. | Set<? extends Element> | getElementsAnnotatedWith(Class<? extends Annotation> a) Returns the elements annotated with the given annotation type.
The annotation may appear directly or be inherited. | 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. |
errorRaised | boolean errorRaised()(Code) | | Returns
true if an error was raised in the prior round
of processing; returns
false otherwise.
true if an error was raised in the prior roundof processing; returns false otherwise |
getElementsAnnotatedWith | Set<? extends Element> getElementsAnnotatedWith(TypeElement a)(Code) | | Returns the elements annotated with the given annotation type.
The annotation may appear directly or be inherited. Only
package elements and type elements included in this
round of annotation processing, or declarations of members,
constructors, parameters, or type parameters declared within
those, are returned. Included type elements are
and any member types nested within
them. Elements in a package are not considered included simply
because a
package-info file for that package was
created.
Parameters: a - annotation type being requested the elements annotated with the given annotation type,or an empty set if there are none throws: IllegalArgumentException - if the argument does notrepresent an annotation type |
getElementsAnnotatedWith | Set<? extends Element> getElementsAnnotatedWith(Class<? extends Annotation> a)(Code) | | Returns the elements annotated with the given annotation type.
The annotation may appear directly or be inherited. Only
package elements and type elements included in this
round of annotation processing, or declarations of members,
constructors, parameters, or type parameters declared within
those, are returned. Included type elements are
and any member types nested within
them. Elements in a package are not considered included simply
because a
package-info file for that package was
created.
Parameters: a - annotation type being requested the elements annotated with the given annotation type,or an empty set if there are none throws: IllegalArgumentException - if the argument does notrepresent an annotation type |
getRootElements | Set<? extends Element> getRootElements()(Code) | | Returns the root elements for annotation processing generated
by the prior round.
the root elements for annotation processing generatedby the prior round, or an empty set if there were none |
processingOver | boolean processingOver()(Code) | | Returns
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 notbe subject to a subsequent round of annotation processing;returns false otherwise |
|
|