public class FilterVirtualFileVisitor extends AbstractVirtualFileVisitor
Constructor and Description |
---|
FilterVirtualFileVisitor(VirtualFileFilter filter)
Create a new FilterVirtualFileVisitor with default attributes
|
FilterVirtualFileVisitor(VirtualFileFilter filter,
VisitorAttributes attributes)
Create a new FilterVirtualFileVisitor.
|
Modifier and Type | Method and Description |
---|---|
List<VirtualFile> |
getMatched()
Get the matched files
|
void |
visit(VirtualFile virtualFile)
Visit a virtual file
|
getAttributes
public FilterVirtualFileVisitor(VirtualFileFilter filter)
filter
- the filterIllegalArgumentException
- if the filter is nullpublic FilterVirtualFileVisitor(VirtualFileFilter filter, VisitorAttributes attributes)
filter
- the filterattributes
- the attributes, uses the default if nullIllegalArgumentException
- if the filter is nullpublic List<VirtualFile> getMatched()
public void visit(VirtualFile virtualFile)
VirtualFileVisitor
virtualFile
- the virtual file being visitedCopyright © 2012 JBoss by Red Hat. All Rights Reserved.