public class SkylarkRuleFunctions extends Object implements SkylarkRuleFunctionsApi
Modifier and Type | Field and Description |
---|---|
static Set<String> |
HIDDEN_IMPLICIT_ATTRIBUTES
The hidden attributes from IMPLICIT_ATTRIBUTES that are hidden from user's for user defined
rules
|
static com.google.common.collect.ImmutableMap<String,Attribute<?>> |
IMPLICIT_ATTRIBUTES
The attributes that are applicable to all rules.
|
static com.google.common.collect.ImmutableMap<String,Attribute<?>> |
IMPLICIT_TEST_ATTRIBUTES |
Constructor and Description |
---|
SkylarkRuleFunctions(com.google.common.cache.LoadingCache<String,com.google.devtools.build.lib.cmdline.Label> labelCache) |
Modifier and Type | Method and Description |
---|---|
com.google.devtools.build.lib.cmdline.Label |
label(String labelString,
com.google.devtools.build.lib.events.Location loc,
com.google.devtools.build.lib.syntax.Environment env,
com.google.devtools.build.lib.skylarkinterface.StarlarkContext context) |
UserDefinedProvider |
provider(String doc,
Object fields,
com.google.devtools.build.lib.events.Location location) |
SkylarkUserDefinedRule |
rule(com.google.devtools.build.lib.syntax.BaseFunction implementation,
com.google.devtools.build.lib.syntax.SkylarkDict<String,AttributeHolder> attrs,
boolean inferRunInfo,
boolean test,
com.google.devtools.build.lib.events.Location loc,
com.google.devtools.build.lib.syntax.FuncallExpression ast,
com.google.devtools.build.lib.syntax.Environment env) |
public static final com.google.common.collect.ImmutableMap<String,Attribute<?>> IMPLICIT_ATTRIBUTES
public static final com.google.common.collect.ImmutableMap<String,Attribute<?>> IMPLICIT_TEST_ATTRIBUTES
public SkylarkRuleFunctions(com.google.common.cache.LoadingCache<String,com.google.devtools.build.lib.cmdline.Label> labelCache)
public com.google.devtools.build.lib.cmdline.Label label(String labelString, com.google.devtools.build.lib.events.Location loc, com.google.devtools.build.lib.syntax.Environment env, com.google.devtools.build.lib.skylarkinterface.StarlarkContext context) throws com.google.devtools.build.lib.syntax.EvalException
label
in interface SkylarkRuleFunctionsApi
com.google.devtools.build.lib.syntax.EvalException
public SkylarkUserDefinedRule rule(com.google.devtools.build.lib.syntax.BaseFunction implementation, com.google.devtools.build.lib.syntax.SkylarkDict<String,AttributeHolder> attrs, boolean inferRunInfo, boolean test, com.google.devtools.build.lib.events.Location loc, com.google.devtools.build.lib.syntax.FuncallExpression ast, com.google.devtools.build.lib.syntax.Environment env) throws com.google.devtools.build.lib.syntax.EvalException
rule
in interface SkylarkRuleFunctionsApi
com.google.devtools.build.lib.syntax.EvalException
public UserDefinedProvider provider(String doc, Object fields, com.google.devtools.build.lib.events.Location location) throws com.google.devtools.build.lib.syntax.EvalException
provider
in interface SkylarkRuleFunctionsApi
com.google.devtools.build.lib.syntax.EvalException