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.
-
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
ConstructorsConstructorDescriptionZero-arg constructor so this object can be easily created via reflection. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcleanUp()Final cleanup after all rounds have completed.protected voidvoidConfigure 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.voidCalled when a processor throws an exception.voidreset()Reinitialize the receivervoidsetProcessors(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:AbstractAnnotationProcessorManagerConfigure 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:
configurein classBaseAnnotationProcessorManager- Parameters:
batchCompiler- the given batch compiler objectcommandLineArguments- the given options
-
discoverNextProcessor
Description copied from interface:IProcessorProviderReturn 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
nullif there are no more processors to be discovered.
-
reportProcessorException
Description copied from interface:IProcessorProviderCalled 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:AbstractAnnotationProcessorManagerSet the processors for annotation processing.- Overrides:
setProcessorsin classBaseAnnotationProcessorManager- Parameters:
processors- the given processors
-
cleanUp
protected void cleanUp()Description copied from class:AbstractAnnotationProcessorManagerFinal cleanup after all rounds have completed.- Overrides:
cleanUpin classAbstractAnnotationProcessorManager
-
reset
public void reset()Description copied from class:AbstractAnnotationProcessorManagerReinitialize the receiver- Overrides:
resetin classBaseAnnotationProcessorManager
-
closeClassLoader
protected void closeClassLoader()- Specified by:
closeClassLoaderin classAbstractAnnotationProcessorManager
-