public class DefaultSourcePathRuleFinder extends Object implements SourcePathRuleFinder
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableSet<BuildRule> |
filterBuildRuleInputs(Iterable<? extends SourcePath> sources) |
java.util.stream.Stream<BuildRule> |
filterBuildRuleInputs(Optional<SourcePath> sourcePath) |
com.google.common.collect.ImmutableSet<BuildRule> |
filterBuildRuleInputs(SourcePath... sources) |
java.util.stream.Stream<BuildRule> |
filterBuildRuleInputs(java.util.stream.Stream<SourcePath> sources) |
BuildRule |
getRule(BuildTargetSourcePath sourcePath) |
Optional<BuildRule> |
getRule(SourcePath sourcePath) |
SourcePathResolverAdapter |
getSourcePathResolver() |
public com.google.common.collect.ImmutableSet<BuildRule> filterBuildRuleInputs(Iterable<? extends SourcePath> sources)
filterBuildRuleInputs
in interface SourcePathRuleFinder
public com.google.common.collect.ImmutableSet<BuildRule> filterBuildRuleInputs(SourcePath... sources)
filterBuildRuleInputs
in interface SourcePathRuleFinder
public java.util.stream.Stream<BuildRule> filterBuildRuleInputs(java.util.stream.Stream<SourcePath> sources)
filterBuildRuleInputs
in interface SourcePathRuleFinder
public java.util.stream.Stream<BuildRule> filterBuildRuleInputs(Optional<SourcePath> sourcePath)
filterBuildRuleInputs
in interface SourcePathRuleFinder
public Optional<BuildRule> getRule(SourcePath sourcePath)
getRule
in interface SourcePathRuleFinder
Optional
containing the BuildRule
whose output sourcePath
refers to, or absent
if sourcePath
doesn't refer to the output of a BuildRule
.public BuildRule getRule(BuildTargetSourcePath sourcePath)
getRule
in interface SourcePathRuleFinder
BuildRule
whose output sourcePath
refers to its output.public SourcePathResolverAdapter getSourcePathResolver()
getSourcePathResolver
in interface SourcePathRuleFinder