public class ExportFileDescription extends Object implements DescriptionWithTargetGraph<ExportFileDescriptionArg>, ImplicitInputsInferringDescription<ExportFileDescriptionArg>
Modifier and Type | Class and Description |
---|---|
static class |
ExportFileDescription.Mode
Controls how `export_file` exports it's wrapped source.
|
Constructor and Description |
---|
ExportFileDescription(BuckConfig buckConfig) |
Modifier and Type | Method and Description |
---|---|
ExportFile |
createBuildRule(BuildRuleCreationContextWithTargetGraph context,
BuildTarget buildTarget,
BuildRuleParams params,
ExportFileDescriptionArg args)
Create a
BuildRule for the given BuildRuleParams . |
Class<ExportFileDescriptionArg> |
getConstructorArgType()
The type of the constructor argument that is used by this description to create a rule
|
com.google.common.collect.ImmutableList<ForwardRelativePath> |
inferInputsFromConstructorArgs(UnflavoredBuildTarget buildTarget,
ExportFileDescriptionArg constructorArg)
If the src field is absent, add the name field to the list of inputs.
|
boolean |
producesCacheableSubgraph()
Whether or not the build rule subgraph produced by this
Description is safe to cache in
IncrementalActionGraphGenerator
for incremental action graph generation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigurationDeps
public ExportFileDescription(BuckConfig buckConfig)
public Class<ExportFileDescriptionArg> getConstructorArgType()
BaseDescription
getConstructorArgType
in interface BaseDescription<ExportFileDescriptionArg>
public ExportFile createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, ExportFileDescriptionArg args)
DescriptionWithTargetGraph
BuildRule
for the given BuildRuleParams
. Note that the BuildTarget
referred to in the params
contains the Flavor
to create.createBuildRule
in interface DescriptionWithTargetGraph<ExportFileDescriptionArg>
args
- A constructor argument, of type as returned by BaseDescription.getConstructorArgType()
.BuildRule
that describes the default flavour of the rule being described.public com.google.common.collect.ImmutableList<ForwardRelativePath> inferInputsFromConstructorArgs(UnflavoredBuildTarget buildTarget, ExportFileDescriptionArg constructorArg)
inferInputsFromConstructorArgs
in interface ImplicitInputsInferringDescription<ExportFileDescriptionArg>
public boolean producesCacheableSubgraph()
DescriptionWithTargetGraph
Description
is safe to cache in
IncrementalActionGraphGenerator
for incremental action graph generation.producesCacheableSubgraph
in interface Description<ExportFileDescriptionArg>
producesCacheableSubgraph
in interface DescriptionWithTargetGraph<ExportFileDescriptionArg>