Additionally, the concept of the "combined pattern" is supported (see matches(StringPattern[], String).
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| private final int | |
| private final String | |
| public static final StringPattern[] | PATTERNS_ALL
A |
| public static final StringPattern[] | PATTERNS_NONE
A |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: Whether thisStringPattern represents inclusion (INCLUDE) or exclusion
exclusion (EXCLUDE) of subjects
|
| public boolean | matches(String text)
Matches the given
|
| public static boolean | matches(StringPattern[] patterns, String text)
Matchs a given |
| public static StringPattern[] | parseCombinedPattern(String combinedPattern)
Parses a "combined pattern" into an array of |
| public String | |
| private static boolean |
| EXCLUDE | back to summary |
|---|---|
public static final int EXCLUDE
| |
| INCLUDE | back to summary |
|---|---|
public static final int INCLUDE
| |
| mode | back to summary |
|---|---|
| private final int mode | |
| pattern | back to summary |
|---|---|
| private final String pattern
| |
| PATTERNS_ALL | back to summary |
|---|---|
| public static final StringPattern[] PATTERNS_ALL A | |
| PATTERNS_NONE | back to summary |
|---|---|
| public static final StringPattern[] PATTERNS_NONE A | |
| StringPattern | back to summary |
|---|---|
| public StringPattern(int mode, String pattern) | |
| StringPattern | back to summary |
|---|---|
| public StringPattern(String pattern) | |
| getMode | back to summary |
|---|---|
public int getMode()
| |
| matches | back to summary |
|---|---|
| public boolean matches(String text) Matches the given
Notice: The | |
| matches | back to summary |
|---|---|
| public static boolean matches(StringPattern[] patterns, String text) Matchs a given
The last matching pattern takes effect; if its mode is
If
If
For backwards compatibility,
| |
| parseCombinedPattern | back to summary |
|---|---|
| public static StringPattern[] parseCombinedPattern(String combinedPattern) Parses a "combined pattern" into an array of
combined-pattern :=
[ '+' | '-' ] pattern
{ ( '+' | '-' ) pattern }
If a pattern is preceeded with a '-', then the | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| wildmatch | back to summary |
|---|---|
| private static boolean wildmatch(String pattern, String text) | |