pprint

package pprint

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. pprint
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait Chunker[T] extends AnyRef

    There are a few main classes involved here:

    There are a few main classes involved here:

    - PPrint: an all-encompassing typeclass that contains all you need to pretty-print a value T => Iter[String]

    - PPrinter: a typeclass that takes a configuration object and pretty-prints a value (T, Config) => Iter[String]

    - Config: controls various metadata about the pprint, e.g. how wide to go before we start wrapping, or what colors to use

    - Chunker: (T, Config) => Iter[ Iter[String] ]. Implements the very common comma-separated-values pattern, where each sub-iter is one of the comma separated blocks, but it's up to the caller to decide what to do with them

  2. case class Colors(literalColor: String, prefixColor: String, endColor: String) extends Product with Serializable

  3. case class Config(width: Int = Config.defaultMaxWidth, height: Int = Config.defaultLines, depth: Int = 0, indent: Int = Config.defaultIndent, colors: Colors = pprint.Colors.BlackWhite, renames: Map[String, String] = Config.defaultRenames) extends GenConfig[Config] with Product with Serializable

    Configuration options to control how prettyprinting occurs, passed recursively into each prettyprinting callsite.

    Configuration options to control how prettyprinting occurs, passed recursively into each prettyprinting callsite.

    width

    Controls how far to the right a line will go before it tries to wrap

    height

    Controls how many lines can be printed at once. Will print all lines if set to 0

    depth

    How much the current item being printed should be indented

    renames

    A map used to rename things to more common names, e.g. renamig WrappedArray to Array or getting rid of TupleN *

  4. trait GenConfig[T <: GenConfig[T]] extends AnyRef

    Helpers to help inject behavior into the generated code without having any circular dependencies

  5. trait GenUtils extends AnyRef

    Helpers to help inject behavior into the generated code without having any circular dependencies

  6. trait LowPriPPrinter extends AnyRef

  7. trait PPrint[A] extends AnyRef

    A typeclass necessary to prettyprint something.

    A typeclass necessary to prettyprint something. Separate from PPrinter in order to make contravariant implicit resolution behave right.

  8. trait PPrinter[-A] extends AnyRef

    A typeclass you define to prettyprint values of type A

  9. trait PPrinterGen extends GenUtils

Value Members

  1. object Chunker extends PPrinterGen

  2. object Colors extends Serializable

  3. object Config extends Serializable

  4. object Internals

  5. object PPrint extends LowPriPPrint

  6. object PPrinter extends LowPriPPrinter

  7. def pprintln[T](t: T, width: Integer = null, height: Integer = null, indent: Integer = null, colors: Colors = null)(implicit arg0: PPrint[T], cfg: Config = Config.Defaults.PPrintConfig): Unit

  8. def pprintln[T](implicit arg0: PPrint[T], cfg: Config): (T) ⇒ Unit

  9. def tokenize[T](t: T, width: Integer = null, height: Integer = null, indent: Integer = null, colors: Colors = null)(implicit arg0: PPrint[T], cfg: Config): Iterator[String]

    Prettyprint a strongly-typed value, falling back to toString if you don't know what to do with it.

    Prettyprint a strongly-typed value, falling back to toString if you don't know what to do with it. Generally used for human-facing output

Inherited from AnyRef

Inherited from Any

Ungrouped