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. TableDef
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringfmt
  2. by any2stringadd
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
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 +(other: String): String

    Implicit information
    This member is added by an implicit conversion from TableDef[T] to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (TableDef[T], B)

    Implicit information
    This member is added by an implicit conversion from TableDef[T] to ArrowAssoc[TableDef[T]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. def <<(pair: (String, (T) ⇒ Any)): TableDef[T]

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

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

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

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

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

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

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

  15. def colNames: List[String]

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

  17. def defaultSep(index: Int): String

  18. def ensuring(cond: (TableDef[T]) ⇒ Boolean, msg: ⇒ Any): TableDef[T]

    Implicit information
    This member is added by an implicit conversion from TableDef[T] to Ensuring[TableDef[T]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: (TableDef[T]) ⇒ Boolean): TableDef[T]

    Implicit information
    This member is added by an implicit conversion from TableDef[T] to Ensuring[TableDef[T]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean, msg: ⇒ Any): TableDef[T]

    Implicit information
    This member is added by an implicit conversion from TableDef[T] to Ensuring[TableDef[T]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: Boolean): TableDef[T]

    Implicit information
    This member is added by an implicit conversion from TableDef[T] to Ensuring[TableDef[T]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  25. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from TableDef[T] to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  26. def formatterFor(rows: Seq[T]): (T) ⇒ String

  27. final def getClass(): Class[_]

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

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

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

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

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

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

  34. val self: Any

    Implicit information
    This member is added by an implicit conversion from TableDef[T] to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
  35. val self: Any

    Implicit information
    This member is added by an implicit conversion from TableDef[T] to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  36. def sepAfter(i: Int): String

  37. def sepWidths: IndexedSeq[Int]

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

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

  40. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  44. 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.

  45. def [B](y: B): (TableDef[T], B)

    Implicit information
    This member is added by an implicit conversion from TableDef[T] to ArrowAssoc[TableDef[T]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def x: TableDef[T]

    Implicit information
    This member is added by an implicit conversion from TableDef[T] to ArrowAssoc[TableDef[T]] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: TableDef[T]

    Implicit information
    This member is added by an implicit conversion from TableDef[T] to Ensuring[TableDef[T]] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringfmt from TableDef[T] to StringFormat

Inherited by implicit conversion any2stringadd from TableDef[T] to StringAdd

Inherited by implicit conversion any2ArrowAssoc from TableDef[T] to ArrowAssoc[TableDef[T]]

Inherited by implicit conversion any2Ensuring from TableDef[T] to Ensuring[TableDef[T]]