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 TypeMethodDescriptioncharcharAt(int flags, int index) booleancontainsSymbolType(int type) booleanTrue if the currency symbol should replace the decimal separator.private longgetEndpoints(int flags) static intgetLengthFromEndpoints(long endpoints) getString(int flags) booleanhasBody()True if the pattern has a number placeholder like "0" or "#,##0.00"; false if the pattern does not have one.booleanbooleanintlength(int flags) booleanboolean
-
Field Details
-
pattern
-
positive
-
negative
-
-
Constructor Details
-
ParsedPatternInfo
-
-
Method Details
-
charAt
public char charAt(int flags, int index) - Specified by:
charAtin interfaceAffixPatternProvider
-
length
public int length(int flags) - Specified by:
lengthin interfaceAffixPatternProvider
-
getLengthFromEndpoints
public static int getLengthFromEndpoints(long endpoints) -
getString
- Specified by:
getStringin interfaceAffixPatternProvider
-
getEndpoints
private long getEndpoints(int flags) -
positiveHasPlusSign
public boolean positiveHasPlusSign()- Specified by:
positiveHasPlusSignin interfaceAffixPatternProvider
-
hasNegativeSubpattern
public boolean hasNegativeSubpattern()- Specified by:
hasNegativeSubpatternin interfaceAffixPatternProvider
-
negativeHasMinusSign
public boolean negativeHasMinusSign()- Specified by:
negativeHasMinusSignin interfaceAffixPatternProvider
-
hasCurrencySign
public boolean hasCurrencySign()- Specified by:
hasCurrencySignin interfaceAffixPatternProvider
-
containsSymbolType
public boolean containsSymbolType(int type) - Specified by:
containsSymbolTypein interfaceAffixPatternProvider
-
hasBody
public boolean hasBody()Description copied from interface:AffixPatternProviderTrue 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:
hasBodyin interfaceAffixPatternProvider
-
currencyAsDecimal
public boolean currencyAsDecimal()Description copied from interface:AffixPatternProviderTrue if the currency symbol should replace the decimal separator.- Specified by:
currencyAsDecimalin interfaceAffixPatternProvider
-