Interface SourceCodeWriter<S extends SourceCode<?,?>>

Type Parameters:
S - the type of source code that can be written by this writer
All Known Implementing Classes:
GroovySourceCodeWriter, JavaSourceCodeWriter, KotlinSourceCodeWriter

public interface SourceCodeWriter<S extends SourceCode<?,?>>
A writer for some SourceCode.
Author:
Andy Wilkinson
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    writeTo(SourceStructure structure, S sourceCode)
    Write, to the given structure, the given sourceCode.
  • Method Details

    • writeTo

      void writeTo(SourceStructure structure, S sourceCode) throws IOException
      Write, to the given structure, the given sourceCode.
      Parameters:
      structure - the SourceStructure beneath which the source code is written
      sourceCode - the source code to write
      Throws:
      IOException - if writing fails