public interface AttributeHolder
extends com.google.devtools.build.lib.skylarkinterface.SkylarkValue
SkylarkDict.getContents(Class, Class, String). If using com.facebook.buck.core.starlark.rule.attr.Attribute<T>, then a Class<T> cannot be
instantiated. If the generic Attribute type is
passed and used, then it is a compile error. We need SkylarkDict.getContents(Class, Class,
String) to succeed in order to validate the types of the objects in that dictionary, so add an
intermediate class. This is terrible.| Modifier and Type | Method and Description |
|---|---|
Attribute<?> |
getAttribute()
Get the actual attribute object
|
Attribute<?> getAttribute()