public interface SourcePathResolver
Modifier and Type | Method and Description |
---|---|
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).
|
com.google.common.collect.ImmutableCollection<Path> |
filterInputsToCompareToOutput(Iterable<? extends SourcePath> sources) |
com.google.common.collect.ImmutableSortedSet<Path> |
getAbsolutePath(SourcePath sourcePath) |
com.google.common.collect.ImmutableSortedSet<Path> |
getAllAbsolutePaths(Collection<? extends SourcePath> sourcePaths) |
ProjectFilesystem |
getFilesystem(SourcePath sourcePath) |
com.google.common.collect.ImmutableSortedSet<Path> |
getIdeallyRelativePath(SourcePath sourcePath) |
<T> com.google.common.collect.ImmutableMap<T,com.google.common.collect.ImmutableSortedSet<Path>> |
getMappedPaths(Map<T,SourcePath> sourcePathMap) |
com.google.common.collect.ImmutableSortedSet<Path> |
getRelativePath(ProjectFilesystem projectFilesystem,
SourcePath sourcePath) |
com.google.common.collect.ImmutableSortedSet<Path> |
getRelativePath(SourcePath sourcePath) |
String |
getSourcePathName(BuildTarget target,
SourcePath sourcePath) |
com.google.common.collect.ImmutableMap<String,SourcePath> |
getSourcePathNames(BuildTarget target,
String parameter,
Iterable<SourcePath> sourcePaths) |
<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) |
<T> com.google.common.collect.ImmutableMap<T,com.google.common.collect.ImmutableSortedSet<Path>> getMappedPaths(Map<T,SourcePath> sourcePathMap)
ProjectFilesystem getFilesystem(SourcePath sourcePath)
com.google.common.collect.ImmutableSortedSet<Path> getAbsolutePath(SourcePath sourcePath)
com.google.common.collect.ImmutableSortedSet<Path> getAllAbsolutePaths(Collection<? extends SourcePath> sourcePaths)
com.google.common.collect.ImmutableSortedSet<Path> getRelativePath(SourcePath sourcePath)
com.google.common.collect.ImmutableSortedSet<Path> getIdeallyRelativePath(SourcePath sourcePath)
com.google.common.collect.ImmutableMap<String,SourcePath> getSourcePathNames(BuildTarget target, String parameter, Iterable<SourcePath> sourcePaths)
<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)
String getSourcePathName(BuildTarget target, SourcePath sourcePath)
com.google.common.collect.ImmutableCollection<Path> filterInputsToCompareToOutput(Iterable<? extends SourcePath> sources)
com.google.common.collect.ImmutableSortedSet<Path> getRelativePath(ProjectFilesystem projectFilesystem, SourcePath sourcePath)
Path
instances to the given SourcePath
that is relative to the given
ProjectFilesystem
com.google.common.collect.ImmutableMap<Path,Path> createRelativeMap(Path basePath, Iterable<SourcePath> sourcePaths)