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

public abstract class AbstractSingleClassFileGenerator extends AbstractCodeGenerator
Base class for source generators which generate a single class file.
  • Constructor Details

    • AbstractSingleClassFileGenerator

      public AbstractSingleClassFileGenerator()
  • Method Details

    • generate

      protected abstract com.squareup.javapoet.JavaFile generate()
    • generate

      public void generate(@NonNull @NonNull AOTContext context)
    • getContext

      protected final AOTContext getContext()
    • javaFile

      @NonNull public final @NonNull com.squareup.javapoet.JavaFile javaFile(com.squareup.javapoet.TypeSpec typeSpec)