public class JavacRoundEnvironment extends Object implements RoundEnvironment
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 | Method and 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) |
Set<? extends Element> |
getElementsAnnotatedWith(TypeElement a)
Returns the elements annotated with the given annotation type.
|
Set<? extends Element> |
getRootElements()
Returns the type elements specified by the prior round.
|
boolean |
processingOver() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getElementsAnnotatedWithAny, getElementsAnnotatedWithAny
public boolean processingOver()
processingOver
in interface RoundEnvironment
public boolean errorRaised()
true
if an error was raised in the prior round
of processing; returns false
otherwise.errorRaised
in interface RoundEnvironment
true
if an error was raised in the prior round
of processing; returns false
otherwise.public Set<? extends Element> getRootElements()
getRootElements
in interface RoundEnvironment
public Set<? extends Element> getElementsAnnotatedWith(TypeElement a)
getElementsAnnotatedWith
in interface RoundEnvironment
a
- annotation type being requestedpublic Set<? extends Element> getElementsAnnotatedWith(Class<? extends Annotation> a)
getElementsAnnotatedWith
in interface RoundEnvironment
Copyright © 2017 earcam. All rights reserved.