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

java.lang.Object
  继承者 org.eclipse.jdt.internal.compiler.apt.dispatch.BaseProcessingEnvImpl
所有已实现的接口:
javax.annotation.processing.ProcessingEnvironment
直接已知子类:
BatchProcessingEnvImpl

public abstract class BaseProcessingEnvImpl
extends Object
implements javax.annotation.processing.ProcessingEnvironment

Implementation of ProcessingEnvironment that is common to batch and IDE environments.


字段摘要
protected  Compiler _compiler
           
protected  javax.lang.model.util.Elements _elementUtils
           
protected  javax.annotation.processing.Filer _filer
           
protected  javax.annotation.processing.Messager _messager
           
protected  Map<String,String> _processorOptions
           
protected  javax.lang.model.util.Types _typeUtils
           
 
构造方法摘要
BaseProcessingEnvImpl()
           
 
方法摘要
 void addNewClassFile(ReferenceBinding binding)
           
 void addNewUnit(ICompilationUnit unit)
           
 boolean errorRaised()
          Has an error been raised in any of the rounds of processing in this build?
 Compiler getCompiler()
           
 ICompilationUnit[] getDeletedUnits()
           
 javax.lang.model.util.Elements getElementUtils()
           
 Factory getFactory()
           
 javax.annotation.processing.Filer getFiler()
           
 LookupEnvironment getLookupEnvironment()
           
 javax.annotation.processing.Messager getMessager()
           
 ReferenceBinding[] getNewClassFiles()
           
 ICompilationUnit[] getNewUnits()
           
 Map<String,String> getOptions()
           
 javax.lang.model.SourceVersion getSourceVersion()
           
 javax.lang.model.util.Types getTypeUtils()
           
 void reset()
          Called when AnnotationProcessorManager has retrieved the list of newly generated compilation units (ie, once per round)
 void setErrorRaised(boolean b)
          Set or clear the errorRaised flag.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 javax.annotation.processing.ProcessingEnvironment 继承的方法
getLocale
 

字段详细信息

_filer

protected javax.annotation.processing.Filer _filer

_messager

protected javax.annotation.processing.Messager _messager

_processorOptions

protected Map<String,String> _processorOptions

_compiler

protected Compiler _compiler

_elementUtils

protected javax.lang.model.util.Elements _elementUtils

_typeUtils

protected javax.lang.model.util.Types _typeUtils
构造方法详细信息

BaseProcessingEnvImpl

public BaseProcessingEnvImpl()
方法详细信息

addNewUnit

public void addNewUnit(ICompilationUnit unit)

addNewClassFile

public void addNewClassFile(ReferenceBinding binding)

getCompiler

public Compiler getCompiler()

getDeletedUnits

public ICompilationUnit[] getDeletedUnits()

getNewUnits

public ICompilationUnit[] getNewUnits()

getElementUtils

public javax.lang.model.util.Elements getElementUtils()
指定者:
接口 javax.annotation.processing.ProcessingEnvironment 中的 getElementUtils

getFiler

public javax.annotation.processing.Filer getFiler()
指定者:
接口 javax.annotation.processing.ProcessingEnvironment 中的 getFiler

getMessager

public javax.annotation.processing.Messager getMessager()
指定者:
接口 javax.annotation.processing.ProcessingEnvironment 中的 getMessager

getOptions

public Map<String,String> getOptions()
指定者:
接口 javax.annotation.processing.ProcessingEnvironment 中的 getOptions

getTypeUtils

public javax.lang.model.util.Types getTypeUtils()
指定者:
接口 javax.annotation.processing.ProcessingEnvironment 中的 getTypeUtils

getLookupEnvironment

public LookupEnvironment getLookupEnvironment()

getSourceVersion

public javax.lang.model.SourceVersion getSourceVersion()
指定者:
接口 javax.annotation.processing.ProcessingEnvironment 中的 getSourceVersion

reset

public void reset()
Called when AnnotationProcessorManager has retrieved the list of newly generated compilation units (ie, once per round)


errorRaised

public boolean errorRaised()
Has an error been raised in any of the rounds of processing in this build?

返回:

setErrorRaised

public void setErrorRaised(boolean b)
Set or clear the errorRaised flag. Typically this will be set by the Messager when an error has been raised, and it will never be cleared.


getFactory

public Factory getFactory()

getNewClassFiles

public ReferenceBinding[] getNewClassFiles()


Copyright © 2013. All Rights Reserved.