Class AbstractAnnotationProcessorManager
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.AbstractAnnotationProcessorManager
- Direct Known Subclasses:
BaseAnnotationProcessorManager
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
cleanUp()
Final cleanup after all rounds have completed.protected abstract void
abstract void
Configure the receiver using the given batch compiler and the given options.abstract void
configureFromPlatform(Compiler compiler, Object compilationUnitLocator, Object javaProject, boolean isTestCode)
Configure the receiver using the given compiler, the given compilationUnitLocator and the given java project.abstract ICompilationUnit[]
Returns the deleted units.abstract ReferenceBinding[]
Return the new binary bindings created in the last round.abstract ICompilationUnit[]
Return the new units created in the last round.abstract void
processAnnotations(CompilationUnitDeclaration[] units, ReferenceBinding[] referenceBindings, boolean isLastRound)
Run a new annotation processing round on the given values.abstract void
reset()
Reinitialize the receiverabstract void
setErr(PrintWriter err)
Set the print writer for the standard error.abstract void
setOut(PrintWriter out)
Set the print writer for the standard output.abstract void
setProcessors(Object[] processors)
Set the processors for annotation processing.
-
Constructor Details
-
AbstractAnnotationProcessorManager
public AbstractAnnotationProcessorManager()
-
-
Method Details
-
configure
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 seeconfigureFromPlatform(Compiler, Object, Object, boolean)
.- Parameters:
batchCompiler
- the given batch compiler objectoptions
- the given options
-
configureFromPlatform
public abstract void configureFromPlatform(Compiler compiler, Object compilationUnitLocator, Object javaProject, boolean isTestCode)Configure the receiver using the given compiler, the given compilationUnitLocator and the given java project.- Parameters:
compiler
- the given compilercompilationUnitLocator
- the given compilation unit locatorjavaProject
- the given java projectisTestCode
-
-
setOut
Set the print writer for the standard output.- Parameters:
out
- the given print writer for output
-
setErr
Set the print writer for the standard error.- Parameters:
err
- the given print writer for error
-
getNewUnits
Return the new units created in the last round.- Returns:
- the new units created in the last round
-
getNewClassFiles
Return the new binary bindings created in the last round.- Returns:
- the new binary bindings created in the last round
-
getDeletedUnits
Returns the deleted units.- Returns:
- the deleted units
-
reset
public abstract void reset()Reinitialize the receiver -
cleanUp
protected void cleanUp()Final cleanup after all rounds have completed. -
processAnnotations
public abstract void processAnnotations(CompilationUnitDeclaration[] units, ReferenceBinding[] referenceBindings, boolean isLastRound)Run a new annotation processing round on the given values.- Parameters:
units
- the given source typereferenceBindings
- the given binary typesisLastRound
- flag to notify the last round
-
setProcessors
Set the processors for annotation processing.- Parameters:
processors
- the given processors
-
closeClassLoader
protected abstract void closeClassLoader()
-