public class SkylarkRuleContext extends Object
Constructor and Description |
---|
SkylarkRuleContext(RuleAnalysisContext context,
com.google.devtools.build.lib.cmdline.Label label,
SkylarkRuleContextAttr skylarkRuleContextAttr)
Create a
SkylarkRuleContext to be used in users' implementation functions |
Modifier and Type | Method and Description |
---|---|
SkylarkRuleContextActionsApi |
getActions() |
SkylarkRuleContextAttr |
getAttr() |
com.google.devtools.build.lib.cmdline.Label |
getLabel() |
void |
repr(com.google.devtools.build.lib.skylarkinterface.SkylarkPrinter printer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public SkylarkRuleContext(RuleAnalysisContext context, com.google.devtools.build.lib.cmdline.Label label, SkylarkRuleContextAttr skylarkRuleContextAttr)
SkylarkRuleContext
to be used in users' implementation functionscontext
- the context for the analysing this rule. Used primarily for creating and
manipulating actionslabel
- the label of the new rule being evaluatedskylarkRuleContextAttr
- a mapping-like representation of field names to
coerced-transformed values for a given rulepublic void repr(com.google.devtools.build.lib.skylarkinterface.SkylarkPrinter printer)
public SkylarkRuleContextAttr getAttr()
public com.google.devtools.build.lib.cmdline.Label getLabel()
public SkylarkRuleContextActionsApi getActions()