public class LegacyProviderInfoCollectionImpl extends Object implements ProviderInfoCollection
ProviderInfoCollection.ProviderInfoCollection.Builder| Modifier and Type | Method and Description |
|---|---|
<T extends ProviderInfo<T>> |
contains(Provider<T> provider) |
boolean |
containsKey(Object key,
com.google.devtools.build.lib.events.Location loc,
com.google.devtools.build.lib.skylarkinterface.StarlarkContext context) |
<T extends ProviderInfo<T>> |
get(Provider<T> provider) |
DefaultInfo |
getDefaultInfo() |
Object |
getIndex(Object key,
com.google.devtools.build.lib.events.Location loc,
com.google.devtools.build.lib.skylarkinterface.StarlarkContext context) |
static ProviderInfoCollection |
of() |
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.SkylarkIndexablecom.google.devtools.build.lib.syntax.EvalExceptionpublic 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.SkylarkQueryablecom.google.devtools.build.lib.syntax.EvalExceptionpublic static ProviderInfoCollection of()
public <T extends ProviderInfo<T>> Optional<T> get(Provider<T> provider)
get in interface ProviderInfoCollectionProviderInfo of the specific type given the Providerpublic <T extends ProviderInfo<T>> boolean contains(Provider<T> provider)
contains in interface ProviderInfoCollectionProviderInfo of the specific type given by the
Providerpublic DefaultInfo getDefaultInfo()
getDefaultInfo in interface ProviderInfoCollectionDefaultInfo contained in this collection