Class JavaPoetSourceGenerator

java.lang.Object
io.micronaut.sourcegen.JavaPoetSourceGenerator
All Implemented Interfaces:
SourceGenerator
Direct Known Subclasses:
GroovyPoetSourceGenerator

@Internal public sealed class JavaPoetSourceGenerator extends Object implements SourceGenerator permits GroovyPoetSourceGenerator
The Java source generator.
Since:
1.0
Author:
Denis Stepanov
  • Constructor Details

    • JavaPoetSourceGenerator

      public JavaPoetSourceGenerator()
  • Method Details

    • getLanguage

      public io.micronaut.inject.visitor.VisitorContext.Language getLanguage()
      Specified by:
      getLanguage in interface SourceGenerator
      Returns:
      The source language of the generator
    • write

      public void write(ObjectDef objectDef, Writer writer) throws IOException
      Description copied from interface: SourceGenerator
      Write the source code.
      Specified by:
      write in interface SourceGenerator
      Parameters:
      objectDef - The object definition
      writer - The writer
      Throws:
      IOException - The IO exception