public class SuffixMatchFilter extends AbstractVirtualFileFilterWithAttributes
| Constructor and Description |
|---|
SuffixMatchFilter(Collection<String> suffixes)
Create a new SuffixMatchFilter.
|
SuffixMatchFilter(Collection<String> suffixes,
VisitorAttributes attributes)
Create a new SuffixMatchFilter.
|
SuffixMatchFilter(String suffix)
Create a new SuffixMatchFilter, using
VisitorAttributes.DEFAULT |
SuffixMatchFilter(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.
|
getAttributespublic SuffixMatchFilter(String suffix)
VisitorAttributes.DEFAULTsuffix - the suffixIllegalArgumentException - for a null suffixpublic SuffixMatchFilter(String suffix, VisitorAttributes attributes)
suffix - the suffixattributes - the attributes, pass null to use VisitorAttributes.DEFAULTIllegalArgumentException - for a null suffixpublic SuffixMatchFilter(Collection<String> suffixes)
suffixes - - the list of file suffixes to accept.IllegalArgumentException - for a null suffixespublic SuffixMatchFilter(Collection<String> suffixes, VisitorAttributes attributes)
suffixes - - the list of file suffixes to accept.attributes - the attributes, pass null to use VisitorAttributes.DEFAULTIllegalArgumentException - for a null suffixespublic boolean accepts(VirtualFile file)
file - the virtual fileCopyright © 2014 JBoss, A division of Red Hat, Inc. All rights reserved.