public interface TargetNodeSpec
TargetNode objects.| Modifier and Type | Interface and Description |
|---|---|
static class |
TargetNodeSpec.TargetType |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<BuildTarget,TargetNodeMaybeIncompatible> |
filter(Iterable<TargetNodeMaybeIncompatible> nodes) |
BuildFileSpec |
getBuildFileSpec() |
BuildTargetPattern |
getBuildTargetPattern(Cell cell)
Convert from a legacy
TargetNodeSpec to a new-hotness BuildTargetPattern. |
TargetNodeSpec.TargetType |
getTargetType() |
TargetNodeSpec.TargetType getTargetType()
com.google.common.collect.ImmutableMap<BuildTarget,TargetNodeMaybeIncompatible> filter(Iterable<TargetNodeMaybeIncompatible> nodes)
BuildFileSpec getBuildFileSpec()
BuildFileSpec representing the build files to parse to search for specific
build target.BuildTargetPattern getBuildTargetPattern(Cell cell)
TargetNodeSpec to a new-hotness BuildTargetPattern.
This conversion is imperfect and best-effort. If possible, use BuildTargetPatternParser.parse(String, CellNameResolver) to create a BuildTargetPattern instead.
This conversion is lossy. Some attributes, such as whether test targets should be included, are not reflected in the result.
cell - this TargetNodeSpec's cell. Some implementations of TargetNodeSpec
do not store a cell name, so cell provides the name.IllegalArgumentException - cell refers to a cell different from this TargetNodeSpec's cell. This exception is best-effort.