org.eclipse.jdt.internal.compiler.apt.dispatch
Class BaseProcessingEnvImpl
java.lang.Object
org.eclipse.jdt.internal.compiler.apt.dispatch.BaseProcessingEnvImpl
- All Implemented Interfaces:
- ProcessingEnvironment
- Direct Known Subclasses:
- BatchProcessingEnvImpl
public abstract class BaseProcessingEnvImpl
- extends Object
- implements ProcessingEnvironment
Implementation of ProcessingEnvironment that is common to batch and IDE environments.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_filer
protected Filer _filer
_messager
protected Messager _messager
_processorOptions
protected Map<String,String> _processorOptions
_compiler
protected Compiler _compiler
_elementUtils
protected Elements _elementUtils
_typeUtils
protected 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 Elements getElementUtils()
- Specified by:
getElementUtils
in interface ProcessingEnvironment
getFiler
public Filer getFiler()
- Specified by:
getFiler
in interface ProcessingEnvironment
getMessager
public Messager getMessager()
- Specified by:
getMessager
in interface ProcessingEnvironment
getOptions
public Map<String,String> getOptions()
- Specified by:
getOptions
in interface ProcessingEnvironment
getTypeUtils
public Types getTypeUtils()
- Specified by:
getTypeUtils
in interface ProcessingEnvironment
getLookupEnvironment
public LookupEnvironment getLookupEnvironment()
getSourceVersion
public SourceVersion getSourceVersion()
- Specified by:
getSourceVersion
in interface ProcessingEnvironment
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?
- Returns:
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 © 2012. All Rights Reserved.