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

public abstract class AbstractCodeGenerator extends Object implements AOTCodeGenerator
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 Details

    • AbstractCodeGenerator

      public AbstractCodeGenerator()
  • Method Details

    • simpleNameOf

      public static String simpleNameOf(String fqcn)
    • staticMethodBuilder

      protected static com.squareup.javapoet.MethodSpec staticMethodBuilder(String name, Consumer<? super com.squareup.javapoet.MethodSpec.Builder> consumer)
    • staticMethod

      protected static com.squareup.javapoet.MethodSpec staticMethod(String name, Consumer<? super com.squareup.javapoet.CodeBlock.Builder> body)