Class AnalyzeProcessor

  • All Implemented Interfaces:
    javax.annotation.processing.Processor

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

      Fields 
      Modifier and Type Field Description
      static java.lang.String COMPILE_ERROR_LOG
      Logfile for compilation errors during the analyze phase.
      The logfile is missing, if no errors where detected.
      • Fields inherited from class javax.annotation.processing.AbstractProcessor

        processingEnv
    • Field Detail

      • COMPILE_ERROR_LOG

        public static final java.lang.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:
        Constant Field Values
    • Constructor Detail

      • AnalyzeProcessor

        public AnalyzeProcessor()
    • Method Detail

      • getProcessingClassLoader

        public java.lang.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​(java.lang.ClassLoader processingClassLoader)
        Sets the classloader to be used instead of the default.
        Parameters:
        processingClassLoader - the classloader, null if default
      • getAnalyzeDir

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

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

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

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

        public boolean process​(java.util.Set<? extends javax.lang.model.element.TypeElement> annotationTypes,
                               javax.annotation.processing.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 javax.annotation.processing.Processor
        Specified by:
        process in class javax.annotation.processing.AbstractProcessor