final class WildcardClassNameMatcher extends java.lang.Object implements ClassNameMatcher
ClassNameMatcher
that uses simplified regular expressions
provided by FilenameUtils.wildcardMatch
This object is immutable and thread-safe.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
pattern |
Constructor and Description |
---|
WildcardClassNameMatcher(java.lang.String pattern)
Constructs an object based on the specified simplified regular expression.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(java.lang.String className)
Returns
true if the supplied class name matches this object's condition. |
public WildcardClassNameMatcher(java.lang.String pattern)
pattern
- a FilenameUtils.wildcardMatch(java.lang.String, java.lang.String)
pattern.public boolean matches(java.lang.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 condition