public abstract class BaseProcessor extends AbstractProcessor
| Modifier and Type | Field and Description |
|---|---|
protected int |
count |
static boolean |
DEBUG_MODE
if we want to display debug info
|
static Elements |
elementUtils |
protected HashSet<String> |
excludedMethods |
protected Filer |
filer |
protected Map<String,TypeElement> |
globalBeanElements
define which annotation the annotation processor is interested in
|
static boolean |
JUNIT_TEST_MODE
if true we are in a test
|
protected static Logger |
logger
logger
|
protected Messager |
messager |
protected Types |
typeUtils |
processingEnv| Constructor and Description |
|---|
BaseProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
error(Element e,
String msg,
Object... args) |
SourceVersion |
getSupportedSourceVersion() |
protected void |
info(String msg,
Object... args) |
void |
init(ProcessingEnvironment processingEnv) |
protected void |
parseBindType(RoundEnvironment roundEnv,
Elements elements)
build bindType elements map
|
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized, processprotected int count
protected final Map<String,TypeElement> globalBeanElements
protected Types typeUtils
public static boolean JUNIT_TEST_MODE
public static boolean DEBUG_MODE
protected static Logger logger
public static Elements elementUtils
protected Filer filer
protected Messager messager
protected void parseBindType(RoundEnvironment roundEnv, Elements elements)
roundEnv - public void init(ProcessingEnvironment processingEnv)
init in interface Processorinit in class AbstractProcessorpublic SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface ProcessorgetSupportedSourceVersion in class AbstractProcessorCopyright © 2017. All rights reserved.