public class BuildTargetToUnconfiguredTargetNodeComputation extends Object implements GraphComputation<BuildTargetToUnconfiguredTargetNodeKey,UnconfiguredTargetNode>
BuildFileManifest to UnconfiguredTargetNodepublic static BuildTargetToUnconfiguredTargetNodeComputation of(UnconfiguredTargetNodeFactory unconfiguredTargetNodeFactory, Cell cell)
BuildTargetToUnconfiguredTargetNodeComputationunconfiguredTargetNodeFactory - An actual factory that will create UnconfiguredTargetNode from raw attributes containing in BuildFileManifestcell - A Cell object that contains targets used in this transformation, it is
mostly used to resolve paths to absolute pathspublic ComputationIdentifier<UnconfiguredTargetNode> getIdentifier()
getIdentifier in interface GraphComputation<BuildTargetToUnconfiguredTargetNodeKey,UnconfiguredTargetNode>ComputeKey.getIdentifier()public UnconfiguredTargetNode transform(BuildTargetToUnconfiguredTargetNodeKey key, ComputationEnvironment env)
GraphComputationKey into a final type Result. This
transformation should be performed synchronously.transform in interface GraphComputation<BuildTargetToUnconfiguredTargetNodeKey,UnconfiguredTargetNode>key - The Key of the requested resultenv - The execution environment containing results of keys from GraphComputation.discoverDeps(ComputeKey, ComputationEnvironment) and GraphComputation.discoverPreliminaryDeps(ComputeKey)public com.google.common.collect.ImmutableSet<? extends ComputeKey<? extends ComputeResult>> discoverDeps(BuildTargetToUnconfiguredTargetNodeKey key, ComputationEnvironment env)
GraphComputationGraphComputation.discoverPreliminaryDeps(ComputeKey). The results of those computations will be
available in GraphComputation.transform(ComputeKey, ComputationEnvironment) as a part of ComputationEnvironmentdiscoverDeps in interface GraphComputation<BuildTargetToUnconfiguredTargetNodeKey,UnconfiguredTargetNode>key - the current key to transformenv - The execution environment containing results of keys from GraphComputation.discoverPreliminaryDeps(ComputeKey)public com.google.common.collect.ImmutableSet<? extends ComputeKey<? extends ComputeResult>> discoverPreliminaryDeps(BuildTargetToUnconfiguredTargetNodeKey key)
GraphComputationGraphComputation.discoverDeps(ComputeKey, ComputationEnvironment) as
a part of ComputationEnvironment, and GraphComputation.transform(ComputeKey,
ComputationEnvironment)discoverPreliminaryDeps in interface GraphComputation<BuildTargetToUnconfiguredTargetNodeKey,UnconfiguredTargetNode>key - the current key to transformGraphComputation.discoverDeps(ComputeKey, ComputationEnvironment) and
GraphComputation.transform(ComputeKey, ComputationEnvironment) of the current key depends on