Class Formatting.LineFormatter

java.lang.Object
io.micronaut.openapi.generator.Formatting.LineFormatter
All Implemented Interfaces:
com.samskivert.mustache.Mustache.Lambda
Enclosing class:
Formatting

public static class Formatting.LineFormatter extends Object implements com.samskivert.mustache.Mustache.Lambda
A formatter that is responsible for removing extra empty lines in mustache files.
  • Constructor Details

    • LineFormatter

      public LineFormatter(int maxEmptyLines)
      Create the lambda.
      Parameters:
      maxEmptyLines - maximal empty lines.
  • Method Details

    • execute

      public void execute(com.samskivert.mustache.Template.Fragment fragment, Writer writer) throws IOException
      Description copied from interface: com.samskivert.mustache.Mustache.Lambda
      Executes this lambda on the supplied template fragment. The lambda should write its results to out.
      Specified by:
      execute in interface com.samskivert.mustache.Mustache.Lambda
      Parameters:
      fragment - the fragment of the template that was passed to the lambda.
      writer - the writer to which the lambda should write its output.
      Throws:
      IOException