scala.tools.nsc.interpreter

ReplTokens

abstract class ReplTokens extends AnyRef

This began as an attempt at a completely minimal pretty printer for a token stream, but as it turns out it's "minimal, pretty, scala: pick any two." So now it's an unattractive hybrid between minimalism and other things. Still, it's a big improvement on the way I was printing source in the repl, so in it goes.

Source
ReplTokens.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ReplTokens
  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 ReplTokens()

Type Members

  1. trait Brackets extends ReplToken

  2. sealed abstract class Cozy extends AnyRef

  3. trait CozyWithLetters extends ReplToken

  4. case class Id(name: String) extends ReplToken with Product with Serializable

  5. trait InsistCozy extends ReplToken with InsistCozyLeft with InsistCozyRight

  6. trait InsistCozyLeft extends ReplToken

  7. trait InsistCozyRight extends ReplToken

  8. trait InsistSpaced extends ReplToken

  9. case class Lit[T](value: T) extends ReplToken with Product with Serializable

  10. sealed abstract class ReplToken extends AnyRef

  11. case class Token(value: Int, str: String) extends ReplToken with Product with Serializable

  12. class Tokenizer extends AnyRef

Abstract Value Members

  1. abstract val global: Global

Concrete 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 ReplTokens to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (ReplTokens, B)

    Implicit information
    This member is added by an implicit conversion from ReplTokens to ArrowAssoc[ReplTokens] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. object <*--| extends Cozy with Product with Serializable

  7. object <*> extends Cozy with Product with Serializable

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

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

    Definition Classes
    Any
  10. object At extends ReplToken with InsistCozyRight with Product with Serializable

  11. object Colon extends ReplToken with Product with Serializable

  12. object Comma extends ReplToken with InsistCozyLeft with Product with Serializable

  13. object Cozy extends AnyRef

  14. object Dot extends ReplToken with InsistCozy with Product with Serializable

  15. object Eof extends ReplToken with Product with Serializable

  16. object ErrorToken extends ReplToken with Product with Serializable

  17. object False extends ReplToken with Product with Serializable

  18. object Import extends ReplToken with Product with Serializable

  19. object LBrace extends ReplToken with InsistSpaced with Product with Serializable

  20. object LBracket extends ReplToken with Brackets with Product with Serializable

  21. object LParen extends ReplToken with Product with Serializable

  22. object Newline extends ReplToken with InsistCozy with Product with Serializable

  23. object Newlines extends ReplToken with InsistCozy with Product with Serializable

  24. object Null extends ReplToken with Product with Serializable

  25. object RBrace extends ReplToken with InsistSpaced with Product with Serializable

  26. object RBracket extends ReplToken with Brackets with Product with Serializable

  27. object RParen extends ReplToken with Product with Serializable

  28. object Semi extends ReplToken with Product with Serializable

  29. object Subtype extends ReplToken with InsistSpaced with Product with Serializable

  30. object Supertype extends ReplToken with InsistSpaced with Product with Serializable

  31. object True extends ReplToken with Product with Serializable

  32. object ViewBound extends ReplToken with InsistSpaced with Product with Serializable

  33. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  34. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  35. def ensuring(cond: (ReplTokens) ⇒ Boolean, msg: ⇒ Any): ReplTokens

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

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

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

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

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

    Definition Classes
    AnyRef → Any
  41. def escape(text: String): String

  42. def escapedChar(ch: Char): String

    Annotations
    @switch()
  43. def finalize(): Unit

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

    Implicit information
    This member is added by an implicit conversion from ReplTokens to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  45. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  47. def isAlphaId(t: ReplToken): Boolean

  48. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  49. def isOperatorId(t: ReplToken): Boolean

  50. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  53. def prettyPrint(tokens: TraversableOnce[ReplToken]): Unit

  54. def prettyPrintRaw(tokens: TraversableOnce[ReplToken]): Unit

  55. val self: Any

    Implicit information
    This member is added by an implicit conversion from ReplTokens to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
  56. val self: Any

    Implicit information
    This member is added by an implicit conversion from ReplTokens to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  57. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  58. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  62. def withRawTokens[T](body: ⇒ T): T

  63. object |--*--| extends Cozy with Product with Serializable

  64. object |--*> extends Cozy with Product with Serializable

  65. def [B](y: B): (ReplTokens, B)

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

Deprecated Value Members

  1. def x: ReplTokens

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

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: ReplTokens

    Implicit information
    This member is added by an implicit conversion from ReplTokens to Ensuring[ReplTokens] 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 ReplTokens to StringFormat

Inherited by implicit conversion any2stringadd from ReplTokens to StringAdd

Inherited by implicit conversion any2ArrowAssoc from ReplTokens to ArrowAssoc[ReplTokens]

Inherited by implicit conversion any2Ensuring from ReplTokens to Ensuring[ReplTokens]