Interface CollectionStrategy

  • All Known Implementing Classes:
    ParserCollectionStrategy

    public interface CollectionStrategy
    A strategy for discovering the structure of a project. Implementations could read a pom.xml, a Gradle build file, a makefile...
    • Method Detail

      • collect

        ProjectRoot collect​(java.nio.file.Path path)
      • getRoot

        default java.util.Optional<java.nio.file.Path> getRoot​(java.nio.file.Path file)
                                                        throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
      • getPathMatcher

        default java.nio.file.PathMatcher getPathMatcher​(java.lang.String pattern)