public class WildcardMatchOnPath extends java.lang.Object implements MFileFilter
Modifier and Type | Field and Description |
---|---|
protected java.util.regex.Pattern |
pattern |
protected java.lang.String |
wildcardString |
Constructor and Description |
---|
WildcardMatchOnPath(java.util.regex.Pattern pattern) |
WildcardMatchOnPath(java.lang.String wildcardString) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(MFile file)
Tests if a specified MFile should be included in a file collection.
|
java.lang.String |
toString() |
protected java.lang.String wildcardString
protected java.util.regex.Pattern pattern
public WildcardMatchOnPath(java.lang.String wildcardString)
public WildcardMatchOnPath(java.util.regex.Pattern pattern)
public boolean accept(MFile file)
MFileFilter
accept
in interface MFileFilter
file
- the MFiletrue
if and only if the mfile should be
included in the file collection; false
otherwise.public java.lang.String toString()
toString
in class java.lang.Object