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. def != (arg0: AnyRef): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def << (pair: (String, (T) ⇒ Any)): TableDef[T]

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

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

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

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

  9. def asInstanceOf [T0] : T0

    Attributes
    final
    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. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    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. def getClass (): java.lang.Class[_]

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

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

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

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

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

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

  27. def sepAfter (i: Int): String

  28. def sepWidths : IndexedSeq[Int]

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

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

  31. def toString (): String

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

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

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

    Attributes
    final
    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