us.bpsm.edn.parser
Interface Parser
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface and Description static interfaceParser.ConfigConfig describes the complete configuration of a Parser.
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.ObjectEND_OF_INPUTThe value returned bynextValue(Parseable)to indicate that no more values will can be parsed form the a givenParseable.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.lang.ObjectnextValue(Parseable pbr)Return the next value parsed frompbr.
-
-
-
Field Detail
-
END_OF_INPUT
static final java.lang.Object END_OF_INPUT
The value returned bynextValue(Parseable)to indicate that no more values will can be parsed form the a givenParseable.
-
-
Method Detail
-
nextValue
java.lang.Object nextValue(Parseable pbr)
Return the next value parsed frompbr. CallingnextValueon a Parser created with the default configuration can return any of the following:- A
Stringwith the contents of a string literal. - A
Characterfor a character literal. - A
Longfor an integer small enough to fit in its range and not marked by a trailing 'N'. - A
BigIntegerfor an integer too large to fit in a Long or marked by a trailing 'N'. - A
Doublefor a binary floating point literal - A
BigDecimalfor an arbitrary precision decimal floating point literal, which is indicated by a trailing 'M' in edn. - A
Symbolfor an edn symbol. ('nil', 'true' and 'false' are not symbols.) - A
Booleanfor a 'true' or 'false'. - A
nullfor a 'nil'. - A
Keywordfor an edn keyword, which looks like:somename. - The value
END_OF_INPUTto indicate that no more values can be parsed formpbr. - A
Listfor an edn list. - A
ListimplementingRandomAccessfor an edn vector. - A
Setfor an edn set. - A
Mapfor an edn map. - A
Datefor an instant literal. - A
UUIDfor an uuid literal.
- Returns:
- some Object or
null. - Throws:
EdnIOException- if the underlying Parseable throws an IOException.EdnSyntaxException- if the contents of the underlying Parseable violates the syntax of edn.
- A
-
-
DMelt 3.0 © DataMelt by jWork.ORG