Package io.avaje.http.generator.core
Class BaseProcessor
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- io.avaje.http.generator.core.BaseProcessor
-
- All Implemented Interfaces:
Processor
public abstract class BaseProcessor extends AbstractProcessor
-
-
Constructor Summary
Constructors Constructor Description BaseProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Set<String>getSupportedAnnotationTypes()SourceVersiongetSupportedSourceVersion()voidinit(ProcessingEnvironment processingEnv)booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment round)abstract voidwriteControllerAdapter(ProcessingContext ctx, ControllerReader reader)Write the adapter code for the given controller.-
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions
-
-
-
-
Constructor Detail
-
BaseProcessor
public BaseProcessor()
-
-
Method Detail
-
getSupportedSourceVersion
public SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
getSupportedAnnotationTypes
public Set<String> getSupportedAnnotationTypes()
- Specified by:
getSupportedAnnotationTypesin interfaceProcessor- Overrides:
getSupportedAnnotationTypesin classAbstractProcessor
-
init
public void init(ProcessingEnvironment processingEnv)
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment round)
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-
writeControllerAdapter
public abstract void writeControllerAdapter(ProcessingContext ctx, ControllerReader reader) throws IOException
Write the adapter code for the given controller.- Throws:
IOException
-
-