org.eclipse.jdt.internal.compiler.apt.dispatch
Class RoundEnvImpl

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.apt.dispatch.RoundEnvImpl
All Implemented Interfaces:
RoundEnvironment

public class RoundEnvImpl
extends Object
implements RoundEnvironment


Constructor Summary
RoundEnvImpl(CompilationUnitDeclaration[] units, ReferenceBinding[] binaryTypeBindings, boolean isLastRound, BaseProcessingEnvImpl env)
           
 
Method Summary
 boolean errorRaised()
           
 Set<? extends Element> getElementsAnnotatedWith(Class<? extends Annotation> a)
           
 Set<? extends Element> getElementsAnnotatedWith(TypeElement a)
          From the set of root elements and their enclosed elements, return the subset that are annotated with a.
 Set<TypeElement> getRootAnnotations()
          Return the set of annotation types that were discovered on the root elements.
 Set<? extends Element> getRootElements()
           
 boolean processingOver()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundEnvImpl

public RoundEnvImpl(CompilationUnitDeclaration[] units,
                    ReferenceBinding[] binaryTypeBindings,
                    boolean isLastRound,
                    BaseProcessingEnvImpl env)
Method Detail

getRootAnnotations

public Set<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 RoundEnvironment

getElementsAnnotatedWith

public Set<? extends Element> getElementsAnnotatedWith(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 annotations.Inherited annotation, include those elements that inherit the annotation from their superclasses. Note that annotations.Inherited only applies to classes (i.e. TypeElements).

Specified by:
getElementsAnnotatedWith in interface RoundEnvironment

getElementsAnnotatedWith

public Set<? extends Element> getElementsAnnotatedWith(Class<? extends Annotation> a)
Specified by:
getElementsAnnotatedWith in interface RoundEnvironment

getRootElements

public Set<? extends Element> getRootElements()
Specified by:
getRootElements in interface RoundEnvironment

processingOver

public boolean processingOver()
Specified by:
processingOver in interface RoundEnvironment


Copyright © 2012. All Rights Reserved.