org.kiama.machine

Machine

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
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Machine
  2. PrettyPrinter
  3. PrettyPrinterBase
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Machine(name: String, emitter: Emitter = new ErrorEmitter)

Type Members

  1. 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
  2. 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
  3. type Indent = Int

    Indentation is expressed as integer space units.

    Indentation is expressed as integer space units.

    Definition Classes
    PrettyPrinterBase
  4. type Layout = String

    The final layout of a document as a string.

    The final layout of a document as a string.

    Definition Classes
    PrettyPrinterBase
  5. 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 type T.

  6. class ParamUpdate[T, U] extends Update

    An update of a parameterised item of state s to have the value u at parameter t.

  7. class ParamUpdater[T, U] extends AnyRef

    Utility class for updaters for values of parameterised state.

  8. trait PrettyPrintable extends AnyRef

    Interface for pretty-printable values.

    Interface for pretty-printable values. The default toDoc implementation just uses the value combinator on the receiver.

    Definition Classes
    PrettyPrinterBase
  9. class ScalarUpdate[T] extends Update

    An update of a scalar item of state s to have the value t.

  10. class State[T] extends AnyRef

    A scalar item of abstract state machine state holding a value of type T and called sname.

  11. abstract class Update extends AnyRef

    An update of an item of state s to have the value t.

  12. type Width = Int

    Output medium width

    Output medium width

    Definition Classes
    PrettyPrinterBase

