public interface Scanner
Scanners.newScanner() to get an instance.| Modifier and Type | Method and Description |
|---|---|
Object |
nextToken(Parseable pbr)
|
Object nextToken(Parseable pbr)
Parseable may be any of the
members of Token or instances of the Java classes used to
represent atomic values recognized by Scanner.
The value Token.END_OF_INPUT marks the end of input, indicating
that the underlying Parseable has been fully consumed.
In addition to the members of Token, nextToken(…) may
return any of the following:
String with the contents of a string literal.Character for a character literal.Boolean for a 'true' or 'false'.
Long for an integer small enough to fit in its range and
not marked by a trailing 'N'.BigInteger for an integer too large to fit in a Long or
marked by a trailing 'N'.Double for a binary floating point literalBigDecimal for an arbitrary precision decimal floating
point literal, which is indicated by a trailing 'M' in edn.Symbol for an edn symbol. ('nil', 'true' and 'false' are
not symbols.)Keyword for an edn keyword, which looks like
:somename.Tag indicating that the next value parsed from the TokenSeq
should be transformed by a function associated with this Tag.pbr - a Parseable to read the next token from; must not be null.Parseable (never
null).EdnIOException - if the underlying Parseable throws an IOException.EdnSyntaxException - if the contents of the underlying Parseable violates the
syntax of edn.Copyright © 2020. All rights reserved.