public class AndroidPatternMatcher
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
PATTERN_ADVANCED_GLOB
Pattern type: the given pattern is interpreted with a regular expression-like syntax for
matching against the string it is tested against.
|
static int |
PATTERN_LITERAL
Pattern type: the given pattern must exactly match the string it is tested against.
|
static int |
PATTERN_PREFIX
Pattern type: the given pattern must match the beginning of the string it is tested against.
|
static int |
PATTERN_SIMPLE_GLOB
Pattern type: the given pattern is interpreted with a simple glob syntax for matching against
the string it is tested against.
|
| Constructor and Description |
|---|
AndroidPatternMatcher(java.lang.String pattern,
int type) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPath() |
int |
getType() |
boolean |
match(java.lang.String str) |
java.lang.String |
toString() |
public static final int PATTERN_LITERAL
public static final int PATTERN_PREFIX
public static final int PATTERN_SIMPLE_GLOB
public static final int PATTERN_ADVANCED_GLOB
.)
and sets ([...]) with full support for character ranges and the not (^)
modifier. Supported modifiers include star (*) for zero-or-more, plus (+) for
one-or-more and full range ({...}) support. This is a simple evaluation
implementation in which matching is done against the pattern in real time with no
backtracking support.