public abstract class AbstractMapperProcessor extends AbstractProcessor
Abstract AbstractMapperProcessor class.
| Modifier and Type | Field and Description |
|---|---|
static Elements |
elementUtils
Constant
elementUtils |
static Filer |
filer
Constant
filer |
protected Set<? extends Element> |
mappers |
static Messager |
messager
Constant
messager |
protected Set<? extends Element> |
readers |
static Types |
typeUtils
Constant
typeUtils |
protected Set<? extends Element> |
writers |
processingEnv| Constructor and Description |
|---|
AbstractMapperProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
doProcess(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv)
doProcess.
|
Set<String> |
getSupportedAnnotationTypes() |
SourceVersion |
getSupportedSourceVersion() |
protected void |
handleError(Exception e)
handleError.
|
void |
init(ProcessingEnvironment processingEnv) |
boolean |
process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) |
protected abstract List<Class<?>> |
supportedAnnotations()
supportedAnnotations.
|
getCompletions, getSupportedOptions, isInitializedpublic static Messager messager
messagerpublic static Types typeUtils
typeUtilspublic static Filer filer
filerpublic static Elements elementUtils
elementUtilspublic void init(ProcessingEnvironment processingEnv)
init in interface Processorinit in class AbstractProcessorpublic boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessorprotected abstract boolean doProcess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
doProcess.
annotations - a Set object.roundEnv - a RoundEnvironment object.protected void handleError(Exception e)
handleError.
e - a Exception object.public Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes in interface ProcessorgetSupportedAnnotationTypes in class AbstractProcessorpublic SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface ProcessorgetSupportedSourceVersion in class AbstractProcessorCopyright © 2020. All rights reserved.