ParsedData

data class ParsedData<T>(val elementIndex: Int, val value: T, val unParsed: Boolean = false)(source)

Class to support recovery in parsing.

Constructors

Link copied to clipboard
constructor(elementIndex: Int, value: T, unParsed: Boolean = false)

Properties

Link copied to clipboard

The index of the child element that is the data that is parsed

Link copied to clipboard
val unParsed: Boolean = false

It is also possible to just provide a property index. In this case the value of this property should be true and the value of the value property is ignored (should be null)

Link copied to clipboard
val value: T

The value for the particular property