public abstract class OutputArtifact extends Object implements SkylarkOutputArtifactApi, Comparable<OutputArtifact>, AddsToRuleKey
ArtifactImpl
that indicates that it should be used as an output to an
action.
This is generally used in CommandLineArgsFactory.from(ImmutableList)
and
things that consume it like RunAction
. In
RunAction's case, we would like to be able to infer inputs and outputs, so users do not have to
specify information they have already provided (what artifacts are used in the action in some
fashion)
Constructor and Description |
---|
OutputArtifact() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(OutputArtifact o) |
Artifact |
getArtifact() |
boolean |
isImmutable() |
void |
repr(com.google.devtools.build.lib.skylarkinterface.SkylarkPrinter printer) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public boolean isImmutable()
isImmutable
in interface com.google.devtools.build.lib.skylarkinterface.SkylarkValue
public Artifact getArtifact()
public void repr(com.google.devtools.build.lib.skylarkinterface.SkylarkPrinter printer)
repr
in interface com.google.devtools.build.lib.skylarkinterface.SkylarkPrintable
public int compareTo(OutputArtifact o)
compareTo
in interface Comparable<OutputArtifact>