public class SkylarkDescription extends Object implements RuleDescriptionWithInstanceName<SkylarkDescriptionArg>
|Constructor and Description|
|Modifier and Type||Method and Description|
The type of the constructor argument that is used by this description to create a rule
Whether or not the build rule subgraph produced by this
Runs the rule implementation during the analysis phase.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public boolean producesCacheableSubgraph()
Descriptionis safe to cache in
IncrementalActionGraphGeneratorfor incremental action graph generation.
public ProviderInfoCollection ruleImpl(RuleAnalysisContext context, BuildTarget target, SkylarkDescriptionArg args) throws RuleAnalysisException, ActionCreationException
Providers and corresponding
InfoInterfaces, and register its corresponding actions.
RuleAnalysisContextcontaining all the information usable by this rule for it's analysis and constructive of its corresponding
BuildTargetof this rule
args- The args of type
Tthat this rule uses to rule its analysis
ProviderInfoCollectionthat contains all the
Providerand the corresponding
InfoInterfaceto be propagated by this rule.
RuleAnalysisException- If the rule implementation could not run as expected. e.g. if the implementation method of a User Defined Rule fails to eval
ActionCreationException- If an action cannot be created correctly
public String getRuleName(SkylarkDescriptionArg args)
public Class<SkylarkDescriptionArg> getConstructorArgType()