public class SuffixMatchFilter extends AbstractVirtualFileFilterWithAttributes
| Modifier and Type | Field and Description |
|---|---|
private java.util.Collection<java.lang.String> |
suffixes
The suffixes
|
private boolean |
trace |
| Constructor and Description |
|---|
SuffixMatchFilter(java.util.Collection<java.lang.String> suffixes)
Create a new SuffixMatchFilter.
|
SuffixMatchFilter(java.util.Collection<java.lang.String> suffixes,
VisitorAttributes attributes)
Create a new SuffixMatchFilter.
|
SuffixMatchFilter(java.lang.String suffix)
Create a new SuffixMatchFilter, using
VisitorAttributes.DEFAULT |
SuffixMatchFilter(java.lang.String suffix,
VisitorAttributes attributes)
Create a new SuffixMatchFilter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(VirtualFile file)
Accept any file that ends with one of the filter suffixes.
|
getAttributesprivate java.util.Collection<java.lang.String> suffixes
private boolean trace
public SuffixMatchFilter(java.lang.String suffix)
VisitorAttributes.DEFAULTsuffix - the suffixjava.lang.IllegalArgumentException - for a null suffixpublic SuffixMatchFilter(java.lang.String suffix,
VisitorAttributes attributes)
suffix - the suffixattributes - the attributes, pass null to use VisitorAttributes.DEFAULTjava.lang.IllegalArgumentException - for a null suffixpublic SuffixMatchFilter(java.util.Collection<java.lang.String> suffixes)
suffixes - - the list of file suffixes to accept.java.lang.IllegalArgumentException - for a null suffixespublic SuffixMatchFilter(java.util.Collection<java.lang.String> suffixes,
VisitorAttributes attributes)
suffixes - - the list of file suffixes to accept.attributes - the attributes, pass null to use VisitorAttributes.DEFAULTjava.lang.IllegalArgumentException - for a null suffixespublic boolean accepts(VirtualFile file)
file - the virtual file