1 /* GENERATED SOURCE. DO NOT MODIFY. */ 2 // © 2017 and later: Unicode, Inc. and others. 3 // License & terms of use: http://www.unicode.org/copyright.html#License 4 package ohos.global.icu.impl.number.parse; 5 6 /** 7 * @author sffc 8 * @hide exposed on OHOS 9 * 10 */ 11 public class RequireAffixValidator extends ValidationMatcher { 12 13 @Override postProcess(ParsedNumber result)14 public void postProcess(ParsedNumber result) { 15 if (result.prefix == null || result.suffix == null) { 16 // We saw a prefix or a suffix but not both. Fail the parse. 17 result.flags |= ParsedNumber.FLAG_FAIL; 18 } 19 } 20 21 @Override toString()22 public String toString() { 23 return "<RequireAffix>"; 24 } 25 26 } 27