Class Codegen
java.lang.Object
io.helidon.codegen.Codegen
Central piece of code processing and generation.
This type loads
extension providers, and invokes
each CodegenExtension with appropriate types and annotations.-
Method Summary
Modifier and TypeMethodDescriptionstatic Codegencreate(CodegenContext ctx, TypeName generator) Create a new instance of the top level Codegen.voidprocess(List<TypeInfo> allTypes, List<ModuleTypeInfo> allModules) Process all types and modules discovered.voidFinish processing.A set of package prefixes (expected to end with a.).A set of annotation types.A set of annotation types that may annotate annotation types.Set of supported options by all extensions.
-
Method Details
-
create
Create a new instance of the top level Codegen. This type discovers allCodegenExtensionProvidersand invokes the providedCodegenExtensionsas needed.- Parameters:
ctx- code processing and generation contextgenerator- type name of the invoking generator (such as maven plugin, annotation procesor, command line tool)- Returns:
- a new codegen instance
-
supportedOptions
-
process
Process all types and modules discovered. This method analyzes the types and modules and invokes each extension with the correct subset.- Parameters:
allTypes- all types for this processing roundallModules- all annotated modules for this processing round
-
processingOver
public void processingOver()Finish processing. No additional rounds will be done. -
supportedAnnotations
-
supportedAnnotationPackagePrefixes
-
supportedMetaAnnotations
-