SeriesMatcher that matches EITHER a prefix OR a suffix.
AffixMatcher combines two of these in order to match both the prefix and suffix.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private AffixTokenMatcherFactory | |
| private IgnorablesMatcher | |
| private int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | consumeToken(int typeOrCp)
Implements com. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public static AffixPatternMatcher | fromAffixPattern(String affixPattern, AffixTokenMatcherFactory factory, int parseFlags)
Creates an AffixPatternMatcher (based on SeriesMatcher) from the given affix pattern. |
| public String | |
| public int | |
| public String | toString()
Overrides com. |
| affixPattern | back to summary |
|---|---|
| private final String affixPattern | |
| factory | back to summary |
|---|---|
| private AffixTokenMatcherFactory factory | |
| ignorables | back to summary |
|---|---|
| private IgnorablesMatcher ignorables | |
| lastTypeOrCp | back to summary |
|---|---|
| private int lastTypeOrCp | |
| AffixPatternMatcher | back to summary |
|---|---|
| private AffixPatternMatcher(String affixPattern) | |
| consumeToken | back to summary |
|---|---|
| public void consumeToken(int typeOrCp) Implements com. This method is NOT intended to be called directly. It is here for the AffixUtils.TokenConsumer interface only.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| fromAffixPattern | back to summary |
|---|---|
| public static AffixPatternMatcher fromAffixPattern(String affixPattern, AffixTokenMatcherFactory factory, int parseFlags) Creates an AffixPatternMatcher (based on SeriesMatcher) from the given affix pattern. Returns null if the affix pattern is empty. | |
| getPattern | back to summary |
|---|---|
| public String getPattern() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from java. Returns a string representation of the object. | |