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, isInitialized
private 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 Processor
init
in class AbstractProcessor
public Set<String> getSupportedOptions()
getSupportedOptions
in interface Processor
getSupportedOptions
in class AbstractProcessor
public boolean process(Set<? extends TypeElement> annotationElements, RoundEnvironment roundEnv)
process
in interface Processor
process
in class AbstractProcessor
private void generate(TypeElement element, Configuration configuration, ResourceLoader resourceLoader) throws Exception
Exception
private VALJOConfigure getClosestConfiguration(Element annotatedInterfaceElement)
annotatedInterfaceElement
- The interface that uses the VALJOGen annotation.public Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes
in interface Processor
getSupportedAnnotationTypes
in class AbstractProcessor
public SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion
in interface Processor
getSupportedSourceVersion
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.