public class BuildTargetToUnconfiguredTargetNodeComputation extends Object implements GraphComputation<BuildTargetToUnconfiguredTargetNodeKey,UnconfiguredTargetNode>
BuildFileManifest
to UnconfiguredTargetNode
public static BuildTargetToUnconfiguredTargetNodeComputation of(UnconfiguredTargetNodeFactory unconfiguredTargetNodeFactory, Cell cell)
BuildTargetToUnconfiguredTargetNodeComputation
unconfiguredTargetNodeFactory
- An actual factory that will create UnconfiguredTargetNode
from raw attributes containing in BuildFileManifest
cell
- 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)
GraphComputation
Key
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)
GraphComputation
GraphComputation.discoverPreliminaryDeps(ComputeKey)
. The results of those computations will be
available in GraphComputation.transform(ComputeKey, ComputationEnvironment)
as a part of ComputationEnvironment
discoverDeps
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)
GraphComputation
GraphComputation.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