| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final String | |
| private final String | |
| private final String | |
| private final String[] | |
| private final TextTrieMap | |
| private final TextTrieMap |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CombinedCurrencyMatcher | |
| public boolean | match(StringSegment
The StringSegment to match against. Matches always start at the beginning of the
segment. The segment is guaranteed to contain at least one char. segment, ParsedNumber The data structure to store results if the match succeeds. result)Implements com. |
| private boolean | matchCurrency(StringSegment segment, ParsedNumber result)
Matches the currency string without concern for currency spacing. |
| public void | postProcess(ParsedNumber
The data structure to store results. result)Implements com. |
| public boolean | smokeTest(StringSegment
The segment to check against. segment)Implements com. |
| public String |
| afterPrefixInsert | back to summary |
|---|---|
| private final String afterPrefixInsert | |
| beforeSuffixInsert | back to summary |
|---|---|
| private final String beforeSuffixInsert | |
| currency1 | back to summary |
|---|---|
| private final String currency1 | |
| currency2 | back to summary |
|---|---|
| private final String currency2 | |
| isoCode | back to summary |
|---|---|
| private final String isoCode | |
| localLongNames | back to summary |
|---|---|
| private final String[] localLongNames | |
| longNameTrie | back to summary |
|---|---|
| private final TextTrieMap<Currency. | |
| symbolTrie | back to summary |
|---|---|
| private final TextTrieMap<Currency. | |
| CombinedCurrencyMatcher | back to summary |
|---|---|
| private CombinedCurrencyMatcher(Currency currency, DecimalFormatSymbols dfs, int parseFlags) | |
| getInstance | back to summary |
|---|---|
| public static CombinedCurrencyMatcher getInstance(Currency currency, DecimalFormatSymbols dfs, int parseFlags) | |
| match | back to summary |
|---|---|
| public boolean match(StringSegment segment, ParsedNumber result) Implements com. Doc from com. Runs this matcher starting at the beginning of the given StringSegment. If this matcher finds something interesting in the StringSegment, it should update the offset of the StringSegment corresponding to how many chars were matched.
| |
| matchCurrency | back to summary |
|---|---|
| private boolean matchCurrency(StringSegment segment, ParsedNumber result) Matches the currency string without concern for currency spacing. | |
| postProcess | back to summary |
|---|---|
| public void postProcess(ParsedNumber result) Implements com. Doc from com. Method called at the end of a parse, after all matchers have failed to consume any more chars. Allows a matcher to make final modifications to the result given the knowledge that no more matches are possible.
| |
| smokeTest | back to summary |
|---|---|
| public boolean smokeTest(StringSegment segment) Implements com. Doc from com. Performs a fast "smoke check" for whether or not this matcher could possibly match against the
given string segment. The test should be as fast as possible but also as restrictive as possible.
For example, matchers can maintain a UnicodeSet of all code points that count possibly start a
match. Matchers should use the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |