Module aya.pretty

Interface Printer<Out,Config extends PrinterConfig>

All Known Implementing Classes:
DocHtmlPrinter, DocMdPrinter, DocTermPrinter, DocTeXPrinter, StringPrinter

public interface Printer<Out,Config extends PrinterConfig>
This class was designed to support various PrettyPrint backend. Example usage:
   public class HtmlPrinter implements Printer[HtmlPrinterConfig] {}
 

For a more practical example, see StringPrinter

  • Method Summary

    Modifier and Type
    Method
    Description
    render(Config config, @NotNull Doc doc)
    Render a Doc object with a config.
  • Method Details

    • render

      @NotNull Out render(@NotNull Config config, @NotNull @NotNull Doc doc)
      Render a Doc object with a config.
      Parameters:
      config - printer config
      doc - doc object
      Returns:
      rendered content