Package io.micronaut.aot.core.codegen
Class AbstractSingleClassFileGenerator
java.lang.Object
io.micronaut.aot.core.codegen.AbstractCodeGenerator
io.micronaut.aot.core.codegen.AbstractSingleClassFileGenerator
- All Implemented Interfaces:
AOTCodeGenerator
- Direct Known Subclasses:
LogbackConfigurationSourceGenerator
,MapPropertySourceGenerator
Base class for source generators which generate a single class file.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract com.squareup.javapoet.JavaFile
generate()
void
generate
(@NonNull AOTContext context) protected final AOTContext
final @NonNull com.squareup.javapoet.JavaFile
javaFile
(com.squareup.javapoet.TypeSpec typeSpec) Methods inherited from class io.micronaut.aot.core.codegen.AbstractCodeGenerator
simpleNameOf, staticMethod, staticMethodBuilder
-
Constructor Details
-
AbstractSingleClassFileGenerator
public AbstractSingleClassFileGenerator()
-
-
Method Details
-
generate
protected abstract com.squareup.javapoet.JavaFile generate() -
generate
-
getContext
-
javaFile
@NonNull public final @NonNull com.squareup.javapoet.JavaFile javaFile(com.squareup.javapoet.TypeSpec typeSpec)
-