Package com.ibm.icu.impl.number.parse
Class RequireDecimalSeparatorValidator
- java.lang.Object
-
- com.ibm.icu.impl.number.parse.ValidationMatcher
-
- com.ibm.icu.impl.number.parse.RequireDecimalSeparatorValidator
-
- All Implemented Interfaces:
NumberParseMatcher
public class RequireDecimalSeparatorValidator extends ValidationMatcher
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.ibm.icu.impl.number.parse.NumberParseMatcher
NumberParseMatcher.Flexible
-
-
Field Summary
Fields Modifier and Type Field Description private static RequireDecimalSeparatorValidator
A
private static RequireDecimalSeparatorValidator
B
private boolean
patternHasDecimalSeparator
-
Constructor Summary
Constructors Modifier Constructor Description private
RequireDecimalSeparatorValidator(boolean patternHasDecimalSeparator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RequireDecimalSeparatorValidator
getInstance(boolean patternHasDecimalSeparator)
void
postProcess(ParsedNumber result)
Method called at the end of a parse, after all matchers have failed to consume any more chars.java.lang.String
toString()
-
Methods inherited from class com.ibm.icu.impl.number.parse.ValidationMatcher
match, smokeTest
-
-
-
-
Field Detail
-
A
private static final RequireDecimalSeparatorValidator A
-
B
private static final RequireDecimalSeparatorValidator B
-
patternHasDecimalSeparator
private final boolean patternHasDecimalSeparator
-
-
Method Detail
-
getInstance
public static RequireDecimalSeparatorValidator getInstance(boolean patternHasDecimalSeparator)
-
postProcess
public void postProcess(ParsedNumber result)
Description copied from interface:NumberParseMatcher
Method called at the end of a parse, after all matchers have failed to consume any more chars. Allows a matcher to make final modifications to the result given the knowledge that no more matches are possible.- Parameters:
result
- The data structure to store results.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-