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.
Author
Michel Schinz
Version
1.0
Direct Known Subclasses:
DocNil, DocBreak, DocText, DocGroup, DocNest, DocCons

Method Summary
def :/: (hd : java.lang.String) : Document
def :/: (hd : Document) : Document
def :: (hd : java.lang.String) : Document
def :: (hd : Document) : Document
def format (width : Int, writer : java.io.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 : java.lang.String) : Document

def :/:(hd : Document) : Document

def :/:(hd : java.lang.String) : Document

def format(width : Int, writer : java.io.Writer) : Unit
Format this document on writer and try to set line breaks so that the result fits in width columns.
Parameters
width - ...
writer - ...