public interface Provider<T extends ProviderInfo<T>>
extends com.google.devtools.build.lib.skylarkinterface.SkylarkValue
ProviderInfo
).
Provider
serves both as "type identifier" for declared provider instances and as a
function that can be called to construct an info of a provider. To the Skylark user, there are
"providers" and "provider infos"; the former is a Java instance of this class, and the latter is
a Java instance of ProviderInfo
.
Modifier and Type | Interface and Description |
---|---|
static interface |
Provider.Key<T>
A serializable unique identifier of a
Provider . |
Modifier and Type | Method and Description |
---|---|
Provider.Key<T> |
getKey()
Returns a serializable representation of this
Provider . |
String |
toString()
Returns a name of this
Provider that should be
used in error messages. |
Provider.Key<T> getKey()
Provider
.