class LegacyScanner extends AnyRef
- Alphabetic
- By Inheritance
- LegacyScanner
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
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 LegacyScanner to any2stringadd[LegacyScanner] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (LegacyScanner, B)
- Implicit
- This member is added by an implicit conversion from LegacyScanner to ArrowAssoc[LegacyScanner] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
val
cbuf: collection.mutable.StringBuilder
A character buffer for literals
-
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
- def checkNoLetter(): Unit
- def checkNoTrailingSeparator(): Unit
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val curr: LegacyTokenData
-
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.
-
def
emitIdentifierDeprecationWarnings: Boolean
Determines whether this scanner should emit identifier deprecation warnings, e.g.
Determines whether this scanner should emit identifier deprecation warnings, e.g. when seeing
macro' orthen', which are planned to become keywords in future versions of Scala.- Attributes
- protected
-
def
ensuring(cond: (LegacyScanner) ⇒ Boolean, msg: ⇒ Any): LegacyScanner
- Implicit
- This member is added by an implicit conversion from LegacyScanner to Ensuring[LegacyScanner] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (LegacyScanner) ⇒ Boolean): LegacyScanner
- Implicit
- This member is added by an implicit conversion from LegacyScanner to Ensuring[LegacyScanner] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): LegacyScanner
- Implicit
- This member is added by an implicit conversion from LegacyScanner to Ensuring[LegacyScanner] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): LegacyScanner
- Implicit
- This member is added by an implicit conversion from LegacyScanner to Ensuring[LegacyScanner] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
fetchToken(): Unit
read next token, filling TokenData fields of Scanner.
read next token, filling TokenData fields of Scanner.
- Attributes
- protected
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def flushDoc(): Unit
-
def
foreach(f: (LegacyTokenData) ⇒ Unit): Unit
Initialize scanner; call f on each scanned token data
-
final
def
getClass(): Class[_]
- 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
getLitChar(): Unit
copy current character into cbuf, interpreting any escape sequences, and advance to next character.
copy current character into cbuf, interpreting any escape sequences, and advance to next character.
- Attributes
- protected
-
def
getNumber(): Unit
Read a number into strVal and set base
Read a number into strVal and set base
- Attributes
- protected
- def getUnquote(): Unit
- def getXml(): Unit
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
invalidEscape(): Unit
- Attributes
- protected
- def isAtEnd: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val next: LegacyTokenData
-
def
nextToken(): Unit
Produce next token, filling curr TokenData fields of Scanner.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val prev: LegacyTokenData
-
def
putChar(c: Char): Unit
append Unicode character to "cbuf" buffer
append Unicode character to "cbuf" buffer
- Attributes
- protected
-
def
putCommentChar(): Unit
- Attributes
- protected
- val reader: CharArrayReader
- val reporter: Reporter
- def resume(lastCode: LegacyToken): Unit
-
var
sepRegions: List[LegacyToken]
a stack of tokens which indicates whether line-ends can be statement separators also used for keeping track of nesting levels.
a stack of tokens which indicates whether line-ends can be statement separators also used for keeping track of nesting levels. We keep track of the closing symbol of a region. This can be
- RPAREN if region starts with '('
- RBRACKET if region starts with '['
- RBRACE if region starts with '{'
- ARROW if region starts with
case - STRINGLIT if region is a string interpolation expression starting with '${' (the STRINGLIT appears twice in succession on the stack iff the expression is a multiline string literal).
- def skipBlockComment(): Unit
-
def
skipComment(): Boolean
Precondition: ch == '/' Returns true if a comment was skipped.
- def skipDocComment(): Unit
-
final
def
skipNestedComments(): Unit
- Annotations
- @tailrec()
-
def
skipToken(): Offset
read next token and return last offset
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- LegacyScanner → AnyRef → Any
-
val
upcomingXmlLiteralParts: Map[Offset, (Offset, Boolean)]
A map of upcoming xml literal parts that are left to be returned in nextToken().
A map of upcoming xml literal parts that are left to be returned in nextToken().
The keys are offset start positions of an xml literal and the values are the respective offset end positions and a boolean indicating if the part is the last part.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
→[B](y: B): (LegacyScanner, B)
- Implicit
- This member is added by an implicit conversion from LegacyScanner to ArrowAssoc[LegacyScanner] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
Deprecated Value Members
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from LegacyScanner to StringFormat[LegacyScanner] 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,formattedresolves to the new method in String which has reversed parameters.