pprint

package pprint

Contains a convenient default pre-configured PPrinter.

Hard-coded and inflexible, but feel free to instantiate your own PPrint if you want to customize it.

Linear Supertypes
PPrinter, Serializable, Serializable, Product, Equals, Walker, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. pprint
  2. PPrinter
  3. Serializable
  4. Serializable
  5. Product
  6. Equals
  7. Walker
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class PPrinter(defaultWidth: Int = 100, defaultHeight: Int = 50, defaultIndent: Int = 2, colorLiteral: Attrs = fansi.Color.Green, colorApplyPrefix: Attrs = fansi.Color.Yellow, additionalHandlers: PartialFunction[Any, Tree] = ...) extends Walker with Product with Serializable

  2. class Renderer extends AnyRef

  3. class Result extends AnyRef

    The intermediate return type of the pretty-print system: provides an iterator which produces the actual string output, as well as metadata around that output that is only available after the iterator is exhausted

  4. trait TPrint[T] extends AnyRef

    Summoning an implicit TPrint[T] provides a pretty-printed string representation of the type T, much better than is provided by the default Type#toString.

  5. case class TPrintColors(typeColor: Attrs) extends Product with Serializable

  6. trait TPrintGen[Type[_], Cfg] extends AnyRef

  7. trait TPrintLowPri extends AnyRef

  8. sealed trait Tree extends AnyRef

    A lazy AST representing pretty-printable text.

  9. class Truncated extends Iterator[Str]

    Wraps an input iterator of colored fansi.Strs, and produces the same fansi.Strs but truncated once the wrapped-at-width text reaches beyond a certain height

  10. abstract class Walker extends AnyRef

Abstract Value Members

  1. abstract def additionalHandlers: PartialFunction[Any, Tree]

    Definition Classes
    Walker
  2. abstract def canEqual(that: Any): Boolean

    Definition Classes
    Equals
  3. abstract def getClass(): Class[_]

    Definition Classes
    Any
  4. abstract def productArity: Int

    Definition Classes
    Product
  5. abstract def productElement(n: Int): Any

    Definition Classes
    Product

Concrete Value Members

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

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

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

    Definition Classes
    Any
  4. object PPrinter extends Serializable

  5. object Renderer

  6. object Result

  7. object TPrint extends TPrintGen[TPrint, TPrintColors] with TPrintLowPri

  8. object TPrintColors extends Serializable

  9. object Tree

  10. object Util

  11. def apply(x: Any, width: Int = defaultWidth, height: Int = defaultHeight, indent: Int = defaultIndent, initialOffset: Int = 0): Str

    Converts an Any into a large colored fansi.Str

    Converts an Any into a large colored fansi.Str

    Definition Classes
    PPrinter
  12. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  13. val colorApplyPrefix: Attrs

    Definition Classes
    PPrinter
  14. val colorLiteral: Attrs

    Definition Classes
    PPrinter
  15. val defaultHeight: Int

    Definition Classes
    PPrinter
  16. val defaultIndent: Int

    Definition Classes
    PPrinter
  17. val defaultWidth: Int

    Definition Classes
    PPrinter
  18. def equals(arg0: Any): Boolean

    Definition Classes
    Any
  19. def hashCode(): Int

    Definition Classes
    Any
  20. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  21. def log(x: Text[Any], tag: String = "", width: Int = defaultWidth, height: Int = defaultHeight, indent: Int = defaultIndent, initialOffset: Int = 0)(implicit line: Line, enclosing: Enclosing): Unit

    Logs a given value to stdout with some metadata to identify where the log message came from.

    Logs a given value to stdout with some metadata to identify where the log message came from. Hard-coded and not very flexible, but you can easily implement your own log method if you want to customize it further.

    Definition Classes
    PPrinter
  22. def pprintln(x: Any, width: Int = defaultWidth, height: Int = defaultHeight, indent: Int = defaultIndent, initialOffset: Int = 0): Unit

    Converts an Any into a large colored fansi.Str

    Converts an Any into a large colored fansi.Str

    Definition Classes
    PPrinter
  23. def productIterator: Iterator[Any]

    Definition Classes
    Product
  24. def productPrefix: String

    Definition Classes
    Product
  25. def toString(): String

    Definition Classes
    Any
  26. def tokenize(x: Any, width: Int = defaultWidth, height: Int = defaultHeight, indent: Int = defaultIndent, initialOffset: Int = 0): Iterator[Str]

    Converts an Any into an iterator of colored chunks, wrapped at a certain width and truncated at a certain height

    Converts an Any into an iterator of colored chunks, wrapped at a certain width and truncated at a certain height

    Definition Classes
    PPrinter
  27. def tprint[T](implicit arg0: TPrint[T], config: TPrintColors): String

  28. def treeify(x: Any): Tree

    Definition Classes
    Walker
  29. val tuplePrefix: String

    Definition Classes
    Walker

Inherited from PPrinter

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Walker

Inherited from AnyRef

Inherited from Any

Ungrouped