Class BatchAnnotationProcessorManager
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.AbstractAnnotationProcessorManager
org.aspectj.org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager
org.aspectj.org.eclipse.jdt.internal.compiler.apt.dispatch.BatchAnnotationProcessorManager
- All Implemented Interfaces:
IProcessorProvider
Java 6 annotation processor manager used when compiling from the command line
or via the javax.tools.JavaCompiler interface.
- See Also:
org.aspectj.org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager
-
Field Summary
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager
_err, _isFirstRound, _out, _printProcessorInfo, _printRounds, _processingEnv, _processors, _round
-
Constructor Summary
ConstructorDescriptionZero-arg constructor so this object can be easily created via reflection. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
cleanUp()
Final cleanup after all rounds have completed.protected void
void
Configure the receiver using the given batch compiler and the given options.Return the next processor that can be discovered, according to the order and discovery rules of the provider (see, for instance,Processor
.void
Called when a processor throws an exception.void
reset()
Reinitialize the receivervoid
setProcessors(Object[] processors)
Set the processors for annotation processing.Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager
configureFromPlatform, getDeletedUnits, getDiscoveredProcessors, getNewClassFiles, getNewUnits, processAnnotations, setErr, setOut
-
Constructor Details
-
BatchAnnotationProcessorManager
public BatchAnnotationProcessorManager()Zero-arg constructor so this object can be easily created via reflection. A BatchAnnotationProcessorManager cannot be used until itsconfigure(Object, String[])
method has been called.
-
-
Method Details
-
configure
Description copied from class:AbstractAnnotationProcessorManager
Configure the receiver using the given batch compiler and the given options. The parameter batchCompiler is expected to be an instance of the batch compiler. This method is only used for the batch mode. For the IDE mode, please seeAbstractAnnotationProcessorManager.configureFromPlatform(Compiler, Object, Object, boolean)
.- Overrides:
configure
in classBaseAnnotationProcessorManager
- Parameters:
batchCompiler
- the given batch compiler objectcommandLineArguments
- the given options
-
discoverNextProcessor
Description copied from interface:IProcessorProvider
Return the next processor that can be discovered, according to the order and discovery rules of the provider (see, for instance,Processor
.- Returns:
- a ProcessorInfo wrapping an initialized Processor, or
null
if there are no more processors to be discovered.
-
reportProcessorException
Description copied from interface:IProcessorProvider
Called when a processor throws an exception. This may abort compilation, throw an unchecked exception, etc; the caller should not assume that this method will return.- Parameters:
p
- the processor, if known, or null if not.
-
setProcessors
Description copied from class:AbstractAnnotationProcessorManager
Set the processors for annotation processing.- Overrides:
setProcessors
in classBaseAnnotationProcessorManager
- Parameters:
processors
- the given processors
-
cleanUp
protected void cleanUp()Description copied from class:AbstractAnnotationProcessorManager
Final cleanup after all rounds have completed.- Overrides:
cleanUp
in classAbstractAnnotationProcessorManager
-
reset
public void reset()Description copied from class:AbstractAnnotationProcessorManager
Reinitialize the receiver- Overrides:
reset
in classBaseAnnotationProcessorManager
-
closeClassLoader
protected void closeClassLoader()- Specified by:
closeClassLoader
in classAbstractAnnotationProcessorManager
-