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 |
|---|---|
void |
clear() |
void |
error(Element e,
String msg,
Object... args) |
Set<Element> |
filter(RoundEnvironment roundEnv) |
protected abstract Set<Class<? extends Annotation>> |
getSupportedAnnotationClasses() |
Set<String> |
getSupportedAnnotationTypes() |
SourceVersion |
getSupportedSourceVersion() |
boolean |
hasWorkInThisRound(RoundEnvironment roundEnv) |
void |
info(String msg,
Object... args) |
void |
init(ProcessingEnvironment processingEnv) |
protected void |
parseBindType(RoundEnvironment roundEnv)
build bindType elements map
|
getCompletions, getSupportedOptions, isInitialized, processpublic static boolean DEBUG_MODE
public static Elements elementUtils
public static boolean JUNIT_TEST_MODE
protected static Logger logger
protected int count
protected Filer filer
protected final Map<String,TypeElement> globalBeanElements
protected Messager messager
protected Types typeUtils
public void clear()
public Set<Element> filter(RoundEnvironment roundEnv)
protected abstract Set<Class<? extends Annotation>> getSupportedAnnotationClasses()
public Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes in interface ProcessorgetSupportedAnnotationTypes in class AbstractProcessorpublic SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface ProcessorgetSupportedSourceVersion in class AbstractProcessorpublic boolean hasWorkInThisRound(RoundEnvironment roundEnv)
public void init(ProcessingEnvironment processingEnv)
init in interface Processorinit in class AbstractProcessorprotected void parseBindType(RoundEnvironment roundEnv)
roundEnv - Copyright © 2017. All rights reserved.