nextLong

abstract fun nextLong(): Long

Returns the Token.NUMBER value of the next token, consuming it.

If the next token is a string, this method will attempt to parse it as an long. If the next token's numeric value cannot be exactly represented by a Long, this method throws.

Throws

if the next token is not a literal value, if the next literal value cannot be parsed as a number, or exactly represented as a Long.