Package io.micronaut.aot.core.codegen
Class AbstractCodeGenerator
java.lang.Object
io.micronaut.aot.core.codegen.AbstractCodeGenerator
- All Implemented Interfaces:
AOTCodeGenerator
- Direct Known Subclasses:
AbstractSingleClassFileGenerator
,AbstractStaticServiceLoaderSourceGenerator
,ApplicationContextConfigurerGenerator
,CachedEnvironmentSourceGenerator
,ConstantPropertySourcesSourceGenerator
,DeduceEnvironmentSourceGenerator
,EnvironmentPropertiesSourceGenerator
,GraalVMOptimizationFeatureSourceGenerator
,KnownMissingTypesSourceGenerator
,NettyPropertiesSourceGenerator
,PublishersSourceGenerator
,YamlPropertySourceGenerator
Base class for code generators which need access to the generation
context (for example to get a handle on the analyzed application classloader,
or to register resources to be excluded from the final binary).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
simpleNameOf
(String fqcn) protected static com.squareup.javapoet.MethodSpec
staticMethod
(String name, Consumer<? super com.squareup.javapoet.CodeBlock.Builder> body) protected static com.squareup.javapoet.MethodSpec
staticMethodBuilder
(String name, Consumer<? super com.squareup.javapoet.MethodSpec.Builder> consumer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.aot.core.AOTCodeGenerator
generate
-
Constructor Details
-
AbstractCodeGenerator
public AbstractCodeGenerator()
-
-
Method Details
-
simpleNameOf
-
staticMethodBuilder
-
staticMethod
-