Abstract Value Members

  1. abstract def main(): Unit

    The rule to execute to run one step of this machine.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def align(d: Doc): Doc

    Return a document that renders d with the nesting level set to the current indentation column.

    Return a document that renders d with the nesting level set to the current indentation column.

    Definition Classes
    PrettyPrinterBase
  5. def ampersand: Doc

    An ampersand document.

    An ampersand document.

    Definition Classes
    PrettyPrinterBase
  6. 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
  7. def any(a: Any): Doc

    Generic pretty-printer document for any type of value.

    Generic pretty-printer document for any type of value. If a is a Vector, Map, List or Product, print it in a prefix list style, with the exception that Nil prints as Nil. Tuples are pretty-printed using arrow notation. Strings are pretty-printed surrounded by double quotes. If none of these cases apply, use the toDoc method on a. null prints as null.

    Definition Classes
    PrettyPrinterBase
  8. 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 value combinator.

    Definition Classes
    PrettyPrinterBase
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def asterisk: Doc

    An asterisk document.

    An asterisk document.

    Definition Classes
    PrettyPrinterBase
  11. def atsign: Doc

    An at-sign document.

    An at-sign document.

    Definition Classes
    PrettyPrinterBase
  12. def backquote: Doc

    A backquote document.

    A backquote document.

    Definition Classes
    PrettyPrinterBase
  13. def backslash: Doc

    A backslash document.

    A backslash document.

    Definition Classes
    PrettyPrinterBase
  14. 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
  15. 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
  16. def caret: Doc

    A caret document.

    A caret document.

    Definition Classes
    PrettyPrinterBase
  17. 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
  18. 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
  19. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. def colon: Doc

    A colon document.

    A colon document.

    Definition Classes
    PrettyPrinterBase
  21. def column(f: (Int) ⇒ Doc): Doc

    Return the document produced by f when it is passed the column at which rendering is currently placed.

    Return the document produced by f when it is passed the column at which rendering is currently placed.

    Definition Classes
    PrettyPrinterPrettyPrinterBase
  22. def comma: Doc

    A comma document.

    A comma document.

    Definition Classes
    PrettyPrinterBase
  23. 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.

  24. val defaultIndent: Int

    Default indentation is four spaces.

    Default indentation is four spaces.

    Definition Classes
    PrettyPrinterBase
  25. val defaultWidth: Int

    Default layout width is 75 characters.

    Default layout width is 75 characters.

    Definition Classes
    PrettyPrinterBase
  26. def dollar: Doc

    A dollar sign document.

    A dollar sign document.

    Definition Classes
    PrettyPrinterBase
  27. def dot: Doc

    A dot (period) document.

    A dot (period) document.

    Definition Classes
    PrettyPrinterBase
  28. def dquote: Doc

    A double quote document.

    A double quote document.

    Definition Classes
    PrettyPrinterBase
  29. 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
  30. def empty: Doc

    An empty document.

    An empty document. This is a left and right unit for the concatenation method. Called nil in the paper.

    Definition Classes
    PrettyPrinterPrettyPrinterBase
  31. 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
  32. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  33. def equal: Doc

    An equal sign document.

    An equal sign document.

    Definition Classes
    PrettyPrinterBase
  34. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  35. def exclamation: Doc

    An exclamation mark document.

    An exclamation mark document.

    Definition Classes
    PrettyPrinterBase
  36. 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 a linebreak and 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 a linebreak and continues to the end of the sequence.

    Definition Classes
    PrettyPrinterBase
  37. 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 a line and 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 a line and continues with the rest of the sequence. Separates documents with the given separator before the <+>.

    Definition Classes
    PrettyPrinterBase
  38. 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 a line and 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 a line and continues with the rest of the sequence.

    Definition Classes
    PrettyPrinterBase
  39. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  40. def finit(): Unit

    Clean up after this machine.

    Clean up after this machine. This routine is called after the machine terminates. Default: do nothing.

  41. def folddoc(ds: Seq[Doc], f: (Doc, Doc) ⇒ Doc): Doc

    Return a document that is the result of folding f over the sequence ds.

    Return a document that is the result of folding f over the sequence ds. Returns the empty document is ds is empty.

    Definition Classes
    PrettyPrinterBase
  42. def forwslash: Doc

    A forward slash document.

    A forward slash document.

    Definition Classes
    PrettyPrinterBase
  43. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  44. 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
    PrettyPrinterPrettyPrinterBase
  45. def hang(d: Doc, i: Indent = defaultIndent): Doc

    Return a document that is like d but whose second and subsequent lines have hanging indentation of i spaces (defaults to the deafult indentation).

    Return a document that is like d but whose second and subsequent lines have hanging indentation of i spaces (defaults to the deafult indentation). In other words, the first line is indented at the current nesting level and the remaining lines are indented i spaces more.

    Definition Classes
    PrettyPrinterBase
  46. def hash: Doc

    A hash mark document.

    A hash mark document.

    Definition Classes
    PrettyPrinterBase
  47. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  48. 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
  49. 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
  50. 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
  51. def indent(d: Doc, i: Indent = defaultIndent): Doc

    Return a document that is d but with the first line indented by i more spaces.

    Return a document that is d but with the first line indented by i more spaces.

    Definition Classes
    PrettyPrinterBase
  52. 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.

  53. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  54. def langle: Doc

    A left angle bracket document.

    A left angle bracket document.

    Definition Classes
    PrettyPrinterBase
  55. def lbrace: Doc

    A left brace document.

    A left brace document.

    Definition Classes
    PrettyPrinterBase
  56. def lbracket: Doc

    A left square bracket document.

    A left square bracket document.

    Definition Classes
    PrettyPrinterBase
  57. 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
    PrettyPrinterPrettyPrinterBase
  58. def line(repl: Layout): Doc

    A document representing a potential line break.

    A document representing a potential line break. Behaves like the string repl if the break is omitted by a group.

    Definition Classes
    PrettyPrinterPrettyPrinterBase
  59. 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
    PrettyPrinterPrettyPrinterBase
  60. 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 prefix string can be changed from the default "List". The elemToDoc argument can be used to alter the way each element is converted to a document (default: use the value combinator). sep defaults to comma.

    Definition Classes
    PrettyPrinterBase
  61. def lparen: Doc

    A left parenthesis document.

    A left parenthesis document.

    Definition Classes
    PrettyPrinterBase
  62. 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. sep is 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 into space if omitted.

    Definition Classes
    PrettyPrinterBase
  63. 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. sep is the separator. Line breaks are allowed before the separators between the elements of the sequence and at the end. A space is inserted after each separator. The internal line breaks turn into space if omitted. The end line break turns into nothing if omitted.

    Definition Classes
    PrettyPrinterBase
  64. 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 into space if omitted.

    Definition Classes
    PrettyPrinterBase
  65. def minus: Doc

    An minus sign document.

    An minus sign document.

    Definition Classes
    PrettyPrinterBase
  66. val name: String

  67. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  68. 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
    PrettyPrinterPrettyPrinterBase
  69. def nesting(f: (Int) ⇒ Doc): Doc

    Return the document produced by f when it is passed the nesting level (indentation) of the current line.

    Return the document produced by f when it is passed the nesting level (indentation) of the current line.

    Definition Classes
    PrettyPrinterPrettyPrinterBase
  70. final def notify(): Unit

    Definition Classes
    AnyRef
  71. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  72. def padto(p: Int, d: Doc): Doc

    Return a document that pads d out to a width of p.

    Return a document that pads d out to a width of p. If d already has a width greater than or equal to d, don't add any padding. This combinator is called fill in the PPrint library.

    Definition Classes
    PrettyPrinterBase
  73. def padtobreak(p: Int, d: Doc): Doc

    As for padto but if the document width is already greater than or equal to p, insert a possible line break and new nesting level instead of not adding any padding.

    As for padto but if the document width is already greater than or equal to p, insert a possible line break and new nesting level instead of not adding any padding. This combinator is called fillBreak in the PPrint library.

    Definition Classes
    PrettyPrinterBase
  74. implicit def paramUpdaterToU[T, U, V >: U](up: ParamUpdater[T, U]): V

    Allow an updater to be used to access a parameterised state value.

  75. 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
  76. def percent: Doc

    A percent sign document.

    A percent sign document.

    Definition Classes
    PrettyPrinterBase
  77. 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.

  78. 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 prefix string can be changed from the default "List". The elemToDoc argument can be used to alter the way each element is converted to a document (default: call the element's toDoc method). sep defaults to a comma.

    Definition Classes
    PrettyPrinterBase
  79. def plus: Doc

    An plus sign document.

    An plus sign document.

    Definition Classes
    PrettyPrinterBase
  80. 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
    PrettyPrinterPrettyPrinterBase
  81. 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
  82. def pretty_any(a: Any): Layout

    Pretty-print any value using the any method.

    Pretty-print any value using the any method.

    Definition Classes
    PrettyPrinterBase
  83. 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 prefix string can be changed from the default "Seq". The elemToDoc argument can be used to alter the way each element is converted to a document (default: call the element's toDoc method). sep defaults to a comma.

    Definition Classes
    PrettyPrinterBase
  84. def question: Doc

    A question mark document.

    A question mark document.

    Definition Classes
    PrettyPrinterBase
  85. def rangle: Doc

    A right angle bracket document.

    A right angle bracket document.

    Definition Classes
    PrettyPrinterBase
  86. def rbrace: Doc

    A right brace document.

    A right brace document.

    Definition Classes
    PrettyPrinterBase
  87. def rbracket: Doc

    A right square bracket document.

    A right square bracket document.

    Definition Classes
    PrettyPrinterBase
  88. def reset(): Unit

    Reset the machine to begin a step.

  89. def rparen: Doc

    A right parenthesis document.

    A right parenthesis document.

    Definition Classes
    PrettyPrinterBase
  90. def run(): Unit

    Run this machine by initialising its state and then executing its steps.

  91. def semi: Doc

    A semicolon document.

    A semicolon document.

    Definition Classes
    PrettyPrinterBase
  92. 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
  93. 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 prefix string can be changed from the default "Seq". The elemToDoc argument can be used to alter the way each element is converted to a document (default: use the value combinator). sep defaults to comma.

    Definition Classes
    PrettyPrinterBase
  94. def softbreak: Doc

    Return a document that behaves like empty if the resulting output fits the page, otherwise it behaves like line.

    Return a document that behaves like empty if the resulting output fits the page, otherwise it behaves like line.

    Definition Classes
    PrettyPrinterBase
  95. def softline: Doc

    Return a document that behaves like space if the resulting output fits the page, otherwise it behaves like line.

    Return a document that behaves like space if the resulting output fits the page, otherwise it behaves like line.

    Definition Classes
    PrettyPrinterBase
  96. def space: Doc

    A space document.

    A space document.

    Definition Classes
    PrettyPrinterBase
  97. def spaces(n: Int): Doc

    Return a document representing n spaces if n s greater than zero, otherwise return an empty document.

    Return a document representing n spaces if n s greater than zero, otherwise return an empty document.

    Definition Classes
    PrettyPrinterBase
  98. def squote: Doc

    A single quote document.

    A single quote document.

    Definition Classes
    PrettyPrinterBase
  99. 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
  100. def ssep(ds: Seq[Doc], sep: Doc): Doc

    Return a document that concatenates the documents in the given sequence and separates adjacent documents with sep with no space around the separator.

    Return a document that concatenates the documents in the given sequence and separates adjacent documents with sep with no space around the separator.

    Definition Classes
    PrettyPrinterBase
  101. implicit def stateTToT[T, U >: T](t: State[T]): U

    Implicitly allow a scalar state value of type T to be used as a value of type U where U is a supertype of T.

  102. 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.

  103. 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. init should be called before this method.

    Annotations
    @tailrec()
  104. 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
  105. 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 text directly instead.

    Definition Classes
    PrettyPrinterBase
  106. def surround(d: Doc, b: Doc): Doc

    Return a document that encloses a given document d between two occurrences of another document b.

    Return a document that encloses a given document d between two occurrences of another document b.

    Definition Classes
    PrettyPrinterBase
  107. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  108. 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 line instead.

    Definition Classes
    PrettyPrinterPrettyPrinterBase
  109. def tilde: Doc

    A tilde document.

    A tilde document.

    Definition Classes
    PrettyPrinterBase
  110. def toString(): String

    Definition Classes
    AnyRef → Any
  111. def underscore: Doc

    An underscore document.

    An underscore document.

    Definition Classes
    PrettyPrinterBase
  112. def value(v: Any): Doc

    Return a document representing a value formatted using toString and the string combinator.

    Return a document representing a value formatted using toString and the string combinator. As a special case, if the value is a null reference it is formatted as null.

    Definition Classes
    PrettyPrinterBase
  113. 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
  114. def verticalbar: Doc

    A vertical bar document.

    A vertical bar document.

    Definition Classes
    PrettyPrinterBase
  115. 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
  116. 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
  117. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  118. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  119. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  120. def width(d: Doc, f: (Int) ⇒ Doc): Doc

    Return a document that renders d beside the document obtained by running f on the width of d.

    Return a document that renders d beside the document obtained by running f on the width of d.

    Definition Classes
    PrettyPrinterBase

Deprecated Value Members

  1. def product(p: Any): Doc

    Definition Classes
    PrettyPrinterBase
    Annotations
    @deprecated
    Deprecated

    (Since version 1.2.1) Use PrettyPrinter.any instead.

Inherited from PrettyPrinter

Inherited from PrettyPrinterBase

Inherited from AnyRef

Inherited from Any

Ungrouped