scala.tools.nsc.util

TableDef

class TableDef[T] extends AnyRef

A class for representing tabular data in a way that preserves its inner beauty. See Exceptional for an example usage. One creates an instance of TableDef by defining the columns of the table, then uses that to create an instance of Table by passing in a sequence of rows.

Source
TableDef.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. TableDef
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TableDef(_cols: Column[T]*)

Type Members

  1. class Table extends Seq[T]

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. def <<(pair: (String, (T) ⇒ Any)): TableDef[T]

  5. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  7. def >+(sep: String): TableDef[T]

  8. def >>(pair: (String, (T) ⇒ Any)): TableDef[T]

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def colApply(el: T): List[Any]

  12. def colFunctions: List[(T) ⇒ Any]

  13. def colNames: List[String]

  14. def columns: List[Column[T]]

  15. def defaultSep(index: Int): String

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

    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def formatterFor(rows: Seq[T]): (T) ⇒ String

  20. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

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

    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  26. def retThis(body: ⇒ Unit): TableDef.this.type

  27. def sepAfter(i: Int): String

  28. def sepWidths: IndexedSeq[Int]

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

    Definition Classes
    AnyRef
  30. def table(rows: Seq[T]): Table

  31. def toString(): String

    Definition Classes
    TableDef → AnyRef → Any
  32. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  35. def ~(next: Column[T]): TableDef[T]

    These operators are about all there is to it.

    These operators are about all there is to it.

    ~ appends a column to the table >> creates a right-justified column and appends it << creates a left-justified column and appends it >+ specifies a string to separate the previous column from the next. if none is specified, a space is used.

Inherited from AnyRef

Inherited from Any