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