A convenience method for times when using the extractor is too heavy.
A convenience method for times when using the extractor is too heavy.
The String that should be parsed into a Rule.
The Rule that had been serialized; this method will throw a CannotDeserializeException if it is unable to deserialize the string into a rule based on the current parser.
A constructor for the SeqRule that takes a typed value.
A constructor for the SeqRule that takes a typed value. Override this if your class constructor does not simply take an InnerType.
I can't get the default to work, even after some effort - so giving up for now. I think some sort of type erasure allows this to work for Seq[T#InnerType] (in SeqRuleParser), whereas the non-erased type here does not work.
Implement this method to convert a string (the input from the parser) to the typed value in the Eq.
Implement this method to convert a string (the input from the parser) to the typed value in the Eq. You will need to implicitly define a parser in scope; if using default rules, simply import @DefaultParser
The string representation of the sub-type of Eq.
The parsed value of the sub-type.
Implement this to provide an extractor that pulls the Rule out of the String.
Implement this to provide an extractor that pulls the Rule out of the String.
The String that should be parsed into a Rule.
None if the string cannot be parsed; Some(rule) if the string can be parsed.
Use this to differentiate GreaterThan[Long] from other versions of GreaterThan.