public static class PatternStringParser.ParsedPatternInfo extends Object implements AffixPatternProvider
AffixPatternProvider.Flags| Modifier and Type | Field and Description |
|---|---|
PatternStringParser.ParsedSubpatternInfo |
negative |
String |
pattern |
PatternStringParser.ParsedSubpatternInfo |
positive |
FLAG_NEG_PREFIX, FLAG_NEG_SUFFIX, FLAG_POS_PREFIX, FLAG_POS_SUFFIX| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int flags,
int index) |
boolean |
containsSymbolType(int type) |
boolean |
currencyAsDecimal()
True if the currency symbol should replace the decimal separator.
|
static int |
getLengthFromEndpoints(long endpoints) |
String |
getString(int flags) |
boolean |
hasBody()
True if the pattern has a number placeholder like "0" or "#,##0.00"; false if the pattern does not
have one.
|
boolean |
hasCurrencySign() |
boolean |
hasNegativeSubpattern() |
int |
length(int flags) |
boolean |
negativeHasMinusSign() |
boolean |
positiveHasPlusSign() |
public String pattern
public PatternStringParser.ParsedSubpatternInfo positive
public PatternStringParser.ParsedSubpatternInfo negative
public char charAt(int flags,
int index)
charAt in interface AffixPatternProviderpublic int length(int flags)
length in interface AffixPatternProviderpublic static int getLengthFromEndpoints(long endpoints)
public String getString(int flags)
getString in interface AffixPatternProviderpublic boolean positiveHasPlusSign()
positiveHasPlusSign in interface AffixPatternProviderpublic boolean hasNegativeSubpattern()
hasNegativeSubpattern in interface AffixPatternProviderpublic boolean negativeHasMinusSign()
negativeHasMinusSign in interface AffixPatternProviderpublic boolean hasCurrencySign()
hasCurrencySign in interface AffixPatternProviderpublic boolean containsSymbolType(int type)
containsSymbolType in interface AffixPatternProviderpublic boolean hasBody()
AffixPatternProviderhasBody in interface AffixPatternProviderpublic boolean currencyAsDecimal()
AffixPatternProvidercurrencyAsDecimal in interface AffixPatternProvider