@SupportedAnnotationTypes(value="core.support.annotation.Module") @SupportedSourceVersion(value=RELEASE_6) @AutoService(value=javax.annotation.processing.Processor.class) public class MainGenerator extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
static String |
ANNOATION_WORKING_DIR |
static ProcessingEnvironment |
PROCESS_ENV |
processingEnv| Constructor and Description |
|---|
MainGenerator() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
static void |
disableConsoleLogging()
disable console log for annotation generation
if annotations are running, without compilation error, then console log will be disabled
|
static File |
getRootPath_reverseNavigation(File dir,
String name)
navigates backwards from dir location to find the directory where file name is located
|
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
static boolean |
runAnnotation() |
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitializedpublic static ProcessingEnvironment PROCESS_ENV
public static String ANNOATION_WORKING_DIR
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessorpublic static boolean runAnnotation()
protected static void createMarkerClass()
public static File getRootPath_reverseNavigation(File dir, String name)
dir - name - public static void disableConsoleLogging()
Copyright © 2021. All rights reserved.