abstract class JavaScanner extends AbstractJavaScanner with JavaTokenData with Cloneable with ScannerCommon with DocScanner
- Alphabetic
- By Inheritance
- JavaScanner
- DocScanner
- ScannerCommon
- CommonTokenData
- Cloneable
- JavaTokenData
- AbstractJavaScanner
- AbstractJavaTokenData
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new JavaScanner()
Type Members
- type ScanPosition = Int
- Definition Classes
- JavaTokenData → AbstractJavaTokenData
Abstract Value Members
- abstract def deprecationWarning(off: JavaScanners.Offset, msg: String, since: String): Unit
- Definition Classes
- ScannerCommon
- abstract def error(off: JavaScanners.Offset, msg: String): Unit
- Definition Classes
- ScannerCommon
- implicit abstract def g2p(pos: ScanPosition): Global.Position
- Definition Classes
- AbstractJavaScanner
- abstract def incompleteInputError(off: JavaScanners.Offset, msg: String): Unit
- Definition Classes
- ScannerCommon
- abstract def warning(off: JavaScanners.Offset, msg: String, category: WarningCategory): Unit
- Definition Classes
- ScannerCommon
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from JavaScanner toany2stringadd[JavaScanner] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (JavaScanner, B)
- Implicit
- This member is added by an implicit conversion from JavaScanner toArrowAssoc[JavaScanner] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val NoPos: Int
- Definition Classes
- JavaTokenData → AbstractJavaTokenData
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val base: Int
the base of a number
the base of a number
- Definition Classes
- JavaTokenData
- def beginDocComment(prefix: String): Unit
- Attributes
- protected
- Definition Classes
- DocScanner
- val cbuf: collection.mutable.StringBuilder
character buffer for literals
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def copyFrom(td: JavaTokenData): JavaScanner.this.type
- Definition Classes
- JavaTokenData
- def currentPos: Global.Position
- Definition Classes
- JavaScanner → AbstractJavaScanner
- 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 ensuring(cond: (JavaScanner) => Boolean, msg: => Any): JavaScanner
- Implicit
- This member is added by an implicit conversion from JavaScanner toEnsuring[JavaScanner] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (JavaScanner) => Boolean): JavaScanner
- Implicit
- This member is added by an implicit conversion from JavaScanner toEnsuring[JavaScanner] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): JavaScanner
- Implicit
- This member is added by an implicit conversion from JavaScanner toEnsuring[JavaScanner] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): JavaScanner
- Implicit
- This member is added by an implicit conversion from JavaScanner toEnsuring[JavaScanner] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def finishDocComment(): Unit
- Attributes
- protected
- Definition Classes
- DocScanner
- 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
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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
- def getNumber(): Unit
read a number into name and set base
read a number into name and set base
- Attributes
- protected
- def getlitch(scanOnly: Boolean = false, inTextBlock: Boolean = false): Unit
read next character in character or string literal:
read next character in character or string literal:
- scanOnly
skip emitting errors or adding to the literal buffer
- inTextBlock
is this for a text block?
- Attributes
- protected
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- var in: JavaCharArrayReader
- def incompleteInputError(msg: String): Unit
signal an error where the input ended in the middle of a token
- def init(): Unit
INIT: read lookahead character and token.
- 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
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- val name: Global.TermName
the name of an identifier or token
the name of an identifier or token
- Definition Classes
- JavaTokenData → AbstractJavaTokenData
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val next: JavaTokenData
we need one token lookahead
we need one token lookahead
- Definition Classes
- JavaScanner → AbstractJavaScanner
- def nextToken(): Unit
Consume and discard the next token.
Consume and discard the next token.
- Definition Classes
- JavaScanner → ScannerCommon → AbstractJavaScanner
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val pos: Int
the token's position
the token's position
- Definition Classes
- JavaTokenData → AbstractJavaTokenData
- val prev: JavaTokenData
- def processCommentChar(): Unit
- Attributes
- protected
- Definition Classes
- DocScanner
- def putChar(c: Char): Unit
append Unicode character to "lit" buffer
append Unicode character to "lit" buffer
- Attributes
- protected
- final def putCommentChar(): Unit
- Attributes
- protected
- def registerDocComment(raw: String, pos: Global.Position): Unit
- Definition Classes
- DocScanner
- final def skipBlockComment(isDoc: Boolean): Unit
- Attributes
- protected
- Annotations
- @tailrec()
- final def skipComment(): Boolean
- Attributes
- protected
- final def skipLineComment(): Unit
- Attributes
- protected
- Annotations
- @tailrec()
- def skipTrailingComma(right: JavaScanners.Token): Boolean
- Definition Classes
- ScannerCommon
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def syntaxError(msg: String): Unit
generate an error at the current token position
- def syntaxError(pos: Int, msg: String): Unit
generate an error at the given position
- def toString(): String
- Definition Classes
- JavaScanner → AnyRef → Any
- val token: Int
the next token
the next token
- Definition Classes
- JavaTokenData → AbstractJavaTokenData
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from JavaScanner toStringFormat[JavaScanner] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (JavaScanner, B)
- Implicit
- This member is added by an implicit conversion from JavaScanner toArrowAssoc[JavaScanner] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.
The Scala compiler and reflection APIs.