java.lang.Object
javax.annotation.processing.AbstractProcessor
io.helidon.builder.processor.BuilderProcessor
- All Implemented Interfaces:
Processor
The processor for handling any annotation having a
BuilderTrigger.-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcodegen(List<TypeAndBody> codegens) Performs the actual code generation of the given type and body model object.voidinit(ProcessingEnvironment processingEnv) protected voidprocess(Class<? extends Annotation> annoType, Element element) Process the annotation for the given element.booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions, isInitialized
-
Constructor Details
-
BuilderProcessor
public BuilderProcessor()Default constructor.
-
-
Method Details
-
getSupportedAnnotationTypes
- Specified by:
getSupportedAnnotationTypesin interfaceProcessor- Overrides:
getSupportedAnnotationTypesin classAbstractProcessor
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
init
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-
process
Process the annotation for the given element.- Parameters:
annoType- the annotation that triggered processingelement- the element being processed- Throws:
IOException- if unable to write the generated class
-
codegen
Performs the actual code generation of the given type and body model object.- Parameters:
codegens- the model objects to be code generated- Throws:
IOException- if unable to write the generated class
-