public abstract class TargetGraphCreationResult extends Object
| Constructor and Description | 
|---|
TargetGraphCreationResult()  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract com.google.common.collect.ImmutableSet<BuildTarget> | 
getBuildTargets()
Top level targets of the target graph. 
 | 
abstract TargetGraph | 
getTargetGraph()
A graph of transitive dependencies of the top level targets from  
getBuildTargets(). | 
static TargetGraphCreationResult | 
of(TargetGraph targetGraph,
  com.google.common.collect.ImmutableSet<BuildTarget> buildTargets)  | 
TargetGraphCreationResult | 
withBuildTargets(Iterable<? extends BuildTarget> elements)
Copies this object with replacing the top level targets. 
 | 
TargetGraphCreationResult | 
withTargetGraph(TargetGraph targetGraph)
Copies this object with replacing the target graph. 
 | 
public abstract TargetGraph getTargetGraph()
getBuildTargets().public abstract com.google.common.collect.ImmutableSet<BuildTarget> getBuildTargets()
A top level target is a target requested by a client during target graph creation request.
Note that top level targets are not equal to the nodes without incoming edges. A top level target can be in a transitive dependencies of another top level target and can have incoming edges.
public TargetGraphCreationResult withTargetGraph(TargetGraph targetGraph)
public TargetGraphCreationResult withBuildTargets(Iterable<? extends BuildTarget> elements)
public static TargetGraphCreationResult of(TargetGraph targetGraph, com.google.common.collect.ImmutableSet<BuildTarget> buildTargets)