public abstract class AbstractAnnotationProcessor<A extends Annotation> extends AbstractProcessor
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractAnnotationProcessor.CheckedConsumer<T> |
Modifier and Type | Field and Description |
---|---|
protected Class<A> |
clazz |
processingEnv
Modifier | Constructor and Description |
---|---|
protected |
AbstractAnnotationProcessor(Class<A> clazz) |
Modifier and Type | Method and Description |
---|---|
protected String |
generateCodeGeneratedInfo(TypeElement typeElement) |
protected String |
generateCodeGeneratedInfo(TypeElement typeElement,
String additionalLines) |
protected Object |
generateCodeGeneratedInfoForHandlebarsTemplate(TypeElement typeElement,
String template) |
protected Class<? extends Annotation> |
getAnnotationClass() |
protected String |
getResourceName(TypeElement typeElement) |
protected void |
writeClass(com.squareup.javapoet.JavaFile javaFile) |
protected void |
writeClass(TypeElement typeElement,
io.sphere.sdk.annotations.processors.ClassModel classModel) |
protected void |
writeClass(TypeElement typeElement,
String fullyQualifiedName,
AbstractAnnotationProcessor.CheckedConsumer<Writer> writerCheckedConsumer) |
protected void |
writeClass(TypeElement typeElement,
String fullyQualifiedName,
String template,
Map<String,Object> values) |
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, getSupportedSourceVersion, init, isInitialized, process
protected final Class<A extends Annotation> clazz
protected final Class<? extends Annotation> getAnnotationClass()
protected final void writeClass(TypeElement typeElement, String fullyQualifiedName, String template, Map<String,Object> values)
protected final void writeClass(TypeElement typeElement, io.sphere.sdk.annotations.processors.ClassModel classModel)
protected final void writeClass(com.squareup.javapoet.JavaFile javaFile)
protected final void writeClass(TypeElement typeElement, String fullyQualifiedName, AbstractAnnotationProcessor.CheckedConsumer<Writer> writerCheckedConsumer)
protected String generateCodeGeneratedInfo(TypeElement typeElement, String additionalLines)
protected String generateCodeGeneratedInfo(TypeElement typeElement)
protected Object generateCodeGeneratedInfoForHandlebarsTemplate(TypeElement typeElement, String template)
protected final String getResourceName(TypeElement typeElement)