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 SourcePathRuleFinderpublic com.google.common.collect.ImmutableSet<BuildRule> filterBuildRuleInputs(SourcePath... sources)
filterBuildRuleInputs in interface SourcePathRuleFinderpublic java.util.stream.Stream<BuildRule> filterBuildRuleInputs(java.util.stream.Stream<SourcePath> sources)
filterBuildRuleInputs in interface SourcePathRuleFinderpublic java.util.stream.Stream<BuildRule> filterBuildRuleInputs(Optional<SourcePath> sourcePath)
filterBuildRuleInputs in interface SourcePathRuleFinderpublic Optional<BuildRule> getRule(SourcePath sourcePath)
getRule in interface SourcePathRuleFinderOptional 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 SourcePathRuleFinderBuildRule whose output sourcePath refers to its output.public SourcePathResolverAdapter getSourcePathResolver()
getSourcePathResolver in interface SourcePathRuleFinder