| Modifier and Type | Class and Description |
|---|---|
| public static class | PatternStringParser.ParsedPatternInfo
Contains raw information about the parsed decimal format pattern string. |
| public static class | |
| private static class | PatternStringParser.ParserState
An internal class used for tracking the cursor during parsing of a pattern string. |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static long | |
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void | consumePadding(PatternStringParser.
|
| private static void | |
| private static void | |
| public static void | parseToExistingProperties(String
The pattern string, like "#,##0.00" pattern, DecimalFormatProperties The property bag object to overwrite. properties, int ignoreRounding)Parses a pattern string into an existing property bag. |
| public static void | |
| private static void | parseToExistingPropertiesImpl(String pattern, DecimalFormatProperties properties, int ignoreRounding)
|
| public static PatternStringParser. | Returns: The results of the parse.The LDML decimal format pattern (Excel-style pattern) to parse. patternString)Runs the recursive descent parser on the given pattern string, returning a data structure with raw information about the pattern string. |
| public static DecimalFormatProperties | Returns: A property bag object.The pattern string, like "#,##0.00" pattern, int Whether to leave out rounding information (minFrac, maxFrac, and rounding increment)
when parsing the pattern. This may be desirable if a custom rounding mode, such as
CurrencyUsage, is to be used instead. One of
ignoreRounding)PatternStringParser#IGNORE_ROUNDING_ALWAYS,
PatternStringParser#IGNORE_ROUNDING_IF_CURRENCY, or
PatternStringParser#IGNORE_ROUNDING_NEVER.Parses a pattern string into a new property bag. |
| public static DecimalFormatProperties | |
| private static void | patternInfoToProperties(DecimalFormatProperties properties, PatternStringParser.
Finalizes the temporary data stored in the ParsedPatternInfo to the Properties. |
| IGNORE_ROUNDING_ALWAYS | back to summary |
|---|---|
| public static final int IGNORE_ROUNDING_ALWAYS | |
| IGNORE_ROUNDING_IF_CURRENCY | back to summary |
|---|---|
| public static final int IGNORE_ROUNDING_IF_CURRENCY | |
| IGNORE_ROUNDING_NEVER | back to summary |
|---|---|
| public static final int IGNORE_ROUNDING_NEVER | |
| PatternStringParser | back to summary |
|---|---|
| public PatternStringParser() | |
| consumeAffix | back to summary |
|---|---|
| private static long consumeAffix(PatternStringParser. | |
| consumeExponent | back to summary |
|---|---|
| private static void consumeExponent(PatternStringParser. | |
| consumeFormat | back to summary |
|---|---|
| private static void consumeFormat(PatternStringParser. | |
| consumeFractionFormat | back to summary |
|---|---|
| private static void consumeFractionFormat(PatternStringParser. | |
| consumeIntegerFormat | back to summary |
|---|---|
| private static void consumeIntegerFormat(PatternStringParser. | |
| consumeLiteral | back to summary |
|---|---|
| private static void consumeLiteral(PatternStringParser. | |
| consumePadding | back to summary |
|---|---|
| private static void consumePadding(PatternStringParser. | |
| consumePattern | back to summary |
|---|---|
| private static void consumePattern(PatternStringParser. | |
| consumeSubpattern | back to summary |
|---|---|
| private static void consumeSubpattern(PatternStringParser. | |
| parseToExistingProperties | back to summary |
|---|---|
| public static void parseToExistingProperties(String pattern, DecimalFormatProperties properties, int ignoreRounding) Parses a pattern string into an existing property bag. All properties that can be encoded into a pattern string will be overwritten with either their default value or with the value coming from the pattern string. Properties that cannot be encoded into a pattern string, such as rounding mode, are not modified.
| |
| parseToExistingProperties | back to summary |
|---|---|
| public static void parseToExistingProperties(String pattern, DecimalFormatProperties properties) | |
| parseToExistingPropertiesImpl | back to summary |
|---|---|
| private static void parseToExistingPropertiesImpl(String pattern, DecimalFormatProperties properties, int ignoreRounding) | |
| parseToPatternInfo | back to summary |
|---|---|
| public static PatternStringParser. Runs the recursive descent parser on the given pattern string, returning a data structure with raw information about the pattern string.
To obtain a more useful form of the data, consider using
| |
| parseToProperties | back to summary |
|---|---|
| public static DecimalFormatProperties parseToProperties(String pattern, int ignoreRounding) Parses a pattern string into a new property bag.
| |
| parseToProperties | back to summary |
|---|---|
| public static DecimalFormatProperties parseToProperties(String pattern) | |
| patternInfoToProperties | back to summary |
|---|---|
| private static void patternInfoToProperties(DecimalFormatProperties properties, PatternStringParser. Finalizes the temporary data stored in the ParsedPatternInfo to the Properties. | |
| Modifier and Type | Field and Description |
|---|---|
| public PatternStringParser. | |
| public String | |
| public PatternStringParser. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public char | |
| public boolean | containsSymbolType(int type)
Implements com. |
| public boolean | currencyAsDecimal()
Implements com. |
| private long | |
| public static int | |
| public String | |
| public boolean | hasBody()
Implements com. |
| public boolean | |
| public boolean | |
| public int | |
| public boolean | |
| public boolean |
| negative | back to summary |
|---|---|
| public PatternStringParser. | |
| pattern | back to summary |
|---|---|
| public String pattern | |
| positive | back to summary |
|---|---|
| public PatternStringParser. | |
| ParsedPatternInfo | back to summary |
|---|---|
| private ParsedPatternInfo(String pattern) | |
| charAt | back to summary |
|---|---|
| public char charAt(int flags, int index) Implements com.
| |
| containsSymbolType | back to summary |
|---|---|
| public boolean containsSymbolType(int type) Implements com.
| |
| currencyAsDecimal | back to summary |
|---|---|
| public boolean currencyAsDecimal() Implements com. Doc from com. True if the currency symbol should replace the decimal separator.
| |
| getEndpoints | back to summary |
|---|---|
| private long getEndpoints(int flags) | |
| getLengthFromEndpoints | back to summary |
|---|---|
| public static int getLengthFromEndpoints(long endpoints) | |
| getString | back to summary |
|---|---|
| public String getString(int flags) Implements com.
| |
| hasBody | back to summary |
|---|---|
| public boolean hasBody() Implements com. Doc from com. True if the pattern has a number placeholder like "0" or "#,##0.00"; false if the pattern does not have one. This is used in cases like compact notation, where the pattern replaces the entire number instead of rendering the number.
| |
| hasCurrencySign | back to summary |
|---|---|
| public boolean hasCurrencySign() Implements com.
| |
| hasNegativeSubpattern | back to summary |
|---|---|
| public boolean hasNegativeSubpattern() Implements com.
| |
| length | back to summary |
|---|---|
| public int length(int flags) Implements com.
| |
| negativeHasMinusSign | back to summary |
|---|---|
| public boolean negativeHasMinusSign() Implements com.
| |
| positiveHasPlusSign | back to summary |
|---|---|
| public boolean positiveHasPlusSign() Implements com.
| |
| Modifier and Type | Field and Description |
|---|---|
| public boolean | |
| public int | |
| public int | |
| public int | |
| public int | |
| public long | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public int | |
| public int | |
| public int | |
| public int | |
| public int | |
| public long | |
| public Padder. | |
| public long | |
| public DecimalQuantity_DualStorageBCD | rounding
Deprecated
as a consequence of
DecimalQuantity_DualStorageBCD being deprecated.
|
| public long | |
| public int |
| Access | Constructor and Description |
|---|---|
| public |
| exponentHasPlusSign | back to summary |
|---|---|
| public boolean exponentHasPlusSign | |
| exponentZeros | back to summary |
|---|---|
| public int exponentZeros | |
| fractionHashSigns | back to summary |
|---|---|
| public int fractionHashSigns | |
| fractionNumerals | back to summary |
|---|---|
| public int fractionNumerals | |
| fractionTotal | back to summary |
|---|---|
| public int fractionTotal | |
| groupingSizes | back to summary |
|---|---|
| public long groupingSizes | |
| hasCurrencyDecimal | back to summary |
|---|---|
| public boolean hasCurrencyDecimal | |
| hasCurrencySign | back to summary |
|---|---|
| public boolean hasCurrencySign | |
| hasDecimal | back to summary |
|---|---|
| public boolean hasDecimal | |
| hasMinusSign | back to summary |
|---|---|
| public boolean hasMinusSign | |
| hasPercentSign | back to summary |
|---|---|
| public boolean hasPercentSign | |
| hasPerMilleSign | back to summary |
|---|---|
| public boolean hasPerMilleSign | |
| hasPlusSign | back to summary |
|---|---|
| public boolean hasPlusSign | |
| integerAtSigns | back to summary |
|---|---|
| public int integerAtSigns | |
| integerLeadingHashSigns | back to summary |
|---|---|
| public int integerLeadingHashSigns | |
| integerNumerals | back to summary |
|---|---|
| public int integerNumerals | |
| integerTotal | back to summary |
|---|---|
| public int integerTotal | |
| integerTrailingHashSigns | back to summary |
|---|---|
| public int integerTrailingHashSigns | |
| paddingEndpoints | back to summary |
|---|---|
| public long paddingEndpoints | |
| paddingLocation | back to summary |
|---|---|
| public Padder. | |
| prefixEndpoints | back to summary |
|---|---|
| public long prefixEndpoints | |
| rounding | back to summary |
|---|---|
| public DecimalQuantity_DualStorageBCD rounding
Deprecated as a consequence of | |
| suffixEndpoints | back to summary |
|---|---|
| public long suffixEndpoints | |
| widthExceptAffixes | back to summary |
|---|---|
| public int widthExceptAffixes | |
| ParsedSubpatternInfo | back to summary |
|---|---|
| public ParsedSubpatternInfo() | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv IllegalArgumentException |
| offset | back to summary |
|---|---|
| pack-priv int offset | |
| pattern | back to summary |
|---|---|
| pack-priv final String pattern | |
| ParserState | back to summary |
|---|---|
| pack-priv ParserState(String pattern) | |
| next | back to summary |
|---|---|
| pack-priv int next() Returns the next code point and then steps forward. | |
| peek | back to summary |
|---|---|
| pack-priv int peek() Returns the next code point, or -1 if string is too short. | |
| peek2 | back to summary |
|---|---|
| pack-priv int peek2() Returns the code point after the next code point, or -1 if string is too short. | |
| toParseException | back to summary |
|---|---|
| pack-priv IllegalArgumentException toParseException(String message) | |