DefaultParserInput

wjson.ParserInput.DefaultParserInput
abstract class DefaultParserInput extends ParserInput

Attributes

Graph
Supertypes
trait ParserInput
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def cursor: Int
def getLine(index: Int): Line
inline protected def incrCursor(): Unit

move cursor to next char

move cursor to next char

Attributes

protected def resetCursor(pos: Int): Unit

move to given position. in InterpolationParserInput, it may used to sync cursor and arguments.

move to given position. in InterpolationParserInput, it may used to sync cursor and arguments.

Attributes

Inherited methods

in case of StringContext interpolator, return the current argument and advance the argument cursor

in case of StringContext interpolator, return the current argument and advance the argument cursor

Attributes

Inherited from:
ParserInput
def nextChar(): Char

Advance the cursor and get the next char. Since the char is required to be a 7-Bit ASCII char no decoding is required.

Advance the cursor and get the next char. Since the char is required to be a 7-Bit ASCII char no decoding is required.

Attributes

Inherited from:
ParserInput
def nextUtf8Char(): Char

Advance the cursor and get the next char, which could potentially be outside of the 7-Bit ASCII range. Therefore decoding might be required.

Advance the cursor and get the next char, which could potentially be outside of the 7-Bit ASCII range. Therefore decoding might be required.

Attributes

Inherited from:
ParserInput
def sliceCharArray(start: Int, end: Int): Array[Char]

Attributes

Inherited from:
ParserInput