public final class ExactOrRegexpPatternMatcher extends AbstractPatternMatcher
The evaluation for matching is perform first by checking if expression and input are equals (via equals method) else it attempts to do it by trying to match the input using the expression as a regexp.
ExactPatternMatcher
,
RegexpPatternMatcher
Modifier and Type | Field and Description |
---|---|
static ExactOrRegexpPatternMatcher |
INSTANCE |
ANY_EXPRESSION, EXACT, EXACT_OR_REGEXP, GLOB, REGEXP
Constructor and Description |
---|
ExactOrRegexpPatternMatcher() |
Modifier and Type | Method and Description |
---|---|
protected Matcher |
newMatcher(java.lang.String expression)
Returns an instance of the implementation specific matcher.
|
getMatcher, getName, toString
public static final ExactOrRegexpPatternMatcher INSTANCE
protected Matcher newMatcher(java.lang.String expression)
AbstractPatternMatcher
newMatcher
in class AbstractPatternMatcher
expression
- the string to be matched.Copyright ©2007-2020 The Apache Software Foundation, Licensed under Apache License, Version 2.0.