Package com.ibm.icu.impl.number
Class PatternStringParser.ParsedPatternInfo
java.lang.Object
com.ibm.icu.impl.number.PatternStringParser.ParsedPatternInfo
- All Implemented Interfaces:
AffixPatternProvider
- Enclosing class:
PatternStringParser
public static class PatternStringParser.ParsedPatternInfo
extends Object
implements AffixPatternProvider
Contains raw information about the parsed decimal format pattern string.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.ibm.icu.impl.number.AffixPatternProvider
AffixPatternProvider.Flags
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from interface com.ibm.icu.impl.number.AffixPatternProvider
FLAG_NEG_PREFIX, FLAG_NEG_SUFFIX, FLAG_POS_PREFIX, FLAG_POS_SUFFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int flags, int index) boolean
containsSymbolType
(int type) boolean
True if the currency symbol should replace the decimal separator.private long
getEndpoints
(int flags) static int
getLengthFromEndpoints
(long endpoints) 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
boolean
int
length
(int flags) boolean
boolean
-
Field Details
-
pattern
-
positive
-
negative
-
-
Constructor Details
-
ParsedPatternInfo
-
-
Method Details
-
charAt
public char charAt(int flags, int index) - Specified by:
charAt
in interfaceAffixPatternProvider
-
length
public int length(int flags) - Specified by:
length
in interfaceAffixPatternProvider
-
getLengthFromEndpoints
public static int getLengthFromEndpoints(long endpoints) -
getString
- Specified by:
getString
in interfaceAffixPatternProvider
-
getEndpoints
private long getEndpoints(int flags) -
positiveHasPlusSign
public boolean positiveHasPlusSign()- Specified by:
positiveHasPlusSign
in interfaceAffixPatternProvider
-
hasNegativeSubpattern
public boolean hasNegativeSubpattern()- Specified by:
hasNegativeSubpattern
in interfaceAffixPatternProvider
-
negativeHasMinusSign
public boolean negativeHasMinusSign()- Specified by:
negativeHasMinusSign
in interfaceAffixPatternProvider
-
hasCurrencySign
public boolean hasCurrencySign()- Specified by:
hasCurrencySign
in interfaceAffixPatternProvider
-
containsSymbolType
public boolean containsSymbolType(int type) - Specified by:
containsSymbolType
in interfaceAffixPatternProvider
-
hasBody
public boolean hasBody()Description copied from interface:AffixPatternProvider
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.- Specified by:
hasBody
in interfaceAffixPatternProvider
-
currencyAsDecimal
public boolean currencyAsDecimal()Description copied from interface:AffixPatternProvider
True if the currency symbol should replace the decimal separator.- Specified by:
currencyAsDecimal
in interfaceAffixPatternProvider
-