public class UnconfiguredTargetNodeToUnconfiguredTargetNodeWithDepsComputation extends Object implements GraphComputation<UnconfiguredTargetNodeToUnconfiguredTargetNodeWithDepsKey,UnconfiguredTargetNodeWithDeps>
UnconfiguredTargetNode
to UnconfiguredTargetNodeWithDeps
public static UnconfiguredTargetNodeToUnconfiguredTargetNodeWithDepsComputation of(UnconfiguredTargetNodeToTargetNodeFactory unconfiguredTargetNodeToTargetNodeFactory, Cell cell)
UnconfiguredTargetNodeToUnconfiguredTargetNodeWithDepsComputation
unconfiguredTargetNodeToTargetNodeFactory
- An actual factory that will create TargetNode
from UnconfiguredTargetNode
in order to resolve depscell
- A Cell
object that contains targets used in this transformation, it is
mostly used to resolve paths to absolute pathspublic ComputationIdentifier<UnconfiguredTargetNodeWithDeps> getIdentifier()
getIdentifier
in interface GraphComputation<UnconfiguredTargetNodeToUnconfiguredTargetNodeWithDepsKey,UnconfiguredTargetNodeWithDeps>
ComputeKey.getIdentifier()
public UnconfiguredTargetNodeWithDeps transform(UnconfiguredTargetNodeToUnconfiguredTargetNodeWithDepsKey key, ComputationEnvironment env)
GraphComputation
Key
into a final type Result
. This
transformation should be performed synchronously.transform
in interface GraphComputation<UnconfiguredTargetNodeToUnconfiguredTargetNodeWithDepsKey,UnconfiguredTargetNodeWithDeps>
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(UnconfiguredTargetNodeToUnconfiguredTargetNodeWithDepsKey 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<UnconfiguredTargetNodeToUnconfiguredTargetNodeWithDepsKey,UnconfiguredTargetNodeWithDeps>
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(UnconfiguredTargetNodeToUnconfiguredTargetNodeWithDepsKey key)
GraphComputation
GraphComputation.discoverDeps(ComputeKey, ComputationEnvironment)
as
a part of ComputationEnvironment
, and GraphComputation.transform(ComputeKey,
ComputationEnvironment)
discoverPreliminaryDeps
in interface GraphComputation<UnconfiguredTargetNodeToUnconfiguredTargetNodeWithDepsKey,UnconfiguredTargetNodeWithDeps>
key
- the current key to transformGraphComputation.discoverDeps(ComputeKey, ComputationEnvironment)
and
GraphComputation.transform(ComputeKey, ComputationEnvironment)
of the current key depends on