public interface PatternMatcher
The pattern matcher is the main abstraction regarding the matching of an expression. Implementation may vary depending on the expression syntax handling that is desired.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANY_EXPRESSION
Any expression string: '*'
|
static java.lang.String |
EXACT
'exact' pattern matcher name
|
static java.lang.String |
EXACT_OR_REGEXP
pattern matcher name 'exactOrRegexp'
|
static java.lang.String |
GLOB
pattern matcher 'glob'
|
static java.lang.String |
REGEXP
pattern matcher name 'regexp'
|
Modifier and Type | Method and Description |
---|---|
Matcher |
getMatcher(java.lang.String expression)
Return the matcher for the given expression.
|
java.lang.String |
getName()
return the name of this pattern matcher
|
static final java.lang.String EXACT
static final java.lang.String REGEXP
static final java.lang.String GLOB
static final java.lang.String EXACT_OR_REGEXP
static final java.lang.String ANY_EXPRESSION
Matcher getMatcher(java.lang.String expression)
expression
- the expression to be matched. Cannot be null ?java.lang.String getName()
EXACT
,
REGEXP
,
GLOB
,
EXACT_OR_REGEXP
Copyright ©2007-2022 The Apache Software Foundation, Licensed under Apache License, Version 2.0.