|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.javac.processing.JavacRoundEnvironment
public class JavacRoundEnvironment
Object providing state about a prior round of annotation processing.
This is NOT part of any API supported by Sun Microsystems. 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.
| Nested Class Summary | |
|---|---|
private class |
JavacRoundEnvironment.AnnotationSetScanner
|
| Field Summary | |
|---|---|
private boolean |
errorRaised
|
private static java.lang.String |
NOT_AN_ANNOTATION_TYPE
|
private ProcessingEnvironment |
processingEnv
|
private boolean |
processingOver
|
private java.util.Set<? extends Element> |
rootElements
|
| Constructor Summary | |
|---|---|
JavacRoundEnvironment(boolean processingOver,
boolean errorRaised,
java.util.Set<? extends Element> rootElements,
ProcessingEnvironment processingEnv)
|
|
| Method Summary | |
|---|---|
boolean |
errorRaised()
Returns true if an error was raised in the prior round
of processing; returns false otherwise. |
java.util.Set<? extends Element> |
getElementsAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> a)
|
java.util.Set<? extends Element> |
getElementsAnnotatedWith(TypeElement a)
Returns the elements annotated with the given annotation type. |
java.util.Set<? extends Element> |
getRootElements()
Returns the type elements specified 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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final boolean processingOver
private final boolean errorRaised
private final ProcessingEnvironment processingEnv
private final java.util.Set<? extends Element> rootElements
private static final java.lang.String NOT_AN_ANNOTATION_TYPE
| Constructor Detail |
|---|
JavacRoundEnvironment(boolean processingOver,
boolean errorRaised,
java.util.Set<? extends Element> rootElements,
ProcessingEnvironment processingEnv)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean processingOver()
RoundEnvironmenttrue if types generated by this round will not
be subject to a subsequent round of annotation processing;
returns false otherwise.
processingOver in interface RoundEnvironmenttrue if types generated by this round will not
be subject to a subsequent round of annotation processing;
returns false otherwisepublic boolean errorRaised()
true if an error was raised in the prior round
of processing; returns false otherwise.
errorRaised in interface RoundEnvironmenttrue if an error was raised in the prior round
of processing; returns false otherwise.public java.util.Set<? extends Element> getRootElements()
getRootElements in interface RoundEnvironmentpublic java.util.Set<? extends Element> getElementsAnnotatedWith(TypeElement a)
getElementsAnnotatedWith in interface RoundEnvironmenta - annotation type being requested
public java.util.Set<? extends Element> getElementsAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> a)
getElementsAnnotatedWith in interface RoundEnvironmenta - annotation type being requested
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||