public class AttrModule extends Object implements AttrModuleApi
Constructor and Description |
---|
AttrModule() |
Modifier and Type | Method and Description |
---|---|
AttributeHolder |
boolAttribute(boolean defaultValue,
String doc,
boolean mandatory) |
AttributeHolder |
depAttribute(Object defaultValue,
String doc,
boolean mandatory,
com.google.devtools.build.lib.syntax.SkylarkList<Provider<?>> providers) |
AttributeHolder |
depListAttribute(com.google.devtools.build.lib.syntax.SkylarkList<String> defaultValue,
String doc,
boolean mandatory,
boolean allowEmpty,
com.google.devtools.build.lib.syntax.SkylarkList<Provider<?>> providers) |
AttributeHolder |
intAttribute(Integer defaultValue,
String doc,
Boolean mandatory,
com.google.devtools.build.lib.syntax.SkylarkList<Integer> values) |
AttributeHolder |
intListAttribute(com.google.devtools.build.lib.syntax.SkylarkList<Integer> defaultValue,
String doc,
boolean mandatory,
boolean allowEmpty) |
AttributeHolder |
outputAttribute(Object defaultValue,
String doc,
boolean mandatory,
com.google.devtools.build.lib.events.Location location) |
AttributeHolder |
outputListAttribute(com.google.devtools.build.lib.syntax.SkylarkList<String> defaultValue,
String doc,
boolean mandatory,
boolean allowEmpty) |
void |
repr(com.google.devtools.build.lib.skylarkinterface.SkylarkPrinter printer) |
AttributeHolder |
sourceAttribute(Object defaultValue,
String doc,
boolean mandatory) |
AttributeHolder |
sourceListAttribute(com.google.devtools.build.lib.syntax.SkylarkList<String> defaultValue,
String doc,
boolean mandatory,
boolean allowEmpty) |
AttributeHolder |
stringAttribute(String defaultValue,
String doc,
Boolean mandatory,
com.google.devtools.build.lib.syntax.SkylarkList<String> values) |
AttributeHolder |
stringListAttribute(com.google.devtools.build.lib.syntax.SkylarkList<String> defaultValue,
String doc,
boolean mandatory,
boolean allowEmpty) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public void repr(com.google.devtools.build.lib.skylarkinterface.SkylarkPrinter printer)
repr
in interface com.google.devtools.build.lib.skylarkinterface.SkylarkPrintable
public AttributeHolder intAttribute(Integer defaultValue, String doc, Boolean mandatory, com.google.devtools.build.lib.syntax.SkylarkList<Integer> values) throws com.google.devtools.build.lib.syntax.EvalException
intAttribute
in interface AttrModuleApi
com.google.devtools.build.lib.syntax.EvalException
public AttributeHolder intListAttribute(com.google.devtools.build.lib.syntax.SkylarkList<Integer> defaultValue, String doc, boolean mandatory, boolean allowEmpty) throws com.google.devtools.build.lib.syntax.EvalException
intListAttribute
in interface AttrModuleApi
com.google.devtools.build.lib.syntax.EvalException
public AttributeHolder stringAttribute(String defaultValue, String doc, Boolean mandatory, com.google.devtools.build.lib.syntax.SkylarkList<String> values) throws com.google.devtools.build.lib.syntax.EvalException
stringAttribute
in interface AttrModuleApi
com.google.devtools.build.lib.syntax.EvalException
public AttributeHolder stringListAttribute(com.google.devtools.build.lib.syntax.SkylarkList<String> defaultValue, String doc, boolean mandatory, boolean allowEmpty) throws com.google.devtools.build.lib.syntax.EvalException
stringListAttribute
in interface AttrModuleApi
com.google.devtools.build.lib.syntax.EvalException
public AttributeHolder boolAttribute(boolean defaultValue, String doc, boolean mandatory)
boolAttribute
in interface AttrModuleApi
public AttributeHolder sourceListAttribute(com.google.devtools.build.lib.syntax.SkylarkList<String> defaultValue, String doc, boolean mandatory, boolean allowEmpty) throws com.google.devtools.build.lib.syntax.EvalException
sourceListAttribute
in interface AttrModuleApi
com.google.devtools.build.lib.syntax.EvalException
public AttributeHolder sourceAttribute(Object defaultValue, String doc, boolean mandatory) throws com.google.devtools.build.lib.syntax.EvalException
sourceAttribute
in interface AttrModuleApi
com.google.devtools.build.lib.syntax.EvalException
public AttributeHolder depAttribute(Object defaultValue, String doc, boolean mandatory, com.google.devtools.build.lib.syntax.SkylarkList<Provider<?>> providers) throws com.google.devtools.build.lib.syntax.EvalException
depAttribute
in interface AttrModuleApi
com.google.devtools.build.lib.syntax.EvalException
public AttributeHolder depListAttribute(com.google.devtools.build.lib.syntax.SkylarkList<String> defaultValue, String doc, boolean mandatory, boolean allowEmpty, com.google.devtools.build.lib.syntax.SkylarkList<Provider<?>> providers) throws com.google.devtools.build.lib.syntax.EvalException
depListAttribute
in interface AttrModuleApi
com.google.devtools.build.lib.syntax.EvalException
public AttributeHolder outputAttribute(Object defaultValue, String doc, boolean mandatory, com.google.devtools.build.lib.events.Location location) throws com.google.devtools.build.lib.syntax.EvalException
outputAttribute
in interface AttrModuleApi
com.google.devtools.build.lib.syntax.EvalException
public AttributeHolder outputListAttribute(com.google.devtools.build.lib.syntax.SkylarkList<String> defaultValue, String doc, boolean mandatory, boolean allowEmpty) throws com.google.devtools.build.lib.syntax.EvalException
outputListAttribute
in interface AttrModuleApi
com.google.devtools.build.lib.syntax.EvalException