scala.tools.nsc.ast.parser.Scanners

Scanner

abstract class Scanner extends CharArrayReader with TokenData with ScannerCommon

Source
Scanners.scala
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Scanner
  2. ScannerCommon
  3. TokenData
  4. CommonTokenData
  5. CharArrayReader
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Scanner()

Type Members

  1. class CharArrayLookaheadReader extends CharArrayReader

Abstract Value Members

  1. abstract val buf: Array[Char]

    Definition Classes
    CharArrayReader
  2. abstract def error(off: Int, msg: String): Unit

    Definition Classes
    ScannerCommon
  3. abstract def incompleteInputError(off: Int, msg: String): Unit

    Definition Classes
    ScannerCommon
  4. abstract def warning(off: Int, msg: String): Unit

    Definition Classes
    ScannerCommon

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

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

    Definition Classes
    Any
  6. def applyBracePatch(): Boolean

    overridden in UnitScanners: apply brace patch if one exists for this offset return true if subsequent end of line handling should be suppressed.

  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. var base: Int

    the base of a number

    the base of a number

    Definition Classes
    TokenData
  9. def buildDocs: Boolean

    Should doc comments be built?

  10. val cbuf: StringBuilder

    A character buffer for literals

  11. var ch: Char

    the last read character

    the last read character

    Definition Classes
    CharArrayReader
  12. def charLitOr(op: () ⇒ Unit): Unit

    Parse character literal if current character is followed by \', or follow with given op and return a symbol literal token

  13. var charOffset: Int

    The offset one past the last read character

    The offset one past the last read character

    Definition Classes
    CharArrayReader
  14. def charVal: Char

    Convert current strVal to char value

  15. def checkNoLetter(): Unit

  16. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. def copyFrom(td: TokenData): Unit

    Definition Classes
    TokenData
  18. def decodeUni: Boolean

    Definition Classes
    CharArrayReader
  19. var docBuffer: StringBuilder

    buffer for the documentation comment

  20. var docPos: Position

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

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

    Definition Classes
    AnyRef → Any
  23. var errOffset: Offset

    the last error offset

  24. final def fetchToken(): Unit

    read next token, filling TokenData fields of Scanner.

    read next token, filling TokenData fields of Scanner.

    Attributes
    protected
  25. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. def floatVal: Double

  27. def floatVal(negated: Boolean): Double

    Convert current strVal, base to double value

  28. def flush: Scanner

  29. def flushDoc: DocComment

    Return current docBuffer and set docBuffer to null

  30. def foundComment(value: String, start: Int, end: Int): Unit

    Attributes
    protected
  31. def foundDocComment(value: String, start: Int, end: Int): Unit

    Attributes
    protected
  32. final def getClass(): java.lang.Class[_]

    Definition Classes
    AnyRef → Any
  33. def getFraction(): Unit

    read fractional part and exponent of floating point number if one is present.

    read fractional part and exponent of floating point number if one is present.

    Attributes
    protected
  34. def getLitChar(): Unit

    read next character in character or string literal:

    read next character in character or string literal:

    Attributes
    protected
  35. def getNumber(): Unit

    Read a number into strVal and set base

    Read a number into strVal and set base

    Attributes
    protected
  36. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  37. def healBraces(): List[BracePatch]

    overridden in UnitScanners

  38. def inFirstOfStat(token: Int): Boolean

    Can token start a statement?

  39. def inLastOfStat(token: Int): Boolean

    Can token end a statement?

  40. def incompleteInputError(msg: String): Unit

    signal an error where the input ended in the middle of a token

  41. def init(): Unit

    Initialization method: read first char, then first token

  42. def intVal: Long

  43. def intVal(negated: Boolean): Long

    Convert current strVal, base to long value This is tricky because of max negative value.

  44. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  45. def isUnicodeEscape: Boolean

    Is last character a unicode escape \\uxxxx?

    Is last character a unicode escape \\uxxxx?

    Definition Classes
    CharArrayReader
  46. var lastLineStartOffset: Int

    The start offset of the line before the current one

    The start offset of the line before the current one

    Definition Classes
    CharArrayReader
  47. var lastOffset: Offset

    the offset of the character following the token preceding this one

    the offset of the character following the token preceding this one

    Definition Classes
    TokenData
  48. var lineStartOffset: Int

    The start offset of the current line

    The start offset of the current line

    Definition Classes
    CharArrayReader
  49. def lookaheadReader: CharArrayLookaheadReader

    A new reader that takes off at the current character position

    A new reader that takes off at the current character position

    Definition Classes
    CharArrayReader
  50. var name: TermName

    the name of an identifier

    the name of an identifier

    Definition Classes
    TokenDataCommonTokenData
  51. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  52. val next: TokenData

    we need one token lookahead and one token history

  53. final def nextChar(): Unit

    Advance one character; reducing CR;LF pairs to just LF

    Advance one character; reducing CR;LF pairs to just LF

    Definition Classes
    CharArrayReader
  54. final def nextRawChar(): Unit

    Advance one character, leaving CR;LF pairs intact.

    Advance one character, leaving CR;LF pairs intact. This is for use in multi-line strings, so there are no "potential line ends" here.

    Definition Classes
    CharArrayReader
  55. def nextToken(): Unit

    Produce next token, filling TokenData fields of Scanner.

  56. final def notify(): Unit

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

    Definition Classes
    AnyRef
  58. var offset: Offset

    the offset of the first character of the current token

    the offset of the first character of the current token

    Definition Classes
    TokenData
  59. def parenBalance(token: Int): Int

    overridden in UnitScanners

  60. val prev: TokenData

  61. def putChar(c: Char): Unit

    append Unicode character to "cbuf" buffer

    append Unicode character to "cbuf" buffer

    Attributes
    protected
  62. def putDocChar(c: Char): Unit

    add the given character to the documentation buffer

    add the given character to the documentation buffer

    Attributes
    protected
  63. def resume(lastCode: Int): Unit

  64. var sepRegions: List[Int]

    a stack of tokens which indicates whether line-ends can be statement separators

  65. def skipToken(): Offset

    read next token and return last offset

  66. var strVal: String

    the string value of a literal

    the string value of a literal

    Definition Classes
    TokenData
  67. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  68. def syntaxError(msg: String): Unit

    generate an error at the current token offset

  69. def syntaxError(off: Offset, msg: String): Unit

    generate an error at the given offset

  70. def toString(): String

    Definition Classes
    Scanner → AnyRef → Any
  71. var token: Int

    the next token

    the next token

    Definition Classes
    TokenDataCommonTokenData
  72. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ScannerCommon

Inherited from TokenData

Inherited from CommonTokenData

Inherited from CharArrayReader

Inherited from AnyRef

Inherited from Any