public abstract class UnconfiguredOptionalDepAttribute extends Attribute<Optional<UnconfiguredBuildTarget>>
default_target_platform.| Constructor and Description | 
|---|
UnconfiguredOptionalDepAttribute()  | 
| Modifier and Type | Method and Description | 
|---|---|
abstract boolean | 
getAllowEmpty()
Whether or not the list can be empty 
 | 
abstract String | 
getDoc()
The docstring to use for this attribute 
 | 
abstract boolean | 
getMandatory()
Whether this attribute is mandatory or not 
 | 
PostCoercionTransform<RuleAnalysisContext,List<SkylarkDependency>> | 
getPostCoercionTransform()  | 
abstract Optional<String> | 
getPreCoercionDefaultValue()
The default value to use if no value is provided. 
 | 
TypeCoercer<?,Optional<UnconfiguredBuildTarget>> | 
getTypeCoercer()
The type coercer to use to convert raw values from the parser into something usable internally. 
 | 
static UnconfiguredOptionalDepAttribute | 
of(Optional<String> preCoercionDefaultValue,
  String doc,
  boolean mandatory,
  boolean allowEmpty)  | 
void | 
repr(com.google.devtools.build.lib.skylarkinterface.SkylarkPrinter printer)  | 
void | 
validateCoercedValue(Optional<UnconfiguredBuildTarget> paths)
Validates values post-coercion to ensure other properties besides 'type' are valid 
 | 
getAttribute, getGenericType, getValue, validateProvidersPresent, validateValueInListclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic abstract Optional<String> 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<Optional<UnconfiguredBuildTarget>>public abstract String getDoc()
AttributegetDoc in class Attribute<Optional<UnconfiguredBuildTarget>>public abstract boolean getMandatory()
AttributegetMandatory in class Attribute<Optional<UnconfiguredBuildTarget>>public abstract boolean getAllowEmpty()
public void repr(com.google.devtools.build.lib.skylarkinterface.SkylarkPrinter printer)
public TypeCoercer<?,Optional<UnconfiguredBuildTarget>> getTypeCoercer()
AttributegetTypeCoercer in class Attribute<Optional<UnconfiguredBuildTarget>>public void validateCoercedValue(Optional<UnconfiguredBuildTarget> paths) throws CoerceFailedException
AttributevalidateCoercedValue in class Attribute<Optional<UnconfiguredBuildTarget>>paths - The value to checkCoerceFailedException - if the value is invalid (e.g. not in a list of pre-approved
     values)public PostCoercionTransform<RuleAnalysisContext,List<SkylarkDependency>> getPostCoercionTransform()
getPostCoercionTransform in class Attribute<Optional<UnconfiguredBuildTarget>>public static UnconfiguredOptionalDepAttribute of(Optional<String> preCoercionDefaultValue, String doc, boolean mandatory, boolean allowEmpty)