Klasse AbstractAnnotationProcessorManager
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.AbstractAnnotationProcessorManager
- Bekannte direkte Unterklassen:
BaseAnnotationProcessorManager
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidcleanUp()Final cleanup after all rounds have completed.protected abstract voidabstract voidConfigure the receiver using the given batch compiler and the given options.abstract voidconfigureFromPlatform(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 voidprocessAnnotations(CompilationUnitDeclaration[] units, ReferenceBinding[] referenceBindings, boolean isLastRound) Run a new annotation processing round on the given values.abstract voidreset()Reinitialize the receiverabstract voidsetErr(PrintWriter err) Set the print writer for the standard error.abstract voidsetOut(PrintWriter out) Set the print writer for the standard output.abstract voidsetProcessors(Object[] processors) Set the processors for annotation processing.
-
Konstruktordetails
-
AbstractAnnotationProcessorManager
public AbstractAnnotationProcessorManager()
-
-
Methodendetails
-
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).- Parameter:
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.- Parameter:
compiler- the given compilercompilationUnitLocator- the given compilation unit locatorjavaProject- the given java projectisTestCode-
-
setOut
Set the print writer for the standard output.- Parameter:
out- the given print writer for output
-
setErr
Set the print writer for the standard error.- Parameter:
err- the given print writer for error
-
getNewUnits
Return the new units created in the last round.- Gibt zurück:
- the new units created in the last round
-
getNewClassFiles
Return the new binary bindings created in the last round.- Gibt zurück:
- the new binary bindings created in the last round
-
getDeletedUnits
Returns the deleted units.- Gibt zurück:
- 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.- Parameter:
units- the given source typereferenceBindings- the given binary typesisLastRound- flag to notify the last round
-
setProcessors
Set the processors for annotation processing.- Parameter:
processors- the given processors
-
closeClassLoader
protected abstract void closeClassLoader()
-