public abstract class ValidationMatcher extends Object implements NumberParseMatcher
NumberParseMatcher.Flexible| Constructor and Description |
|---|
ValidationMatcher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
match(StringSegment segment,
ParsedNumber result)
Runs this matcher starting at the beginning of the given StringSegment.
|
boolean |
smokeTest(StringSegment segment)
Performs a fast "smoke check" for whether or not this matcher could possibly match against the
given string segment.
|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpostProcesspublic boolean match(StringSegment segment, ParsedNumber result)
NumberParseMatchermatch in interface NumberParseMatchersegment - The StringSegment to match against. Matches always start at the beginning of the
segment. The segment is guaranteed to contain at least one char.result - The data structure to store results if the match succeeds.public boolean smokeTest(StringSegment segment)
NumberParseMatcherStringSegment.startsWith(int) method in order to correctly
handle case folding.smokeTest in interface NumberParseMatchersegment - The segment to check against.