public final class RegexpClassNameMatcher extends Object implements ClassNameMatcher
ClassNameMatcher
that uses regular expressions.
This object is immutable and thread-safe.
This class is extracted from Apache commons-io projectConstructor and Description |
---|
RegexpClassNameMatcher(Pattern pattern)
Constructs an object based on the specified pattern.
|
RegexpClassNameMatcher(String regex)
Constructs an object based on the specified regular expression.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(String className)
Returns
true if the supplied class name matches this object's condition. |
public RegexpClassNameMatcher(Pattern pattern)
pattern
- a pattern for evaluating acceptable class namesNullPointerException
- if pattern
is nullpublic RegexpClassNameMatcher(String regex)
regex
- a regular expression for evaluating acceptable class namespublic boolean matches(String className)
ClassNameMatcher
true
if the supplied class name matches this object's condition.matches
in interface ClassNameMatcher
className
- fully qualified class nametrue
if the class name matches this object's conditionCopyright © 2004–2025 Apache MINA Project. All rights reserved.