org.aspectj.org.eclipse.jdt.internal.compiler.apt.dispatch
Class RoundEnvImpl
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.apt.dispatch.RoundEnvImpl
- All Implemented Interfaces:
- javax.annotation.processing.RoundEnvironment
public class RoundEnvImpl
- extends java.lang.Object
- implements javax.annotation.processing.RoundEnvironment
|
Method Summary |
boolean |
errorRaised()
|
java.util.Set<? extends javax.lang.model.element.Element> |
getElementsAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> a)
|
java.util.Set<? extends javax.lang.model.element.Element> |
getElementsAnnotatedWith(javax.lang.model.element.TypeElement a)
From the set of root elements and their enclosed elements, return the subset that are annotated
with a. |
java.util.Set<javax.lang.model.element.TypeElement> |
getRootAnnotations()
Return the set of annotation types that were discovered on the root elements. |
java.util.Set<? extends javax.lang.model.element.Element> |
getRootElements()
|
boolean |
processingOver()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoundEnvImpl
public RoundEnvImpl(CompilationUnitDeclaration[] units,
ReferenceBinding[] binaryTypeBindings,
boolean isLastRound,
BaseProcessingEnvImpl env)
getRootAnnotations
public java.util.Set<javax.lang.model.element.TypeElement> getRootAnnotations()
- Return the set of annotation types that were discovered on the root elements.
This does not include inherited annotations, only those directly on the root
elements.
- Returns:
- a set of annotation types, possibly empty.
errorRaised
public boolean errorRaised()
- Specified by:
errorRaised in interface javax.annotation.processing.RoundEnvironment
getElementsAnnotatedWith
public java.util.Set<? extends javax.lang.model.element.Element> getElementsAnnotatedWith(javax.lang.model.element.TypeElement a)
- From the set of root elements and their enclosed elements, return the subset that are annotated
with
a. If a is annotated with the Inherited
annotation, include those elements that inherit the annotation from their superclasses.
Note that Inherited only applies to classes (i.e. TypeElements).
- Specified by:
getElementsAnnotatedWith in interface javax.annotation.processing.RoundEnvironment
getElementsAnnotatedWith
public java.util.Set<? extends javax.lang.model.element.Element> getElementsAnnotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> a)
- Specified by:
getElementsAnnotatedWith in interface javax.annotation.processing.RoundEnvironment
getRootElements
public java.util.Set<? extends javax.lang.model.element.Element> getRootElements()
- Specified by:
getRootElements in interface javax.annotation.processing.RoundEnvironment
processingOver
public boolean processingOver()
- Specified by:
processingOver in interface javax.annotation.processing.RoundEnvironment