Class AbstractTentackleProcessor

java.lang.Object
javax.annotation.processing.AbstractProcessor
org.tentackle.buildsupport.AbstractTentackleProcessor
All Implemented Interfaces:
Processor
Direct Known Subclasses:
AnalyzeProcessor

public abstract class AbstractTentackleProcessor extends AbstractProcessor
Abstract tentackle annotation processor.

In order to avoid warnings, annotation processors should be annotated with @SupportedOptions("verbosity").

Author:
harald
  • Constructor Details

    • AbstractTentackleProcessor

      public AbstractTentackleProcessor()
      Creates an annotation processor.
  • Method Details

    • getSupportedSourceVersion

      public SourceVersion getSupportedSourceVersion()
      Specified by:
      getSupportedSourceVersion in interface Processor
      Overrides:
      getSupportedSourceVersion in class AbstractProcessor
    • init

      public void init(ProcessingEnvironment processingEnv)
      Specified by:
      init in interface Processor
      Overrides:
      init in class AbstractProcessor
    • isInfoLogging

      public boolean isInfoLogging()
      Gets whether to log info messages.
      Returns:
      true if info logging
    • isDebugLogging

      public boolean isDebugLogging()
      Gets whether to log debug messages.
      Returns:
      true if debug logging
    • getResourceManager

      public ResourceManager getResourceManager(File directory)
      Gets a resource manager.
      Parameters:
      directory - the base directory
      Returns:
      the resource manager
    • getResourceManagers

      public Collection<ResourceManager> getResourceManagers()
      Gets the resource managers.
      Returns:
      the resource managers, never null
    • cleanup

      public void cleanup() throws IOException
      Closes the resource- and source-manager.
      Throws:
      IOException - if cleanup failed
    • getProcessingEnvironment

      public ProcessingEnvironment getProcessingEnvironment()
      Gets the processing environment.
      Returns:
      the processing environment
    • getSourceDir

      public File getSourceDir()
      Gets the source directory.
      Returns:
      the source file dir
    • setSourceDir

      public void setSourceDir(File sourceDir)
      Sets the source directory.
      Parameters:
      sourceDir - the source dir