@SupportedSourceVersion(value=RELEASE_8) public class BeanProcessor extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
private static String |
MODULE_CONFIG_FILE_NAME
The module config file name.
|
private static String |
MODULE_CONFIG_PATH
The module config path.
|
processingEnv| Constructor and Description |
|---|
BeanProcessor() |
| Modifier and Type | Method and Description |
|---|---|
private void |
error(Element source,
String msg)
Error.
|
private String |
getClassName(Element element)
Gets the class name.
|
private String |
getClassName(TypeMirror t)
Gets the class name.
|
Set<String> |
getSupportedAnnotationTypes() |
void |
init(ProcessingEnvironment processingEnv) |
private void |
loadTemplate(String fqClassName)
Load template.
|
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
getCompletions, getSupportedOptions, getSupportedSourceVersion, isInitializedprivate static String MODULE_CONFIG_PATH
private static String MODULE_CONFIG_FILE_NAME
public void init(ProcessingEnvironment processingEnv)
init in interface Processorinit in class AbstractProcessorpublic Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes in interface ProcessorgetSupportedAnnotationTypes in class AbstractProcessorpublic boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessorprivate String getClassName(Element element)
element - the elementprivate String getClassName(TypeMirror t)
t - the tprivate void error(Element source, String msg)
source - the sourcemsg - the msgprivate void loadTemplate(String fqClassName) throws IOException
fqClassName - the fq class nameIOException - Signals that an I/O exception has occurred.Copyright © 2011–2016 JRebirth OSS. All rights reserved.