Packages

case class Token(word: String, firstPosition: SourcePosition, whitespaceBefore: Boolean, text: Option[String] = None) extends PrimitiveTokenListElem with Product with Serializable

A Token is the basic TokenListElem

word

the characters making up the Token (excluding whitespace)

firstPosition

the SourcePosition of the first character

whitespaceBefore

true iff the Token was preceded by whitespace (true for the first Token, too)

text

the text lexed into this token, if different from word

Source
TokenList.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Token
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. PrimitiveTokenListElem
  7. TokenListElem
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Token(word: String, firstPosition: SourcePosition, whitespaceBefore: Boolean, text: Option[String] = None)

    word

    the characters making up the Token (excluding whitespace)

    firstPosition

    the SourcePosition of the first character

    whitespaceBefore

    true iff the Token was preceded by whitespace (true for the first Token, too)

    text

    the text lexed into this token, if different from word

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  8. val firstPosition: SourcePosition

    the first position included in this token

    the first position included in this token

    Definition Classes
    TokenTokenListElem
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. val lastPosition: SourcePosition

    the last position included in this token

    the last position included in this token

    Definition Classes
    PrimitiveTokenListElemTokenListElem
  12. val length: Int
    Definition Classes
    PrimitiveTokenListElem
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. def region: SourceRegion

    the region covered by this token

    the region covered by this token

    Definition Classes
    TokenListElem
  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. val text: Option[String]
  19. def toString(): String
    Definition Classes
    PrimitiveTokenListElem → AnyRef → Any
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  23. val whitespaceBefore: Boolean
  24. val word: String

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from PrimitiveTokenListElem

Inherited from TokenListElem

Inherited from AnyRef

Inherited from Any

Ungrouped