class JavaUnitScanner extends JavaScanner
- Alphabetic
- By Inheritance
- JavaUnitScanner
- JavaScanner
- DocScanner
- ScannerCommon
- CommonTokenData
- Cloneable
- Cloneable
- JavaTokenData
- AbstractJavaScanner
- AbstractJavaTokenData
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new JavaUnitScanner(unit: Global.CompilationUnit)
Type Members
-
type
ScanPosition = Int
- Definition Classes
- JavaTokenData → AbstractJavaTokenData
Value Members
-
val
NoPos: Int
- Definition Classes
- JavaTokenData → AbstractJavaTokenData
-
val
base: Int
the base of a number
the base of a number
- Definition Classes
- JavaTokenData
-
val
cbuf: collection.mutable.StringBuilder
character buffer for literals
character buffer for literals
- Definition Classes
- JavaScanner
-
def
copyFrom(td: JavaTokenData): Unit
- Definition Classes
- JavaTokenData
-
def
currentPos: Global.Position
- Definition Classes
- JavaScanner → AbstractJavaScanner
-
def
deprecationWarning(pos: Int, msg: String, since: String): Unit
- Definition Classes
- JavaUnitScanner → ScannerCommon
-
def
discardDocBuffer(): Unit
To prevent doc comments attached to expressions from leaking out of scope onto the next documentable entity, they are discarded upon passing a right brace, bracket, or parenthesis.
To prevent doc comments attached to expressions from leaking out of scope onto the next documentable entity, they are discarded upon passing a right brace, bracket, or parenthesis.
- Definition Classes
- DocScanner
-
def
error(pos: Int, msg: String): Unit
- Definition Classes
- JavaUnitScanner → ScannerCommon
-
def
floatVal(negated: Boolean): Double
convert name, base to double value
convert name, base to double value
- Definition Classes
- JavaScanner → AbstractJavaScanner
-
def
floatVal: Double
- Definition Classes
- JavaScanner → AbstractJavaScanner
-
def
flushDoc(): Global.DocComment
- Definition Classes
- DocScanner
-
implicit
def
g2p(pos: Int): Global.Position
- Definition Classes
- JavaUnitScanner → AbstractJavaScanner
-
var
in: JavaCharArrayReader
- Definition Classes
- JavaScanner
-
def
incompleteInputError(pos: Int, msg: String): Unit
- Definition Classes
- JavaUnitScanner → ScannerCommon
-
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
- JavaScanner
-
def
init(): Unit
INIT: read lookahead character and token.
INIT: read lookahead character and token.
- Definition Classes
- JavaScanner
-
def
intVal(negated: Boolean): Long
convert name to long value
convert name to long value
- Definition Classes
- JavaScanner → AbstractJavaScanner
-
def
intVal: Long
- Definition Classes
- JavaScanner → AbstractJavaScanner
-
val
lastPos: Int
the first character position after the previous token
the first character position after the previous token
- Definition Classes
- JavaTokenData
-
def
lookaheadToken: Int
- Definition Classes
- JavaScanner
-
val
name: Global.TermName
the name of an identifier or token
the name of an identifier or token
- Definition Classes
- JavaTokenData → AbstractJavaTokenData
-
val
next: JavaTokenData
we need one token lookahead
we need one token lookahead
- Definition Classes
- JavaScanner → AbstractJavaScanner
-
def
nextToken(): Unit
- Definition Classes
- JavaScanner → AbstractJavaScanner
-
val
pos: Int
the token's position
the token's position
- Definition Classes
- JavaTokenData → AbstractJavaTokenData
-
val
prev: JavaTokenData
- Definition Classes
- JavaScanner
-
def
registerDocComment(raw: String, pos: Global.Position): Unit
- Definition Classes
- DocScanner
-
def
syntaxError(msg: String): Unit
generate an error at the current token position
generate an error at the current token position
- Definition Classes
- JavaScanner
-
def
syntaxError(pos: Int, msg: String): Unit
generate an error at the given position
generate an error at the given position
- Definition Classes
- JavaScanner
-
def
toString(): String
- Definition Classes
- JavaScanner → AnyRef → Any
-
val
token: Int
the next token
the next token
- Definition Classes
- JavaTokenData → AbstractJavaTokenData
The Scala compiler and reflection APIs.