public class AnnotationProcessor extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
private Class<VALJOConfigure> |
annotationConfigurationClass |
private Class<VALJOGenerate> |
annotationGenerateClass |
private Map<String,String> |
ctrOptions |
private static Logger |
LOGGER |
private Logger |
parentLogger |
private String |
processingEnvClassName |
processingEnv| Constructor and Description |
|---|
AnnotationProcessor()
Constructor called automatically by javac compiler.
|
AnnotationProcessor(Map<String,String> ctrOptions) |
| Modifier and Type | Method and Description |
|---|---|
private void |
generate(TypeElement element,
Configuration configuration,
ResourceLoader resourceLoader) |
private VALJOConfigure |
getClosestConfiguration(Element annotatedInterfaceElement)
Looks for VALJOConfigure in interface and package of interface.
|
Set<String> |
getSupportedAnnotationTypes() |
Set<String> |
getSupportedOptions() |
SourceVersion |
getSupportedSourceVersion() |
void |
init(ProcessingEnvironment pe) |
boolean |
process(Set<? extends TypeElement> annotationElements,
RoundEnvironment roundEnv)
Entry point for javac-compiler when calling into our processor
|
private static String |
trace(Throwable t) |
getCompletions, isInitializedprivate static final Logger LOGGER
private final Class<VALJOGenerate> annotationGenerateClass
private final Class<VALJOConfigure> annotationConfigurationClass
private String processingEnvClassName
private final Logger parentLogger
public AnnotationProcessor()
public void init(ProcessingEnvironment pe)
init in interface Processorinit in class AbstractProcessorpublic Set<String> getSupportedOptions()
getSupportedOptions in interface ProcessorgetSupportedOptions in class AbstractProcessorpublic boolean process(Set<? extends TypeElement> annotationElements, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessorprivate void generate(TypeElement element, Configuration configuration, ResourceLoader resourceLoader) throws Exception
Exceptionprivate VALJOConfigure getClosestConfiguration(Element annotatedInterfaceElement)
annotatedInterfaceElement - The interface that uses the VALJOGen annotation.public Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes in interface ProcessorgetSupportedAnnotationTypes in class AbstractProcessorpublic SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface ProcessorgetSupportedSourceVersion in class AbstractProcessor
Version 2.0.0 generated on 2014-11-22 at 09:45 - (C) 41concepts Aps. Refer to project homepage valjogen.41concepts.com for more information.