public abstract class BuildTargetWithOutputs extends Object implements Comparable<BuildTargetWithOutputs>
For example, for the target //:foo, the build target would be //:foo, and the
output label would be empty.
For the target //:foo[baz], the build target would be //:foo, and the output
label would be baz.
For the target //:foo#flavor[baz], the build target would be //:foo#flavor,
and the output label would be baz.
See also UnconfiguredBuildTargetWithOutputs for outputs with unconfigured build
targets.
| Constructor and Description |
|---|
BuildTargetWithOutputs() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BuildTargetWithOutputs other) |
abstract BuildTarget |
getBuildTarget()
Returns the associated
BuildTarget. |
abstract OutputLabel |
getOutputLabel()
Returns the output label associated with the build target, if any.
|
static BuildTargetWithOutputs |
of(BuildTarget buildTarget,
OutputLabel outputLabel) |
String |
toString()
Returns the string representation of a
BuildTargetWithOutputs in the form of
target_name[output_label] if an output label is present. |
public abstract BuildTarget getBuildTarget()
BuildTarget.public abstract OutputLabel getOutputLabel()
public int compareTo(BuildTargetWithOutputs other)
compareTo in interface Comparable<BuildTargetWithOutputs>public String toString()
BuildTargetWithOutputs in the form of
target_name[output_label] if an output label is present. E.g. //foo:bar[baz]. If no output
label is present, the square brackets are omitted. E.g. //foo:barpublic static BuildTargetWithOutputs of(BuildTarget buildTarget, OutputLabel outputLabel)