public class AffixPatternMatcher extends SeriesMatcher implements AffixUtils.TokenConsumer
SeriesMatcher that matches EITHER a prefix OR a suffix.
AffixMatcher combines two of these in order to match both the prefix and suffix.NumberParseMatcher.Flexiblefrozen, matchers| Modifier and Type | Method and Description |
|---|---|
void |
consumeToken(int typeOrCp)
This method is NOT intended to be called directly.
|
boolean |
equals(Object other) |
static AffixPatternMatcher |
fromAffixPattern(String affixPattern,
AffixTokenMatcherFactory factory,
int parseFlags)
Creates an AffixPatternMatcher (based on SeriesMatcher) from the given affix pattern.
|
String |
getPattern() |
int |
hashCode() |
String |
toString() |
addMatcher, freeze, length, match, postProcess, smokeTestpublic static AffixPatternMatcher fromAffixPattern(String affixPattern, AffixTokenMatcherFactory factory, int parseFlags)
public void consumeToken(int typeOrCp)
consumeToken in interface AffixUtils.TokenConsumerpublic String getPattern()
public String toString()
toString in class SeriesMatcher