Packages

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, Product, Equals, Walker, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PPrinter
  2. Serializable
  3. Product
  4. Equals
  5. Walker
  6. AnyRef
  7. 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)

    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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val additionalHandlers: PartialFunction[Any, Tree]
    Definition Classes
    PPrinterWalker
  5. 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

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. val colorApplyPrefix: Attrs
  9. val colorLiteral: Attrs
  10. val defaultHeight: Int
  11. val defaultIndent: Int
  12. val defaultWidth: Int
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. 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

    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.

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. def pprintln[T](x: T, width: Int = defaultWidth, height: Int = defaultHeight, indent: Int = defaultIndent, initialOffset: Int = 0): Unit

    Converts an Any into a large colored fansi.Str

  21. def productElementNames: Iterator[String]
    Definition Classes
    Product
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. 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

  24. 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
  25. val tuplePrefix: String
    Definition Classes
    Walker
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Walker

Inherited from AnyRef

Inherited from Any

Ungrouped