Package org.tomlj
Interface TomlParseResult
- All Superinterfaces:
TomlTable
The result from parsing a TOML document.
Parsing never throws for invalid input. Instead, every error is recorded in errors() and parsing continues
with the next expression, so a document with errors still yields the values that could be parsed. Callers should
check hasErrors() before relying on the result. A key/value pair containing a syntax error is omitted from
the result.
-
Method Summary
Modifier and TypeMethodDescriptionerrors()The errors that occurred during parsing.default booleantrueif the TOML document contained errors.Methods inherited from interface org.tomlj.TomlTable
contains, contains, dottedEntrySet, dottedEntrySet, dottedKeySet, dottedKeySet, entryPathSet, entryPathSet, entrySet, get, get, getArray, getArray, getArrayOrEmpty, getArrayOrEmpty, getBoolean, getBoolean, getBoolean, getBoolean, getDouble, getDouble, getDouble, getDouble, getLocalDate, getLocalDate, getLocalDate, getLocalDate, getLocalDateTime, getLocalDateTime, getLocalDateTime, getLocalDateTime, getLocalTime, getLocalTime, getLocalTime, getLocalTime, getLong, getLong, getLong, getLong, getOffsetDateTime, getOffsetDateTime, getOffsetDateTime, getOffsetDateTime, getString, getString, getString, getString, getTable, getTable, getTableOrEmpty, getTableOrEmpty, inputPositionOf, inputPositionOf, isArray, isArray, isBoolean, isBoolean, isDouble, isDouble, isEmpty, isLocalDate, isLocalDate, isLocalDateTime, isLocalDateTime, isLocalTime, isLocalTime, isLong, isLong, isOffsetDateTime, isOffsetDateTime, isString, isString, isTable, isTable, keyPathSet, keyPathSet, keySet, size, toJson, toJson, toJson, toJson, toMap, toToml, toToml
-
Method Details
-
hasErrors
default boolean hasErrors()trueif the TOML document contained errors.- Returns:
trueif the TOML document contained errors.
-
errors
List<TomlParseError> errors()The errors that occurred during parsing.- Returns:
- A list of errors.
-