pprint

PPrinter

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

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

    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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

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

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

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

    Definition Classes
    Any
  6. val additionalHandlers: PartialFunction[Any, Tree]

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

  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

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

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

  11. val colorLiteral: Attrs

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

  12. val defaultHeight: Int

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

  13. val defaultIndent: Int

    How many spaces to indent each nested Tree.Apply by

  14. val defaultWidth: Int

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

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

    Definition Classes
    AnyRef
  16. def finalize(): Unit

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

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

    Definition Classes
    Any
  19. 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.

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

    Definition Classes
    AnyRef
  21. final def notify(): Unit

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

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

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. 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

  26. def treeify(x: Any): Tree

    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
  27. val tuplePrefix: String

    Definition Classes
    Walker
  28. final def wait(): Unit

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

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

    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