public class SkylarkDependency extends Object implements com.google.devtools.build.lib.skylarkinterface.SkylarkValue, com.google.devtools.build.lib.syntax.SkylarkIndexable
ProviderInfoCollection
, and more in the future. SkylarkIndexable
operations are proxied to the provided ProviderInfoCollection
Constructor and Description |
---|
SkylarkDependency(BuildTarget target,
ProviderInfoCollection providerInfos) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key,
com.google.devtools.build.lib.events.Location loc,
com.google.devtools.build.lib.skylarkinterface.StarlarkContext context) |
Object |
getIndex(Object key,
com.google.devtools.build.lib.events.Location loc,
com.google.devtools.build.lib.skylarkinterface.StarlarkContext context) |
ProviderInfoCollection |
getProviderInfos() |
com.google.devtools.build.lib.cmdline.Label |
label() |
void |
repr(com.google.devtools.build.lib.skylarkinterface.SkylarkPrinter printer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isHashable, isImmutable
public SkylarkDependency(BuildTarget target, ProviderInfoCollection providerInfos)
public com.google.devtools.build.lib.cmdline.Label label()
public ProviderInfoCollection getProviderInfos()
public void repr(com.google.devtools.build.lib.skylarkinterface.SkylarkPrinter printer)
repr
in interface com.google.devtools.build.lib.skylarkinterface.SkylarkPrintable
public Object getIndex(Object key, com.google.devtools.build.lib.events.Location loc, com.google.devtools.build.lib.skylarkinterface.StarlarkContext context) throws com.google.devtools.build.lib.syntax.EvalException
getIndex
in interface com.google.devtools.build.lib.syntax.SkylarkIndexable
com.google.devtools.build.lib.syntax.EvalException
public boolean containsKey(Object key, com.google.devtools.build.lib.events.Location loc, com.google.devtools.build.lib.skylarkinterface.StarlarkContext context) throws com.google.devtools.build.lib.syntax.EvalException
containsKey
in interface com.google.devtools.build.lib.syntax.SkylarkQueryable
com.google.devtools.build.lib.syntax.EvalException