Package io.micronaut.openapi.generator
Class Formatting.IndentFormatter
java.lang.Object
io.micronaut.openapi.generator.Formatting.IndentFormatter
- All Implemented Interfaces:
com.samskivert.mustache.Mustache.Lambda
- Enclosing class:
- Formatting
public static class Formatting.IndentFormatter
extends Object
implements com.samskivert.mustache.Mustache.Lambda
A lambda that allows indenting its contents.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
IndentFormatter
public IndentFormatter(int indentSize)
-
-
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 toout
.- Specified by:
execute
in interfacecom.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
-