Class/Object

pprint

PPrinter

Related Docs: object PPrinter | package pprint

Permalink

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

defaultWidth

How wide to allow a pretty-printed value to become before wrapping

defaultHeight

How tall to allow the pretty-printed output to become before truncated it with a ...

defaultIndent

How many spaces to indent each nested Tree.Apply by

colorLiteral

What color to assign to literals like "lol" or 31337

colorApplyPrefix

What color to assign to Foo in Foo(bar, baz)

additionalHandlers

Provide this to override how certain types are pretty-printed at runtime

Self Type
PPrinter
Linear Supertypes
Serializable, Serializable, Product, Equals, Walker, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PPrinter
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Walker
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PPrinter(defaultWidth: Int = 100, defaultHeight: Int = 500, defaultIndent: Int = 2, colorLiteral: Attrs = fansi.Color.Green, colorApplyPrefix: Attrs = fansi.Color.Yellow, additionalHandlers: PartialFunction[Any, Tree] = PartialFunction.empty)

    Permalink

    defaultWidth

    How wide to allow a pretty-printed value to become before wrapping

    defaultHeight

    How tall to allow the pretty-printed output to become before truncated it with a ...

    defaultIndent

    How many spaces to indent each nested Tree.Apply by

    colorLiteral

    What color to assign to literals like "lol" or 31337

    colorApplyPrefix

    What color to assign to Foo in Foo(bar, baz)

    additionalHandlers

    Provide this to override how certain types are pretty-printed at runtime

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. val additionalHandlers: PartialFunction[Any, Tree]

    Permalink

    Provide this to override how certain types are pretty-printed at runtime

    Provide this to override how certain types are pretty-printed at runtime

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

    Permalink

    Converts an Any into a large colored fansi.Str

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val colorApplyPrefix: Attrs

    Permalink

    What color to assign to Foo in Foo(bar, baz)

  9. val colorLiteral: Attrs

    Permalink

    What color to assign to literals like "lol" or 31337

  10. val defaultHeight: Int

    Permalink

    How tall to allow the pretty-printed output to become before truncated it with a ...

  11. val defaultIndent: Int

    Permalink

    How many spaces to indent each nested Tree.Apply by

  12. val defaultWidth: Int

    Permalink

    How wide to allow a pretty-printed value to become before wrapping

  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def log[T](x: Text[T], tag: String = "", width: Int = defaultWidth, height: Int = defaultHeight, indent: Int = defaultIndent, initialOffset: Int = 0)(implicit line: Line, fileName: FileName): T

    Permalink

    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.

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

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def pprintln[T](x: T, width: Int = defaultWidth, height: Int = defaultHeight, indent: Int = defaultIndent, initialOffset: Int = 0): Unit

    Permalink

    Converts an Any into a large colored fansi.Str

  22. def showFieldNames: Boolean

    Permalink
    Definition Classes
    Walker
  23. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink

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

  25. def treeify(x: Any): Tree

    Permalink

    How to convert a thing into a Tree that can be pretty-printed.

    How to convert a thing into a Tree that can be pretty-printed.

    Definition Classes
    PPrinterWalker
  26. val tuplePrefix: String

    Permalink
    Definition Classes
    Walker
  27. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Walker

Inherited from AnyRef

Inherited from Any

Ungrouped