Class AnalyzeProcessor

All Implemented Interfaces:
Processor

@SupportedAnnotationTypes("*") @SupportedOptions("verbosity") public class AnalyzeProcessor extends AbstractTentackleProcessor
Annotation Processor for all annotations annotated with Analyze.
Author:
harald
  • Field Details

    • COMPILE_ERROR_LOG

      public static final String COMPILE_ERROR_LOG
      Logfile for compilation errors during the analyze-phase.
      The logfile is missing, if no errors where detected. Otherwise, analyze info files may be incomplete or missing.
      See Also:
  • Constructor Details

    • AnalyzeProcessor

      public AnalyzeProcessor()
  • Method Details

    • getProcessingClassLoader

      public ClassLoader getProcessingClassLoader()
      Gets the classloader to be used instead of the default.
      Returns:
      the classloader, never null (fallback to current classloader)
    • setProcessingClassLoader

      public void setProcessingClassLoader(ClassLoader processingClassLoader)
      Sets the classloader to be used instead of the default.
      Parameters:
      processingClassLoader - the classloader, null if default
    • getAnalyzeDir

      public File getAnalyzeDir()
      Gets the generated analyze files directory.
      Returns:
      the output dir
    • setAnalyzeDir

      public void setAnalyzeDir(File outputDir)
      Sets the generated analyze files directory.
      Parameters:
      outputDir - the output dir
    • getServiceDir

      public File getServiceDir()
      Gets the generated services resource directory.
      Returns:
      the resources file dir
    • setServiceDir

      public void setServiceDir(File serviceDir)
      Sets the generated services resource directory.
      Parameters:
      serviceDir - the resource dir
    • process

      public boolean process(Set<? extends TypeElement> annotationTypes, RoundEnvironment roundEnv)

      Processes all annotations that itself or any inherited annotations are annotated with @Analyze. The recursive scan allows annotating only once for a group of annotations.

      Specified by:
      process in interface Processor
      Specified by:
      process in class AbstractProcessor