org.eclipse.jdt.internal.compiler
Class AbstractAnnotationProcessorManager

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.AbstractAnnotationProcessorManager

public abstract class AbstractAnnotationProcessorManager
extends java.lang.Object


Constructor Summary
AbstractAnnotationProcessorManager()
           
 
Method Summary
abstract  void configure(java.lang.Object batchCompiler, java.lang.String[] options)
          Configure the receiver using the given batch compiler and the given options.
abstract  void configureFromPlatform(Compiler compiler, java.lang.Object compilationUnitLocator, java.lang.Object javaProject)
          Configure the receiver using the given compiler, the given compilationUnitLocator and the given java project.
abstract  ICompilationUnit[] getDeletedUnits()
          Returns the deleted units.
abstract  ReferenceBinding[] getNewClassFiles()
          Return the new binary bindings created in the last round.
abstract  ICompilationUnit[] getNewUnits()
          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 receiver
abstract  void setErr(java.io.PrintWriter err)
          Set the print writer for the standard error.
abstract  void setOut(java.io.PrintWriter out)
          Set the print writer for the standard output.
abstract  void setProcessors(java.lang.Object[] processors)
          Set the processors for annotation processing.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAnnotationProcessorManager

public AbstractAnnotationProcessorManager()
Method Detail

configure

public abstract void configure(java.lang.Object batchCompiler,
                               java.lang.String[] options)
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 see configureFromPlatform(Compiler, Object, Object).

Parameters:
batchCompiler - the given batch compiler object
options - the given options

configureFromPlatform

public abstract void configureFromPlatform(Compiler compiler,
                                           java.lang.Object compilationUnitLocator,
                                           java.lang.Object javaProject)
Configure the receiver using the given compiler, the given compilationUnitLocator and the given java project.

Parameters:
compiler - the given compiler
compilationUnitLocator - the given compilation unit locator
javaProject - the given java project

setOut

public abstract void setOut(java.io.PrintWriter out)
Set the print writer for the standard output.

Parameters:
out - the given print writer for output

setErr

public abstract void setErr(java.io.PrintWriter err)
Set the print writer for the standard error.

Parameters:
err - the given print writer for error

getNewUnits

public abstract ICompilationUnit[] getNewUnits()
Return the new units created in the last round.

Returns:
the new units created in the last round

getNewClassFiles

public abstract ReferenceBinding[] getNewClassFiles()
Return the new binary bindings created in the last round.

Returns:
the new binary bindings created in the last round

getDeletedUnits

public abstract ICompilationUnit[] getDeletedUnits()
Returns the deleted units.

Returns:
the deleted units

reset

public abstract void reset()
Reinitialize the receiver


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 type
referenceBindings - the given binary types
isLastRound - flag to notify the last round

setProcessors

public abstract void setProcessors(java.lang.Object[] processors)
Set the processors for annotation processing.

Parameters:
processors - the given processors