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
inFoo(bar, baz)
- additionalHandlers
Provide this to override how certain types are pretty-printed at runtime
- Self Type
- PPrinter
- Alphabetic
- By Inheritance
- PPrinter
- Serializable
- Product
- Equals
- Walker
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- 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
inFoo(bar, baz)
- additionalHandlers
Provide this to override how certain types are pretty-printed at runtime
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val additionalHandlers: PartialFunction[Any, Tree]
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val colorApplyPrefix: Attrs
- val colorLiteral: Attrs
- val defaultHeight: Int
- val defaultIndent: Int
- val defaultWidth: Int
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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
- def treeify(x: Any): Tree
How to convert a thing into a Tree that can be pretty-printed.
- val tuplePrefix: String
- Definition Classes
- Walker
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])