| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final List | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | NumberParserImpl(int
The parser settings defined in the PARSE_FLAG_* fields. parseFlags)Creates a new, empty parser. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public static NumberParserImpl | |
| public static NumberParserImpl | Returns: An immutable parser object.The property bag. properties, DecimalFormatSymbols The locale's symbols. symbols, boolean True to force a currency match and use monetary separators; false otherwise. parseCurrency)Creates a parser from the given DecimalFormatProperties. |
| public static NumberParserImpl | createSimpleParser(ULocale locale, String pattern, int parseFlags)
Creates a parser with most default options. |
| public void | |
| public int | |
| public void | |
| public void | parse(String
The string to parse. This is a String, not CharSequence, to enforce assumptions about
immutability (CharSequences are not guaranteed to be immutable). input, int The index into the string at which to start parsing. start, boolean Whether to use the faster but potentially less accurate greedy code path. greedy, ParsedNumber Output variable to store results. result)Primary entrypoint to parsing code path. |
| private void | |
| private void | |
| public static Number | parseStatic(String input, ParsePosition ppos, DecimalFormatProperties properties, DecimalFormatSymbols symbols)
Parses the string without returning a NumberParserImpl. |
| public static CurrencyAmount | parseStaticCurrency(String input, ParsePosition ppos, DecimalFormatProperties properties, DecimalFormatSymbols symbols)
Parses the string without returning a NumberParserImpl. |
| public String |
| frozen | back to summary |
|---|---|
| private boolean frozen | |
| matchers | back to summary |
|---|---|
| private final List<NumberParseMatcher> matchers | |
| parseFlags | back to summary |
|---|---|
| private final int parseFlags | |
| NumberParserImpl | back to summary |
|---|---|
| public NumberParserImpl(int parseFlags) Creates a new, empty parser.
| |
| addMatcher | back to summary |
|---|---|
| public void addMatcher(NumberParseMatcher matcher) | |
| addMatchers | back to summary |
|---|---|
| public void addMatchers(Collection<? extends NumberParseMatcher> matchers) | |
| createDefaultParserForLocale | back to summary |
|---|---|
| public static NumberParserImpl createDefaultParserForLocale(ULocale loc) | |
| createParserFromProperties | back to summary |
|---|---|
| public static NumberParserImpl createParserFromProperties(DecimalFormatProperties properties, DecimalFormatSymbols symbols, boolean parseCurrency) Creates a parser from the given DecimalFormatProperties. This is the endpoint used by DecimalFormat in production code.
| |
| createSimpleParser | back to summary |
|---|---|
| public static NumberParserImpl createSimpleParser(ULocale locale, String pattern, int parseFlags) Creates a parser with most default options. Used for testing, not production. | |
| freeze | back to summary |
|---|---|
| public void freeze() | |
| getParseFlags | back to summary |
|---|---|
| public int getParseFlags() | |
| parse | back to summary |
|---|---|
| public void parse(String input, boolean greedy, ParsedNumber result) | |
| parse | back to summary |
|---|---|
| public void parse(String input, int start, boolean greedy, ParsedNumber result) Primary entrypoint to parsing code path.
| |
| parseGreedy | back to summary |
|---|---|
| private void parseGreedy(StringSegment segment, ParsedNumber result) | |
| parseLongestRecursive | back to summary |
|---|---|
| private void parseLongestRecursive(StringSegment segment, ParsedNumber result, int recursionLevels) | |
| parseStatic | back to summary |
|---|---|
| public static Number parseStatic(String input, ParsePosition ppos, DecimalFormatProperties properties, DecimalFormatSymbols symbols) Parses the string without returning a NumberParserImpl. Used for testing, not production. | |
| parseStaticCurrency | back to summary |
|---|---|
| public static CurrencyAmount parseStaticCurrency(String input, ParsePosition ppos, DecimalFormatProperties properties, DecimalFormatSymbols symbols) Parses the string without returning a NumberParserImpl. Used for testing, not production. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |