Class BaseProcessingEnvImpl
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.apt.dispatch.BaseProcessingEnvImpl
- All Implemented Interfaces:
ProcessingEnvironment
- Direct Known Subclasses:
BatchProcessingEnvImpl
Implementation of ProcessingEnvironment that is common to batch and IDE environments.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNewClassFile(ReferenceBinding binding) voidaddNewUnit(ICompilationUnit unit) booleanHas an error been raised in any of the rounds of processing in this build?getFiler()booleanvoidreset()Called when AnnotationProcessorManager has retrieved the list of newly generated compilation units (ie, once per round)voidsetErrorRaised(boolean b) Set or clear the errorRaised flag.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.annotation.processing.ProcessingEnvironment
getLocale
-
Field Details
-
MINIMAL_REQUIRED_RUNTIME_VERSION
The minimal required Java runtime version (we need to run compiler on) -
_filer
-
_messager
-
_processorOptions
-
_compiler
-
_elementUtils
-
_typeUtils
-
_current_module
-
-
Constructor Details
-
BaseProcessingEnvImpl
public BaseProcessingEnvImpl()
-
-
Method Details
-
addNewUnit
-
addNewClassFile
-
getCompiler
-
getDeletedUnits
-
getNewUnits
-
getElementUtils
- Specified by:
getElementUtilsin interfaceProcessingEnvironment
-
getFiler
- Specified by:
getFilerin interfaceProcessingEnvironment
-
getMessager
- Specified by:
getMessagerin interfaceProcessingEnvironment
-
getOptions
- Specified by:
getOptionsin interfaceProcessingEnvironment
-
getTypeUtils
- Specified by:
getTypeUtilsin interfaceProcessingEnvironment
-
getLookupEnvironment
-
getSourceVersion
- Specified by:
getSourceVersionin interfaceProcessingEnvironment
-
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:
- error flag
-
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
-
getNewClassFiles
-
isPreviewEnabled
public boolean isPreviewEnabled()- Specified by:
isPreviewEnabledin interfaceProcessingEnvironment
-
getFileManager
-