Interface SourceGenerator

All Known Implementing Classes:
GroovyPoetSourceGenerator, JavaPoetSourceGenerator

public interface SourceGenerator
Source code generator.
Since:
1.0
Author:
Denis Stepanov
  • Method Summary

    Modifier and Type
    Method
    Description
    io.micronaut.inject.visitor.VisitorContext.Language
     
    void
    write(ObjectDef objectDef, Writer writer)
    Write the source code.
  • Method Details

    • getLanguage

      io.micronaut.inject.visitor.VisitorContext.Language getLanguage()
      Returns:
      The source language of the generator
    • write

      void write(ObjectDef objectDef, Writer writer) throws IOException
      Write the source code.
      Parameters:
      objectDef - The object definition
      writer - The writer
      Throws:
      IOException - The IO exception