public final class BuildableSupport extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BuildableSupport.DepsSupplier
A build deps supplier that allows updating of the captured rule finder.
|
Modifier and Type | Method and Description |
---|---|
static BuildableSupport.DepsSupplier |
buildDepsSupplier(BuildRule rule,
SourcePathRuleFinder ruleFinder)
Creates a supplier to easily implement (and cache) BuildRule.getBuildDeps() via
BuildableSupport.deriveDeps().
|
static java.util.stream.Stream<BuildRule> |
deriveDeps(AddsToRuleKey rule,
SourcePathRuleFinder ruleFinder)
Derives dependencies based on everything added to the rulekey.
|
static java.util.stream.Stream<BuildRule> |
deriveDeps(BuildRule rule,
SourcePathRuleFinder ruleFinder)
Derives dependencies based on everything added to the rulekey.
|
static java.util.stream.Stream<SourcePath> |
deriveInputs(AddsToRuleKey object)
Derives inputs based on everything added to the rulekey.
|
static java.util.stream.Stream<BuildRule> |
getDeps(AddsToRuleKey tool,
SourcePathRuleFinder ruleFinder)
Streams dependencies based on everything added to its rulekey.
|
static com.google.common.collect.ImmutableCollection<BuildRule> |
getDepsCollection(AddsToRuleKey tool,
SourcePathRuleFinder ruleFinder)
Derives dependencies based on everything added to its rulekey.
|
public static java.util.stream.Stream<BuildRule> deriveDeps(AddsToRuleKey rule, SourcePathRuleFinder ruleFinder)
public static java.util.stream.Stream<BuildRule> deriveDeps(BuildRule rule, SourcePathRuleFinder ruleFinder)
public static com.google.common.collect.ImmutableCollection<BuildRule> getDepsCollection(AddsToRuleKey tool, SourcePathRuleFinder ruleFinder)
public static java.util.stream.Stream<BuildRule> getDeps(AddsToRuleKey tool, SourcePathRuleFinder ruleFinder)
public static java.util.stream.Stream<SourcePath> deriveInputs(AddsToRuleKey object)
public static BuildableSupport.DepsSupplier buildDepsSupplier(BuildRule rule, SourcePathRuleFinder ruleFinder)