public abstract class AbstractAnnotationProcessor extends AbstractProcessor
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractAnnotationProcessor.CodeCanvasArtifactAction |
processingEnv| Constructor and Description |
|---|
AbstractAnnotationProcessor() |
getCompletions, getSupportedOptions, isInitializedpublic Set<String> getSupportedAnnotationTypes()
getSupportedAnnotationTypes in interface ProcessorgetSupportedAnnotationTypes in class AbstractProcessorpublic SourceVersion getSupportedSourceVersion()
getSupportedSourceVersion in interface ProcessorgetSupportedSourceVersion in class AbstractProcessorpublic void init(ProcessingEnvironment processingEnv)
init in interface Processorinit in class AbstractProcessorpublic boolean process(Set<? extends TypeElement> typeElements, RoundEnvironment roundEnv)
process in interface Processorprocess in class AbstractProcessorprotected abstract Class<? extends Annotation> annotationType()
protected abstract boolean shouldProcessMethods()
protected abstract boolean shouldProcessTypes()
protected Stream<CodeCanvasArtifact> toArtifactList(TypeInfo typeInfo)
protected Stream<CodeCanvasArtifact> toArtifactList(TypeInfo typeInfo, MethodInfo methodInfo)
protected void beforeWrite(CodeCanvasArtifact artifact)
protected Object compileAndInstantiate(SimpleTypeInfo typeInfo) throws ClassNotFoundException
ClassNotFoundExceptionprotected void info(String msg)
protected String name()
protected boolean processReturnOnError(Set<? extends TypeElement> typeElements, RoundEnvironment roundEnv, Throwable e)
protected boolean processReturnOnSuccess(Set<? extends TypeElement> typeElements, RoundEnvironment roundEnv)
Copyright © 2015. All rights reserved.