Class IsExcludedPath

java.lang.Object
org.ek9lang.core.IsExcludedPath
All Implemented Interfaces:
Predicate<Path>

public final class IsExcludedPath extends Object implements Predicate<Path>
THE whole-path counterpart to IsExcludedDirectoryName: true when ANY path element is an excluded directory (build output, VCS, IDE cache). Hold one and use it to .filter(p -> !isExcludedPath.test(p)) the results of a recursive Files.walk(Path, int, FileVisitOption...) so generated sources under target/, VCS metadata under .git/, and IDE caches are never returned — the single-name test cannot see them once a walk has already descended past the excluded directory.
  • Constructor Details

    • IsExcludedPath

      public IsExcludedPath()
  • Method Details

    • test

      public boolean test(Path path)
      True when any element of path is an excluded directory; false for null.
      Specified by:
      test in interface Predicate<Path>