JavaScanner

class JavaScanner(source: SourceFile, val startFrom: Offset)(using x$3: Context) extends ScannerCommon
trait TokenData
class Object
trait Matchable
class Any

Type members

Inherited classlikes

Value members

Concrete methods

override def decodeUni: Boolean
Definition Classes
def floatVal(negated: Boolean): Double

convert name, base to double value

convert name, base to double value

def intVal(negated: Boolean): Long

convert name to long value

convert name to long value

override def toString(): String
Definition Classes
Any

Inherited methods

Inherited from:
TokenData
def error(msg: String, off: Offset): Unit

Generate an error at the given offset

Generate an error at the given offset

Inherited from:
ScannerCommon
Inherited from:
ScannerCommon
inline def finishNamed(): Unit

Finish an IDENTIFIER with this.name.

Finish an IDENTIFIER with this.name.

Inherited from:
ScannerCommon
def finishNamedToken(idtoken: Token, target: TokenData): Unit

Clear buffer and set name and token. If target is different from this, don't treat identifiers as end tokens.

Clear buffer and set name and token. If target is different from this, don't treat identifiers as end tokens.

Inherited from:
ScannerCommon
def getc(): Char
Inherited from:
CharArrayReader

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

Inherited from:
ScannerCommon

Is current token first one after a newline?

Is current token first one after a newline?

Inherited from:
TokenData
Inherited from:
TokenData
Inherited from:
CharArrayReader

Is token a COLON, after having converted COLONEOL to COLON? The conversion means that indentation is not significant after : anymore. So, warning: this is a side-effecting operation.

Is token a COLON, after having converted COLONEOL to COLON? The conversion means that indentation is not significant after : anymore. So, warning: this is a side-effecting operation.

Inherited from:
TokenData
def isIdent(name: Name): Boolean
Inherited from:
TokenData
Inherited from:
TokenData
Inherited from:
TokenData
Inherited from:
TokenData
Inherited from:
TokenData
Inherited from:
TokenData

Is last character a unicode escape \uxxxx?

Is last character a unicode escape \uxxxx?

Inherited from:
CharArrayReader
Inherited from:
CharArrayReader

A new reader that takes off at the current character position

A new reader that takes off at the current character position

Inherited from:
CharArrayReader
final def nextChar(): Unit

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

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

Inherited from:
CharArrayReader
final def nextRawChar(): Unit

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

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

Inherited from:
CharArrayReader
protected def putChar(c: Char): Unit

append Unicode character to "litBuf" buffer

append Unicode character to "litBuf" buffer

Inherited from:
ScannerCommon

Clear buffer and set string

Clear buffer and set string

Inherited from:
ScannerCommon
Inherited from:
ScannerCommon

Concrete fields

we need one token lookahead

we need one token lookahead

override val startFrom: Offset

Inherited fields

var base: Int

the base of a number

the base of a number

Inherited from:
TokenData
val buf: Array[Char]
Inherited from:
ScannerCommon
var ch: Char

the last read character

the last read character

Inherited from:
CharArrayReader

The offset one past the last read character

The offset one past the last read character

Inherited from:
CharArrayReader

the last error offset

the last error offset

Inherited from:
ScannerCommon

The offset before the last read character

The offset before the last read character

Inherited from:
CharArrayReader

the offset of the character following the token preceding this one

the offset of the character following the token preceding this one

Inherited from:
TokenData

the offset of the newline immediately preceding the token, or -1 if token is not preceded by a newline.

the offset of the newline immediately preceding the token, or -1 if token is not preceded by a newline.

Inherited from:
TokenData

The start offset of the current line

The start offset of the current line

Inherited from:
CharArrayReader
protected val litBuf: CharBuffer

A character buffer for literals

A character buffer for literals

Inherited from:
ScannerCommon

the name of an identifier

the name of an identifier

Inherited from:
TokenData

the offset of the first character of the current token

the offset of the first character of the current token

Inherited from:
TokenData

the string value of a literal

the string value of a literal

Inherited from:
TokenData

the next token

the next token

Inherited from:
TokenData