public interface BoundArtifact extends Artifact
Artifact
that will be materialized by the action execution phase. This can
either be a source file or a file produced by an action.
A bound artifact is only either an SourceArtifact
or BuildArtifact
This interface is not intended to be used by users, but only by the framework.
Modifier and Type | Method and Description |
---|---|
BuildArtifact |
asBuildArtifact() |
SourceArtifact |
asSource() |
SourcePath |
getSourcePath() |
asBound, asDeclared, asOutputArtifact, isBound
asSkylarkOutputArtifact, getBasename, getExtension, getOwner, getShortPath, isImmutable, isSource
isHashable
debugPrint, repr, str
compareTo
@Nullable SourceArtifact asSource()
SourceArtifact
, null if this is not a SourceArtifact
@Nullable BuildArtifact asBuildArtifact()
BuildArtifact
, null if this is not a BuildArtifact
SourcePath getSourcePath()
SourcePath
that represents where this artifact is.