Specifies a condition on a field to be parsed.
Specifies the format of a leaf field.
Specifies the format of a leaf field.
the pattern
Specifies the format of a leaf field through a parameter.
Specifies the format of a leaf field through a parameter.
the parameter name
Specifies to ignore (or not) the parsing of a field.
Specifies to ignore (or not) the parsing of a field.
true to ignore, false to parse
Specifies to ignore (or not) the parsing of a field based on a named parameter.
Specifies to ignore (or not) the parsing of a field based on a named parameter.
parameter name
Specifies a fixed width for a field to be parsed.
Specifies a fixed width for a field to be parsed.
fixed-width length in number of characters
Specifies a parameterized width for a field to be parsed.
Specifies a parameterized width for a field to be parsed.
The parameter name can be provided by calling:
scala
Parser.parse[T](params: Map[String, Any]) _
the name of the parameter.
Specifies to ignore any exception when parsing a leaf type.
Specifies to ignore any exception when parsing a leaf type. The value is set to its default.
Case class level options for parsing.
Case class level options for parsing.
if true, strings are trimmed otherwise left unchanged
if true, print debugging info to std otherwise nothing
Specifies a regex to parse a string, effectively making it variable-length.
Specifies a regex to parse a string, effectively making it variable-length.
a regular expression
Specifies a fixed number of repetitions for lists.
Specifies a fixed number of repetitions for lists.
a number of repetitions
Specifies the number of characters to skip after a successful string parsing.
Specifies the number of characters to skip after a successful string parsing.
number of characters
Specifies the true value of a boolean field.
Specifies the true value of a boolean field.
the value should evaluate to true
Specifies a condition on a field to be parsed. This annotation is only taken into account for repeatable types. The function provided is given the occurence index, starting from 0, in which the field is being parsed. If the function applied on the index return true, then the field is parsed. Otherwise, the field is ignored.
This annotation is an experiment and may be removed in the future.
a function on a index