public interface SkylarkArtifactApi
extends com.google.devtools.build.lib.skylarkinterface.SkylarkValue
Note, that unlike https://docs.bazel.build/versions/master/skylark/lib/File.html, we do not presently expose root, dirname, or path to give a fully constructed path from the repository root. Should this be necessary in the future, we may expose those things.
Modifier and Type | Method and Description |
---|---|
SkylarkOutputArtifactApi |
asSkylarkOutputArtifact(com.google.devtools.build.lib.events.Location location) |
String |
getBasename() |
String |
getExtension() |
Object |
getOwner() |
String |
getShortPath() |
default boolean |
isImmutable() |
boolean |
isSource() |
String getBasename()
String getExtension()
boolean isSource()
Object getOwner()
String getShortPath()
SkylarkOutputArtifactApi asSkylarkOutputArtifact(com.google.devtools.build.lib.events.Location location) throws com.google.devtools.build.lib.syntax.EvalException
com.google.devtools.build.lib.syntax.EvalException
default boolean isImmutable()
isImmutable
in interface com.google.devtools.build.lib.skylarkinterface.SkylarkValue