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

java.lang.Object
  继承者 org.eclipse.jdt.internal.compiler.apt.dispatch.RoundEnvImpl
所有已实现的接口:
javax.annotation.processing.RoundEnvironment

public class RoundEnvImpl
extends Object
implements javax.annotation.processing.RoundEnvironment


构造方法摘要
RoundEnvImpl(CompilationUnitDeclaration[] units, ReferenceBinding[] binaryTypeBindings, boolean isLastRound, BaseProcessingEnvImpl env)
           
 
方法摘要
 boolean errorRaised()
           
 Set<? extends javax.lang.model.element.Element> getElementsAnnotatedWith(Class<? extends Annotation> a)
           
 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.
 Set<javax.lang.model.element.TypeElement> getRootAnnotations()
          Return the set of annotation types that were discovered on the root elements.
 Set<? extends javax.lang.model.element.Element> getRootElements()
           
 boolean processingOver()
           
 
从类 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 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.

返回:
a set of annotation types, possibly empty.

errorRaised

public boolean errorRaised()
指定者:
接口 javax.annotation.processing.RoundEnvironment 中的 errorRaised

getElementsAnnotatedWith

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

指定者:
接口 javax.annotation.processing.RoundEnvironment 中的 getElementsAnnotatedWith

getElementsAnnotatedWith

public Set<? extends javax.lang.model.element.Element> getElementsAnnotatedWith(Class<? extends Annotation> a)
指定者:
接口 javax.annotation.processing.RoundEnvironment 中的 getElementsAnnotatedWith

getRootElements

public Set<? extends javax.lang.model.element.Element> getRootElements()
指定者:
接口 javax.annotation.processing.RoundEnvironment 中的 getRootElements

processingOver

public boolean processingOver()
指定者:
接口 javax.annotation.processing.RoundEnvironment 中的 processingOver


Copyright © 2013. All Rights Reserved.