public interface ActionGraphBuilder extends BuildRuleResolver
| Modifier and Type | Method and Description |
|---|---|
<T extends BuildRule> |
addToIndex(T buildRule)
Deprecated.
|
com.google.common.collect.ImmutableSortedMap<BuildTarget,BuildRule> |
computeAllIfAbsent(com.google.common.collect.ImmutableMap<BuildTarget,java.util.function.Function<BuildTarget,BuildRule>> mappings) |
BuildRule |
computeIfAbsent(BuildTarget target,
java.util.function.Function<BuildTarget,BuildRule> mappingFunction)
Retrieve the
BuildRule for the given BuildTarget. |
Iterable<BuildRule> |
getBuildRules() |
Parallelizer |
getParallelizer()
Returns a parallelizer object that parallelizes if the current BuildRuleResolver supports
parallelism.
|
Iterable<BuildRule> |
getSuccessfullyConstructedBuildRules() |
void |
invalidate()
Invalidates this object.
|
com.google.common.collect.ImmutableSortedSet<BuildRule> |
requireAllRules(Iterable<BuildTarget> buildTargets) |
<T> Optional<T> |
requireMetadata(BuildTarget target,
Class<T> metadataClass)
Retrieve a piece of metadata for a target.
|
BuildRule |
requireRule(BuildTarget target)
Retrieve the
BuildRule for the given BuildTarget. |
com.google.common.util.concurrent.ListenableFuture<BuildRule> |
requireRuleFuture(BuildTarget target) |
getAllRules, getRule, getRuleOptional, getRuleOptionalWithType, getRuleWithTypefilterBuildRuleInputs, filterBuildRuleInputs, filterBuildRuleInputs, filterBuildRuleInputs, getRule, getRule, getSourcePathResolverIterable<BuildRule> getBuildRules()
Iterable<BuildRule> getSuccessfullyConstructedBuildRules()
BuildRule computeIfAbsent(BuildTarget target, java.util.function.Function<BuildTarget,BuildRule> mappingFunction)
BuildRule for the given BuildTarget. If no rules are associated
with the target, compute the rule using the given supplier and update the mapping.target - target with which the BuildRule is associated.mappingFunction - function to compute the rule.BuildRule requireRule(BuildTarget target)
BuildRule for the given BuildTarget. If no rules are associated
with the target, compute it by transforming the TargetNode associated with this build
target using the TargetNodeToBuildRuleTransformer associated with this
instance.<T> Optional<T> requireMetadata(BuildTarget target, Class<T> metadataClass)
MetadataProvidingDescription.createMetadata(com.facebook.buck.core.model.BuildTarget, com.facebook.buck.core.rules.ActionGraphBuilder, com.facebook.buck.core.cell.CellPathResolver, T, java.util.Optional<com.google.common.collect.ImmutableMap<com.facebook.buck.core.model.BuildTarget, com.facebook.buck.versions.Version>>, java.lang.Class<U>).@Deprecated <T extends BuildRule> T addToIndex(T buildRule)
buildRule's target to itself and returns buildRule.
Please use computeIfAbsent instead
Parallelizer getParallelizer()
void invalidate()
com.google.common.collect.ImmutableSortedSet<BuildRule> requireAllRules(Iterable<BuildTarget> buildTargets)
com.google.common.collect.ImmutableSortedMap<BuildTarget,BuildRule> computeAllIfAbsent(com.google.common.collect.ImmutableMap<BuildTarget,java.util.function.Function<BuildTarget,BuildRule>> mappings)
com.google.common.util.concurrent.ListenableFuture<BuildRule> requireRuleFuture(BuildTarget target)