Class AffixPatternMatcher
java.lang.Object
org.graalvm.shadowed.com.ibm.icu.impl.number.parse.SeriesMatcher
org.graalvm.shadowed.com.ibm.icu.impl.number.parse.AffixPatternMatcher
- All Implemented Interfaces:
AffixUtils.TokenConsumer,NumberParseMatcher
A specialized version of
SeriesMatcher that matches EITHER a prefix OR a suffix.
AffixMatcher combines two of these in order to match both the prefix and suffix.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.graalvm.shadowed.com.ibm.icu.impl.number.parse.NumberParseMatcher
NumberParseMatcher.Flexible -
Field Summary
Fields inherited from class org.graalvm.shadowed.com.ibm.icu.impl.number.parse.SeriesMatcher
frozen, matchers -
Method Summary
Modifier and TypeMethodDescriptionvoidconsumeToken(int typeOrCp) This method is NOT intended to be called directly.booleanstatic AffixPatternMatcherfromAffixPattern(String affixPattern, AffixTokenMatcherFactory factory, int parseFlags) Creates an AffixPatternMatcher (based on SeriesMatcher) from the given affix pattern.inthashCode()toString()Methods inherited from class org.graalvm.shadowed.com.ibm.icu.impl.number.parse.SeriesMatcher
addMatcher, freeze, length, match, postProcess, smokeTest
-
Method Details
-
fromAffixPattern
public static AffixPatternMatcher fromAffixPattern(String affixPattern, AffixTokenMatcherFactory factory, int parseFlags) Creates an AffixPatternMatcher (based on SeriesMatcher) from the given affix pattern. Returns null if the affix pattern is empty. -
consumeToken
public void consumeToken(int typeOrCp) This method is NOT intended to be called directly. It is here for the AffixUtils.TokenConsumer interface only.- Specified by:
consumeTokenin interfaceAffixUtils.TokenConsumer
-
getPattern
-
equals
-
hashCode
-
toString
- Overrides:
toStringin classSeriesMatcher
-