Package org.asciidoctor.jruby
Class AbstractDirectoryWalker
java.lang.Object
org.asciidoctor.jruby.AbstractDirectoryWalker
- All Implemented Interfaces:
Iterable<File>,DirectoryWalker
- Direct Known Subclasses:
AsciiDocDirectoryWalker
Base class which inspects parent directory and all subdirectories and returns all files which match certain
condition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract booleanisAcceptedFile(File filename) Method to implement which is called to decide if file should be filtered or not.scan()Method that finds all files that meets some criteria.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.asciidoctor.jruby.DirectoryWalker
iteratorMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AbstractDirectoryWalker
-
-
Method Details
-
scan
Method that finds all files that meets some criteria.- Specified by:
scanin interfaceDirectoryWalker- Returns:
- List of files which meets the defined criteria.
-
isAcceptedFile
Method to implement which is called to decide if file should be filtered or not.- Parameters:
filename- current file.- Returns:
- true if file should be added to returned list, false otherwise.
-