Class FilterVirtualFileVisitor

    • Constructor Detail

      • FilterVirtualFileVisitor

        public FilterVirtualFileVisitor​(VirtualFileFilter filter)
        Create a new FilterVirtualFileVisitor with default attributes
        Parameters:
        filter - the filter
        Throws:
        java.lang.IllegalArgumentException - if the filter is null
      • FilterVirtualFileVisitor

        public FilterVirtualFileVisitor​(VirtualFileFilter filter,
                                        VisitorAttributes attributes)
        Create a new FilterVirtualFileVisitor.
        Parameters:
        filter - the filter
        attributes - the attributes, uses the default if null
        Throws:
        java.lang.IllegalArgumentException - if the filter is null
    • Method Detail

      • checkAttributes

        private static VisitorAttributes checkAttributes​(VirtualFileFilter filter,
                                                         VisitorAttributes attributes)
        Check the attributes
        Parameters:
        filter - the filter
        attributes - the attributes
        Returns:
        the attributes
        Throws:
        java.lang.IllegalArgumentException - for a null filter
      • getMatched

        public java.util.List<VirtualFile> getMatched()
        Get the matched files
        Returns:
        the matched files
      • visit

        public void visit​(VirtualFile virtualFile)
        Description copied from interface: VirtualFileVisitor
        Visit a virtual file
        Parameters:
        virtualFile - the virtual file being visited