scala.text
class Document

[source: `scala/text/Document.scala`]

`abstract` `class` Document
  `extends` AnyRef

  A basic pretty-printing library, based on Lindig's strict version of Wadler's adaptation of Hughes' pretty-printer.

Version
  1.0
Author
  Michel Schinz

Direct Known Subclasses:
  DocNil, DocBreak, DocText, DocGroup, DocNest, DocCons

Method Summary
`def` | :/: (hd : Document) : Document
`def` | :/: (hd : String) : Document
`def` | :: (hd : Document) : Document
`def` | :: (hd : String) : Document
`def` | format (width : Int, writer : Writer) : Unit Format this document on WRITER and try to set line breaks so that the result fits in WIDTH columns.

Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized

Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf

Method Details

`` `def` ::(hd : Document) : Document

`` `def` ::(hd : String) : Document

`` `def` :/:(hd : Document) : Document

`` `def` :/:(hd : String) : Document

`` `def` format(width : Int, writer : Writer) : Unit

  Format this document on WRITER and try to set line breaks so that the result fits in WIDTH columns.

Parameters
  `width -` ...
  `writer -` ...