Interface SourcePathResolver

    • Method Detail

      • getMappedPaths

        <T> com.google.common.collect.ImmutableMap<T,​com.google.common.collect.ImmutableSortedSet<Path>> getMappedPaths​(Map<T,​SourcePath> sourcePathMap)
      • getAbsolutePath

        com.google.common.collect.ImmutableSortedSet<Path> getAbsolutePath​(SourcePath sourcePath)
      • getAllAbsolutePaths

        com.google.common.collect.ImmutableSortedSet<Path> getAllAbsolutePaths​(Collection<? extends SourcePath> sourcePaths)
      • getRelativePath

        com.google.common.collect.ImmutableSortedSet<Path> getRelativePath​(SourcePath sourcePath)
      • getIdeallyRelativePath

        com.google.common.collect.ImmutableSortedSet<Path> getIdeallyRelativePath​(SourcePath sourcePath)
      • getSourcePathNames

        <T> com.google.common.collect.ImmutableMap<String,​T> getSourcePathNames​(BuildTarget target,
                                                                                      String parameter,
                                                                                      Iterable<T> objects,
                                                                                      java.util.function.Predicate<T> filter,
                                                                                      java.util.function.Function<T,​SourcePath> objectSourcePathFunction)
      • filterInputsToCompareToOutput

        com.google.common.collect.ImmutableCollection<Path> filterInputsToCompareToOutput​(Iterable<? extends SourcePath> sources)
      • createRelativeMap

        com.google.common.collect.ImmutableMap<Path,​Path> createRelativeMap​(Path basePath,
                                                                                  Iterable<SourcePath> sourcePaths)
        Creates a map where given source paths are resolved relatively to the given base path and stored (as keys) with their absolute paths (as values).