Class MainGenerator

java.lang.Object
javax.annotation.processing.AbstractProcessor
core.support.annotation.processor.MainGenerator
All Implemented Interfaces:
Processor

@SupportedAnnotationTypes("core.support.annotation.Module") @SupportedSourceVersion(RELEASE_6) @AutoService(Processor.class) public class MainGenerator extends AbstractProcessor
  • Field Details

  • Constructor Details

    • MainGenerator

      public MainGenerator()
  • Method Details

    • process

      public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
      Specified by:
      process in interface Processor
      Specified by:
      process in class AbstractProcessor
    • runAnnotation

      public static boolean runAnnotation()
    • createMarkerClass

      protected static void createMarkerClass()
      files created: src_dir.txt, marker.marker a marker class is to indicate when the generated files have been created used for comparison with the class files. if class files are newer, than the marker class, then regenerate the code
    • getRootPath_reverseNavigation

      public static File getRootPath_reverseNavigation(File dir, String name)
      navigates backwards from dir location to find the directory where file name is located
      Parameters:
      dir -
      name -
      Returns:
    • disableConsoleLogging

      public static void disableConsoleLogging()
      disable console log for annotation generation if annotations are running, without compilation error, then console log will be disabled