abstract class Machine extends PrettyPrinter
A deterministic abstract state machine defined by its main rule and
called name. Tracing messages are output to the given emitter, which
defaults to standard error. You should avoid accessing a single
machine frmom multiple threads since the machine encapsulates
state and updates. Machines are designed to be used in a single-threaded
fashion.
- Source
- Machine.scala
- Alphabetic
- By Inheritance
- Machine
- PrettyPrinter
- PrettyPrinterBase
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Machine(name: String, emitter: Emitter = new ErrorEmitter)
Type Members
-
type
Indent = Int
Indentation is expressed as integer space units.
Indentation is expressed as integer space units.
- Definition Classes
- PrettyPrinterBase
-
type
Layout = String
The final layout of a document as a string.
The final layout of a document as a string.
- Definition Classes
- PrettyPrinterBase
-
class
ParamState
[T, U] extends State[Map[T, U]]
A parameterised item of abstract state machine state holding values of type
U, associated with parameters of typeT. -
class
ParamUpdate
[T, U] extends Update
An update of a parameterised item of state
sto have the valueuat parametert. -
class
ParamUpdater
[T, U] extends AnyRef
Utility class for updaters for values of parameterised state.
-
class
ScalarUpdate
[T] extends Update
An update of a scalar item of state
sto have the valuet. -
class
State
[T] extends AnyRef
A scalar item of abstract state machine state holding a value of type
Tand calledsname. -
abstract
class
Update
extends AnyRef
An update of an item of state
sto have the valuet. -
type
Width = Int
Output medium width
Output medium width
- Definition Classes
- PrettyPrinterBase
-
class
Doc
extends ((Indent, Width)) ⇒ ((Int, Queue[(Int, (Boolean) ⇒ ((Int) ⇒ Trampoline[Seq[String]]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]])]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]]) ⇒ Trampoline[(Int, Queue[(Int, (Boolean) ⇒ ((Int) ⇒ Trampoline[Seq[String]]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]])]) ⇒ Trampoline[(Int) ⇒ Trampoline[Seq[String]]]] with DocOps
Continuation representation of documents.
Continuation representation of documents.
- Definition Classes
- PrettyPrinter
-
trait
DocOps
extends AnyRef
The operations provided by a pretty-printable document that don't depend on the document's representation type.
The operations provided by a pretty-printable document that don't depend on the document's representation type.
- Definition Classes
- PrettyPrinterBase
-
trait
PrettyPrintable
extends AnyRef
Interface for pretty-printable values.
Interface for pretty-printable values. The default
toDocimplementation just uses thevaluecombinator on the receiver.- Definition Classes
- PrettyPrinterBase
Abstract Value Members
-
abstract
def
main(): Unit
The rule to execute to run one step of this machine.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
align(d: Doc): Doc
Return a document that renders
dwith the nesting level set to the current indentation column.Return a document that renders
dwith the nesting level set to the current indentation column.- Definition Classes
- PrettyPrinterBase
-
def
ampersand: Doc
An ampersand document.
An ampersand document.
- Definition Classes
- PrettyPrinterBase
-
def
angles(d: Doc): Doc
Return a document that encloses a given document between left and right angle brackets.
Return a document that encloses a given document between left and right angle brackets.
- Definition Classes
- PrettyPrinterBase
-
def
any(a: Any): Doc
Generic pretty-printer document for any type of value.
Generic pretty-printer document for any type of value. If
ais aVector,Map,ListorProduct, print it in a prefix list style, with the exception thatNilprints asNil. Tuples are pretty-printed using arrow notation. Strings are pretty-printed surrounded by double quotes. If none of these cases apply, use thetoDocmethod ona.nullprints asnull.- Definition Classes
- PrettyPrinterBase
-
implicit
def
anyToPrettyPrintable(a: Any): PrettyPrintable
Convert any value into a pretty-printable value.
Convert any value into a pretty-printable value. The value will be pretty-printed using the
valuecombinator.- Definition Classes
- PrettyPrinterBase
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asterisk: Doc
An asterisk document.
An asterisk document.
- Definition Classes
- PrettyPrinterBase
-
def
atsign: Doc
An at-sign document.
An at-sign document.
- Definition Classes
- PrettyPrinterBase
-
def
backquote: Doc
A backquote document.
A backquote document.
- Definition Classes
- PrettyPrinterBase
-
def
backslash: Doc
A backslash document.
A backslash document.
- Definition Classes
- PrettyPrinterBase
-
def
braces(d: Doc): Doc
Return a document that encloses a given document between left and right braces.
Return a document that encloses a given document between left and right braces.
- Definition Classes
- PrettyPrinterBase
-
def
brackets(d: Doc): Doc
Return a document that encloses a given document between left and right square brackets.
Return a document that encloses a given document between left and right square brackets.
- Definition Classes
- PrettyPrinterBase
-
def
caret: Doc
A caret document.
A caret document.
- Definition Classes
- PrettyPrinterBase
-
def
cat(ds: Seq[Doc]): Doc
Return a document that concatenates the documents in the given sequence either horizontally with
<>if they fit in the output medium width, or if not, vertically with<@@>.Return a document that concatenates the documents in the given sequence either horizontally with
<>if they fit in the output medium width, or if not, vertically with<@@>.- Definition Classes
- PrettyPrinterBase
-
implicit
def
char(c: Char): Doc
Convert a character to a document.
Convert a character to a document. The character can be a newline.
- Definition Classes
- PrettyPrinterBase
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
colon: Doc
A colon document.
A colon document.
- Definition Classes
- PrettyPrinterBase
-
def
column(f: (Int) ⇒ Doc): Doc
Return the document produced by
fwhen it is passed the column at which rendering is currently placed.Return the document produced by
fwhen it is passed the column at which rendering is currently placed.- Definition Classes
- PrettyPrinter → PrettyPrinterBase
-
def
comma: Doc
A comma document.
A comma document.
- Definition Classes
- PrettyPrinterBase
-
def
debug: Boolean
Debug flag.
Debug flag. Set this to true in sub-classes or objects to obtain tracing information during execution of the machine.
-
val
defaultIndent: Int
Default indentation is four spaces.
Default indentation is four spaces.
- Definition Classes
- PrettyPrinterBase
-
val
defaultWidth: Int
Default layout width is 75 characters.
Default layout width is 75 characters.
- Definition Classes
- PrettyPrinterBase
-
def
dollar: Doc
A dollar sign document.
A dollar sign document.
- Definition Classes
- PrettyPrinterBase
-
def
dot: Doc
A dot (period) document.
A dot (period) document.
- Definition Classes
- PrettyPrinterBase
-
def
dquote: Doc
A double quote document.
A double quote document.
- Definition Classes
- PrettyPrinterBase
-
def
dquotes(d: Doc): Doc
Return a document that encloses a given document between double quotes.
Return a document that encloses a given document between double quotes.
- Definition Classes
- PrettyPrinterBase
-
def
empty: Doc
An empty document.
An empty document. This is a left and right unit for the concatenation method. Called
nilin the paper.- Definition Classes
- PrettyPrinter → PrettyPrinterBase
-
def
enclose(l: Doc, d: Doc, r: Doc): Doc
Return a document that encloses a given document between left and right documents.
Return a document that encloses a given document between left and right documents.
- Definition Classes
- PrettyPrinterBase
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equal: Doc
An equal sign document.
An equal sign document.
- Definition Classes
- PrettyPrinterBase
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
exclamation: Doc
An exclamation mark document.
An exclamation mark document.
- Definition Classes
- PrettyPrinterBase
-
def
fillcat(ds: Seq[Doc]): Doc
Return a document that concatenates the documents in the given sequence horizontally with
<>as long as they fit the output width, then inserts alinebreakand continues to the end of the sequence.Return a document that concatenates the documents in the given sequence horizontally with
<>as long as they fit the output width, then inserts alinebreakand continues to the end of the sequence.- Definition Classes
- PrettyPrinterBase
-
def
fillsep(ds: Seq[Doc], sep: Doc): Doc
Return a document that concatenates the documents in the given sequence horizontally with
<+>as long as they fit the output width, then inserts alineand continues with the rest of the sequence.Return a document that concatenates the documents in the given sequence horizontally with
<+>as long as they fit the output width, then inserts alineand continues with the rest of the sequence. Separates documents with the given separator before the<+>.- Definition Classes
- PrettyPrinterBase
-
def
fillsep(ds: Seq[Doc]): Doc
Return a document that concatenates the documents in the given sequence horizontally with
<+>as long as they fit the output width, then inserts alineand continues with the rest of the sequence.Return a document that concatenates the documents in the given sequence horizontally with
<+>as long as they fit the output width, then inserts alineand continues with the rest of the sequence.- Definition Classes
- PrettyPrinterBase
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
finit(): Unit
Clean up after this machine.
Clean up after this machine. This routine is called after the machine terminates. Default: do nothing.
-
def
folddoc(ds: Seq[Doc], f: (Doc, Doc) ⇒ Doc): Doc
Return a document that is the result of folding
fover the sequenceds.Return a document that is the result of folding
fover the sequenceds. Returns the empty document isdsis empty.- Definition Classes
- PrettyPrinterBase
-
def
forwslash: Doc
A forward slash document.
A forward slash document.
- Definition Classes
- PrettyPrinterBase
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
group(d: Doc): Doc
A document representing a choice among different ways to print a structure.
A document representing a choice among different ways to print a structure.
- Definition Classes
- PrettyPrinter → PrettyPrinterBase
-
def
hang(d: Doc, i: Indent = defaultIndent): Doc
Return a document that is like
dbut whose second and subsequent lines have hanging indentation ofispaces (defaults to the deafult indentation).Return a document that is like
dbut whose second and subsequent lines have hanging indentation ofispaces (defaults to the deafult indentation). In other words, the first line is indented at the current nesting level and the remaining lines are indentedispaces more.- Definition Classes
- PrettyPrinterBase
-
def
hash: Doc
A hash mark document.
A hash mark document.
- Definition Classes
- PrettyPrinterBase
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
hcat(ds: Seq[Doc]): Doc
Return a document that concatenates the documents in the given sequence horizontally with
<>.Return a document that concatenates the documents in the given sequence horizontally with
<>.- Definition Classes
- PrettyPrinterBase
-
def
hsep(ds: Seq[Doc], sep: Doc): Doc
Return a document that concatenates the documents in the given sequence horizontally with
<+>.Return a document that concatenates the documents in the given sequence horizontally with
<+>. Separates documents with the given separator before the<+>.- Definition Classes
- PrettyPrinterBase
-
def
hsep(ds: Seq[Doc]): Doc
Return a document that concatenates the documents in the given sequence horizontally with
<+>.Return a document that concatenates the documents in the given sequence horizontally with
<+>.- Definition Classes
- PrettyPrinterBase
-
def
indent(d: Doc, i: Indent = defaultIndent): Doc
Return a document that is
dbut with the first line indented byimore spaces.Return a document that is
dbut with the first line indented byimore spaces.- Definition Classes
- PrettyPrinterBase
-
def
init(): Unit
Initialise the state of this machine.
Initialise the state of this machine. This routine is called before the first step of the machine is attempted. Any pending state updates will be performed after this routine returns. Default: do nothing.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
langle: Doc
A left angle bracket document.
A left angle bracket document.
- Definition Classes
- PrettyPrinterBase
-
def
lbrace: Doc
A left brace document.
A left brace document.
- Definition Classes
- PrettyPrinterBase
-
def
lbracket: Doc
A left square bracket document.
A left square bracket document.
- Definition Classes
- PrettyPrinterBase
-
def
line: Doc
A document representing a potential line break.
A document representing a potential line break. Behaves like a space character if the break is omitted by a group.
- Definition Classes
- PrettyPrinter → PrettyPrinterBase
-
def
line(repl: Layout): Doc
A document representing a potential line break.
A document representing a potential line break. Behaves like the string
replif the break is omitted by a group.- Definition Classes
- PrettyPrinter → PrettyPrinterBase
-
def
linebreak: Doc
A document representing a potential line break.
A document representing a potential line break. Behaves like an empty string if the break is omitted by a group.
- Definition Classes
- PrettyPrinter → PrettyPrinterBase
-
def
list[T](l: Seq[T], prefix: String = "List", elemToDoc: (T) ⇒ Doc = (x : T) => value (x), sep: Doc = comma, sepfn: (Seq[Doc], Doc) ⇒ Doc = lsep): Doc
Return a document that pretty-prints a list in Scala notation, inserting line breaks between elements as necessary.
Return a document that pretty-prints a list in Scala notation, inserting line breaks between elements as necessary. The
prefixstring can be changed from the default"List". TheelemToDocargument can be used to alter the way each element is converted to a document (default: use thevaluecombinator).sepdefaults tocomma.- Definition Classes
- PrettyPrinterBase
-
def
lparen: Doc
A left parenthesis document.
A left parenthesis document.
- Definition Classes
- PrettyPrinterBase
-
def
lsep(ds: Seq[Doc], sep: Doc): Doc
Return a pretty-printer document for a separated sequence.
Return a pretty-printer document for a separated sequence.
sepis the separator. Line breaks are allowed before the sequence and after the separators between the elements of the sequence. The before line break turns into nothing if omitted. The internal line breaks turn intospaceif omitted.- Definition Classes
- PrettyPrinterBase
-
def
lsep2(ds: Seq[Doc], sep: Doc): Doc
Return a pretty-printer document for a separated sequence.
Return a pretty-printer document for a separated sequence.
sepis the separator. Line breaks are allowed before the separators between the elements of the sequence and at the end. Aspaceis inserted after each separator. The internal line breaks turn intospaceif omitted. The end line break turns into nothing if omitted.- Definition Classes
- PrettyPrinterBase
-
def
lterm(ds: Seq[Doc], term: Doc): Doc
Return a pretty-printer document for a sequence where each element is terminated by
term.Return a pretty-printer document for a sequence where each element is terminated by
term. Line breaks are allowed before the sequence and after the terminator between the elements of the sequence. The before line break turns into nothing if omitted. The internal line breaks turn intospaceif omitted.- Definition Classes
- PrettyPrinterBase
-
def
minus: Doc
An minus sign document.
An minus sign document.
- Definition Classes
- PrettyPrinterBase
- val name: String
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nest(d: Doc, j: Indent = defaultIndent): Doc
Nest a document by an indentation increment on top of the current nesting.
Nest a document by an indentation increment on top of the current nesting. In the paper version, the indentation parameter comes first, but we put it second here so that it can be given a default value.
- Definition Classes
- PrettyPrinter → PrettyPrinterBase
-
def
nesting(f: (Int) ⇒ Doc): Doc
Return the document produced by
fwhen it is passed the nesting level (indentation) of the current line.Return the document produced by
fwhen it is passed the nesting level (indentation) of the current line.- Definition Classes
- PrettyPrinter → PrettyPrinterBase
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
padto(p: Int, d: Doc): Doc
Return a document that pads
dout to a width ofp.Return a document that pads
dout to a width ofp. Ifdalready has a width greater than or equal tod, don't add any padding. This combinator is calledfillin the PPrint library.- Definition Classes
- PrettyPrinterBase
-
def
padtobreak(p: Int, d: Doc): Doc
As for
padtobut if the document width is already greater than or equal top, insert a possible line break and new nesting level instead of not adding any padding.As for
padtobut if the document width is already greater than or equal top, insert a possible line break and new nesting level instead of not adding any padding. This combinator is calledfillBreakin the PPrint library.- Definition Classes
- PrettyPrinterBase
-
implicit
def
paramUpdaterToU[T, U, V >: U](up: ParamUpdater[T, U]): V
Allow an updater to be used to access a parameterised state value.
-
def
parens(d: Doc): Doc
Return a document that encloses a given document between left and right parentheses.
Return a document that encloses a given document between left and right parentheses.
- Definition Classes
- PrettyPrinterBase
-
def
percent: Doc
A percent sign document.
A percent sign document.
- Definition Classes
- PrettyPrinterBase
-
def
performUpdates(): Boolean
Perform any pending updates, returning true if updates were performed and false otherwise.
Perform any pending updates, returning true if updates were performed and false otherwise. The updates are first checked for consistency. If the same piece of state is updated more than once, it must be updated to the same value by all updates. If updates are not consistent, the machine is aborted.
-
def
plist(l: List[PrettyPrintable], prefix: String = "List", elemToDoc: (PrettyPrintable) ⇒ Doc = _.toDoc, sep: Doc = comma, sepfn: (Seq[Doc], Doc) ⇒ Doc = lsep): Doc
Return a document that pretty-prints a list of pretty-printables in Scala notation, inserting line breaks between elements as necessary.
Return a document that pretty-prints a list of pretty-printables in Scala notation, inserting line breaks between elements as necessary. The
prefixstring can be changed from the default"List". TheelemToDocargument can be used to alter the way each element is converted to a document (default: call the element'stoDocmethod).sepdefaults to acomma.- Definition Classes
- PrettyPrinterBase
-
def
plus: Doc
An plus sign document.
An plus sign document.
- Definition Classes
- PrettyPrinterBase
-
def
pretty(d: Doc, w: Width = defaultWidth): Layout
Pretty print a document assuming a given output medium width.
Pretty print a document assuming a given output medium width. In the paper the width is the first parameter, but here we put it second so we can provide a default value.
- Definition Classes
- PrettyPrinter → PrettyPrinterBase
-
def
pretty(p: PrettyPrintable): Layout
Pretty-print a pretty-printable value.
Pretty-print a pretty-printable value. If the value passed is not a pretty-printable document, it will be converted to one using the implicit conversion
anyToPrettyPrintable.- Definition Classes
- PrettyPrinterBase
-
def
pretty_any(a: Any): Layout
Pretty-print any value using the
anymethod.Pretty-print any value using the
anymethod.- Definition Classes
- PrettyPrinterBase
-
def
pseq(l: Seq[PrettyPrintable], prefix: String = "Seq", elemToDoc: (PrettyPrintable) ⇒ Doc = _.toDoc, sep: Doc = comma, sepfn: (Seq[Doc], Doc) ⇒ Doc = lsep): Doc
Return a document that pretty-prints a sequence of pretty-printables in Scala notation, inserting line breaks between elements as necessary.
Return a document that pretty-prints a sequence of pretty-printables in Scala notation, inserting line breaks between elements as necessary. The
prefixstring can be changed from the default"Seq". TheelemToDocargument can be used to alter the way each element is converted to a document (default: call the element'stoDocmethod).sepdefaults to acomma.- Definition Classes
- PrettyPrinterBase
-
def
question: Doc
A question mark document.
A question mark document.
- Definition Classes
- PrettyPrinterBase
-
def
rangle: Doc
A right angle bracket document.
A right angle bracket document.
- Definition Classes
- PrettyPrinterBase
-
def
rbrace: Doc
A right brace document.
A right brace document.
- Definition Classes
- PrettyPrinterBase
-
def
rbracket: Doc
A right square bracket document.
A right square bracket document.
- Definition Classes
- PrettyPrinterBase
-
def
reset(): Unit
Reset the machine to begin a step.
-
def
rparen: Doc
A right parenthesis document.
A right parenthesis document.
- Definition Classes
- PrettyPrinterBase
-
def
run(): Unit
Run this machine by initialising its state and then executing its steps.
-
def
semi: Doc
A semicolon document.
A semicolon document.
- Definition Classes
- PrettyPrinterBase
-
def
sep(ds: Seq[Doc]): Doc
Return a document that concatenates the documents in the given sequence either horizontally with
<+>if they fit in the output medium width, or if not, vertically with<@>.Return a document that concatenates the documents in the given sequence either horizontally with
<+>if they fit in the output medium width, or if not, vertically with<@>.- Definition Classes
- PrettyPrinterBase
-
def
seq[T](l: Seq[T], prefix: String = "Seq", elemToDoc: (T) ⇒ Doc = (x : T) => value (x), sep: Doc = comma, sepfn: (Seq[Doc], Doc) ⇒ Doc = lsep): Doc
Return a document that pretty-prints a sequence in Scala notation, inserting line breaks between elements as necessary.
Return a document that pretty-prints a sequence in Scala notation, inserting line breaks between elements as necessary. The
prefixstring can be changed from the default"Seq". TheelemToDocargument can be used to alter the way each element is converted to a document (default: use thevaluecombinator).sepdefaults tocomma.- Definition Classes
- PrettyPrinterBase
-
def
softbreak: Doc
Return a document that behaves like
emptyif the resulting output fits the page, otherwise it behaves likeline.Return a document that behaves like
emptyif the resulting output fits the page, otherwise it behaves likeline.- Definition Classes
- PrettyPrinterBase
-
def
softline: Doc
Return a document that behaves like
spaceif the resulting output fits the page, otherwise it behaves likeline.Return a document that behaves like
spaceif the resulting output fits the page, otherwise it behaves likeline.- Definition Classes
- PrettyPrinterBase
-
def
space: Doc
A space document.
A space document.
- Definition Classes
- PrettyPrinterBase
-
def
spaces(n: Int): Doc
Return a document representing
nspaces ifns greater than zero, otherwise return an empty document.Return a document representing
nspaces ifns greater than zero, otherwise return an empty document.- Definition Classes
- PrettyPrinterBase
-
def
squote: Doc
A single quote document.
A single quote document.
- Definition Classes
- PrettyPrinterBase
-
def
squotes(d: Doc): Doc
Return a document that encloses a given document between single quotes.
Return a document that encloses a given document between single quotes.
- Definition Classes
- PrettyPrinterBase
-
def
ssep(ds: Seq[Doc], sep: Doc): Doc
Return a document that concatenates the documents in the given sequence and separates adjacent documents with
sepwith no space around the separator.Return a document that concatenates the documents in the given sequence and separates adjacent documents with
sepwith no space around the separator.- Definition Classes
- PrettyPrinterBase
-
implicit
def
stateTToT[T, U >: T](t: State[T]): U
Implicitly allow a scalar state value of type
Tto be used as a value of typeUwhereUis a supertype ofT. -
def
step: Boolean
Perform a step of this machine.
Perform a step of this machine. Return true if some updates were made or false if none.
-
final
def
steps(nstep: Int): Unit
Execute the steps of this machine.
Execute the steps of this machine. Halt when a step makes no updates.
initshould be called before this method.- Annotations
- @tailrec()
-
def
sterm(ds: Seq[Doc], term: Doc): Doc
Return a document that concatenates the documents in the given sequence and terminates each document with
term.Return a document that concatenates the documents in the given sequence and terminates each document with
term.- Definition Classes
- PrettyPrinterBase
-
def
string(s: String): Doc
Convert a string to a document.
Convert a string to a document. The string is allowed to contain newline characters. If no newlines are included, it is best to use
textdirectly instead.- Definition Classes
- PrettyPrinterBase
-
def
surround(d: Doc, b: Doc): Doc
Return a document that encloses a given document
dbetween two occurrences of another documentb.Return a document that encloses a given document
dbetween two occurrences of another documentb.- Definition Classes
- PrettyPrinterBase
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
implicit
def
text(t: String): Doc
Convert a string to a document.
Convert a string to a document. The string should not contain any newline characters. Use
lineinstead.- Definition Classes
- PrettyPrinter → PrettyPrinterBase
-
def
tilde: Doc
A tilde document.
A tilde document.
- Definition Classes
- PrettyPrinterBase
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
underscore: Doc
An underscore document.
An underscore document.
- Definition Classes
- PrettyPrinterBase
-
def
value(v: Any): Doc
Return a document representing a value formatted using
toStringand thestringcombinator.Return a document representing a value formatted using
toStringand thestringcombinator. As a special case, if the value is a null reference it is formatted asnull.- Definition Classes
- PrettyPrinterBase
-
def
vcat(ds: Seq[Doc]): Doc
Return a document that concatenates the documents in the given sequence vertically with
<@@>.Return a document that concatenates the documents in the given sequence vertically with
<@@>.- Definition Classes
- PrettyPrinterBase
-
def
verticalbar: Doc
A vertical bar document.
A vertical bar document.
- Definition Classes
- PrettyPrinterBase
-
def
vsep(ds: Seq[Doc], sep: Doc): Doc
Return a document that concatenates the documents in the given sequence vertically with
<@>.Return a document that concatenates the documents in the given sequence vertically with
<@>. Separates documents with the given separator before the<@>.- Definition Classes
- PrettyPrinterBase
-
def
vsep(ds: Seq[Doc]): Doc
Return a document that concatenates the documents in the given sequence vertically with
<@>.Return a document that concatenates the documents in the given sequence vertically with
<@>.- Definition Classes
- PrettyPrinterBase
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
width(d: Doc, f: (Int) ⇒ Doc): Doc
Return a document that renders
dbeside the document obtained by runningfon the width ofd.Return a document that renders
dbeside the document obtained by runningfon the width ofd.- Definition Classes
- PrettyPrinterBase
Deprecated Value Members
-
def
product(p: Any): Doc
- Definition Classes
- PrettyPrinterBase
- Annotations
- @deprecated
- Deprecated
(Since version 1.2.1) Use PrettyPrinter.any instead.