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