dotty.tools.dotc.parsing.JavaScanners

JavaScanner

Related Doc: package JavaScanners

class JavaScanner extends ScannerCommon

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. JavaScanner
  2. ScannerCommon
  3. TokenData
  4. CharArrayReader
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new JavaScanner(source: SourceFile, startFrom: Offset = 0)(implicit ctx: Context)

Type Members

  1. class CharArrayLookaheadReader extends CharArrayReader

    Definition Classes
    CharArrayReader

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. var base: Int

    the base of a number

    the base of a number

    Definition Classes
    TokenData
  6. val buf: Array[Char]

    Definition Classes
    ScannerCommonCharArrayReader
  7. var ch: Char

    the last read character

    the last read character

    Definition Classes
    CharArrayReader
  8. var charOffset: Int

    The offset one past the last read character

    The offset one past the last read character

    Definition Classes
    CharArrayReader
  9. def charVal: Char

    Convert current strVal to char value

    Convert current strVal to char value

    Definition Classes
    ScannerCommon
  10. def clone(): AnyRef

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

    Definition Classes
    TokenData
  12. def decodeUni: Boolean

    Switch whether unicode should be decoded

    Switch whether unicode should be decoded

    Attributes
    protected
    Definition Classes
    CharArrayReader
  13. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  15. var errOffset: Offset

    the last error offset

    the last error offset

    Definition Classes
    ScannerCommon
  16. def error(msg: String, off: Offset = offset): Unit

    Generate an error at the given offset

    Generate an error at the given offset

    Definition Classes
    ScannerCommonCharArrayReader
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def finishNamed(idtoken: Token = IDENTIFIER, target: TokenData = this): Unit

    Clear buffer and set name and token

    Clear buffer and set name and token

    Definition Classes
    ScannerCommon
  19. def floatVal: Double

    Definition Classes
    ScannerCommon
  20. def floatVal(negated: Boolean): Double

    Convert current strVal, base to double value

    Convert current strVal, base to double value

    Definition Classes
    ScannerCommon
  21. def flushBuf(buf: StringBuilder): String

    Return buffer contents and clear

    Return buffer contents and clear

    Definition Classes
    ScannerCommon
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. 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
  24. def getNumber(): Unit

    read a number into name and set base

    read a number into name and set base

    Attributes
    protected
  25. def getc(): Char

    Definition Classes
    CharArrayReader
  26. def getlitch(): Unit

    read next character in character or string literal:

    read next character in character or string literal:

    Attributes
    protected
  27. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  28. def incompleteInputError(msg: String): Unit

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

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

    Definition Classes
    ScannerCommon
  29. def intVal: Long

    Definition Classes
    ScannerCommon
  30. def intVal(negated: Boolean): Long

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

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

    Definition Classes
    ScannerCommon
  31. def isAtEnd: Boolean

    Definition Classes
    CharArrayReader
  32. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  33. def isUnicodeEscape: Boolean

    Is last character a unicode escape \\uxxxx?

    Is last character a unicode escape \\uxxxx?

    Definition Classes
    CharArrayReader
  34. var lastCharOffset: Int

    The offset before the last read character

    The offset before the last read character

    Definition Classes
    CharArrayReader
  35. 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
  36. 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
  37. var lineStartOffset: Int

    The start offset of the current line

    The start offset of the current line

    Definition Classes
    CharArrayReader
  38. val litBuf: StringBuilder

    A character buffer for literals

    A character buffer for literals

    Definition Classes
    ScannerCommon
  39. 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
  40. def lookaheadToken: Int

  41. var name: TermName

    the name of an identifier

    the name of an identifier

    Definition Classes
    TokenData
  42. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  43. val next: TokenData

    we need one token lookahead

  44. 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
  45. 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
  46. def nextToken(): Unit

  47. final def notify(): Unit

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

    Definition Classes
    AnyRef
  49. 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
  50. val prev: TokenData

  51. def putChar(c: Char): Unit

    append Unicode character to "litBuf" buffer

    append Unicode character to "litBuf" buffer

    Attributes
    protected
    Definition Classes
    ScannerCommon
  52. def setStrVal(): Unit

    Clear buffer and set string

    Clear buffer and set string

    Definition Classes
    ScannerCommon
  53. def skipComment(): Boolean

    Attributes
    protected
  54. val startFrom: Offset

    Definition Classes
    JavaScannerCharArrayReader
  55. var strVal: String

    the string value of a literal

    the string value of a literal

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

    Definition Classes
    AnyRef
  57. def toString(): String

    Definition Classes
    JavaScanner → AnyRef → Any
  58. def toToken(idx: Int): JavaTokens.Token

    Definition Classes
    JavaScannerScannerCommon
  59. var token: Token

    the next token

    the next token

    Definition Classes
    TokenData
  60. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ScannerCommon

Inherited from TokenData

Inherited from CharArrayReader

Inherited from AnyRef

Inherited from Any

Ungrouped