public class TargetNodes extends Object
TargetNode
objects.Modifier and Type | Method and Description |
---|---|
static <V extends ConstructorArg> |
castArg(TargetNode<?> node,
Class<V> cls)
Type safe checked cast of the constructor arg.
|
static com.google.common.collect.ImmutableSortedSet<BuildTarget> |
getTestTargetsForNode(TargetNode<?> node)
If
node refers to a node which contains references to its tests, returns the tests
associated with that node. |
static com.google.common.collect.ImmutableSet<BuildTarget> |
getTestTargetsForNodes(Iterator<TargetNode<?>> nodes) |
public static com.google.common.collect.ImmutableSortedSet<BuildTarget> getTestTargetsForNode(TargetNode<?> node)
node
refers to a node which contains references to its tests, returns the tests
associated with that node.
Otherwise, returns an empty set.
public static com.google.common.collect.ImmutableSet<BuildTarget> getTestTargetsForNodes(Iterator<TargetNode<?>> nodes)
nodes
- Nodes whose test targets we would like to findnodes
.public static <V extends ConstructorArg> Optional<TargetNode<V>> castArg(TargetNode<?> node, Class<V> cls)