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 project| Constructor 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)
ClassNameMatchertrue if the supplied class name matches this object's condition.matches in interface ClassNameMatcherclassName - fully qualified class nametrue if the class name matches this object's conditionCopyright © 2004–2024 Apache MINA Project. All rights reserved.