public abstract class DepAttribute extends Attribute<BuildTarget>
ProviderInfoCollection| Constructor and Description |
|---|
DepAttribute() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getDoc()
The docstring to use for this attribute
|
abstract boolean |
getMandatory()
Whether this attribute is mandatory or not
|
PostCoercionTransform<RuleAnalysisContext,SkylarkDependency> |
getPostCoercionTransform() |
abstract Object |
getPreCoercionDefaultValue()
The default value to use if no value is provided.
|
abstract com.google.common.collect.ImmutableList<Provider<?>> |
getProviders() |
TypeCoercer<?,BuildTarget> |
getTypeCoercer()
The type coercer to use to convert raw values from the parser into something usable internally.
|
static DepAttribute |
of(Object preCoercionDefaultValue,
String doc,
boolean mandatory,
com.google.common.collect.ImmutableList<Provider<?>> providers) |
void |
repr(com.google.devtools.build.lib.skylarkinterface.SkylarkPrinter printer) |
getAttribute, getGenericType, getValue, validateCoercedValue, validateProvidersPresent, validateValueInListclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic abstract Object getPreCoercionDefaultValue()
AttributeThis will be validated against Attribute.getTypeCoercer(), so may return a value whose type
does not match CoercedType (e.g. a list of strings, rather than a list of SourcePath)
getPreCoercionDefaultValue in class Attribute<BuildTarget>public abstract String getDoc()
AttributegetDoc in class Attribute<BuildTarget>public abstract boolean getMandatory()
AttributegetMandatory in class Attribute<BuildTarget>public void repr(com.google.devtools.build.lib.skylarkinterface.SkylarkPrinter printer)
public TypeCoercer<?,BuildTarget> getTypeCoercer()
AttributegetTypeCoercer in class Attribute<BuildTarget>public abstract com.google.common.collect.ImmutableList<Provider<?>> getProviders()
public PostCoercionTransform<RuleAnalysisContext,SkylarkDependency> getPostCoercionTransform()
getPostCoercionTransform in class Attribute<BuildTarget>public static DepAttribute of(Object preCoercionDefaultValue, String doc, boolean mandatory, com.google.common.collect.ImmutableList<Provider<?>> providers)