public interface ProviderInfoCollection
extends com.google.devtools.build.lib.syntax.SkylarkIndexable
Provider
s and their corresponding ProviderInfo
.
This is a mapping of the Provider
via the Provider.Key
to the corresponding
ProviderInfo
information that the Provider
propagates.
This is SkylarkIndexable
, so that this can be used to access individual provider
information from within skylark extension rule implementations.
Modifier and Type | Interface and Description |
---|---|
static interface |
ProviderInfoCollection.Builder |
Modifier and Type | Method and Description |
---|---|
<T extends ProviderInfo<T>> |
contains(Provider<T> provider) |
<T extends ProviderInfo<T>> |
get(Provider<T> provider) |
DefaultInfo |
getDefaultInfo() |
<T extends ProviderInfo<T>> Optional<T> get(Provider<T> provider)
ProviderInfo
of the specific type given the Provider
<T extends ProviderInfo<T>> boolean contains(Provider<T> provider)
ProviderInfo
of the specific type given by the
Provider
DefaultInfo getDefaultInfo()
DefaultInfo
contained in this collection