Package com.facebook.buck.shell
Class ShBinaryDescription
- java.lang.Object
-
- com.facebook.buck.shell.ShBinaryDescription
-
- All Implemented Interfaces:
BaseDescription<ShBinaryDescriptionArg>
,Description<ShBinaryDescriptionArg>
,DescriptionWithTargetGraph<ShBinaryDescriptionArg>
public class ShBinaryDescription extends Object implements DescriptionWithTargetGraph<ShBinaryDescriptionArg>
-
-
Constructor Summary
Constructors Constructor Description ShBinaryDescription()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShBinary
createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, ShBinaryDescriptionArg args)
Create aBuildRule
for the givenBuildRuleParams
.Class<ShBinaryDescriptionArg>
getConstructorArgType()
The type of the constructor argument that is used by this description to create a ruleboolean
producesCacheableSubgraph()
Whether or not the build rule subgraph produced by thisDescription
is safe to cache inIncrementalActionGraphGenerator
for incremental action graph generation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.facebook.buck.core.description.BaseDescription
getConfigurationDeps
-
-
-
-
Method Detail
-
getConstructorArgType
public Class<ShBinaryDescriptionArg> getConstructorArgType()
Description copied from interface:BaseDescription
The type of the constructor argument that is used by this description to create a rule- Specified by:
getConstructorArgType
in interfaceBaseDescription<ShBinaryDescriptionArg>
-
createBuildRule
public ShBinary createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, ShBinaryDescriptionArg args)
Description copied from interface:DescriptionWithTargetGraph
Create aBuildRule
for the givenBuildRuleParams
. Note that theBuildTarget
referred to in theparams
contains theFlavor
to create.- Specified by:
createBuildRule
in interfaceDescriptionWithTargetGraph<ShBinaryDescriptionArg>
args
- A constructor argument, of type as returned byBaseDescription.getConstructorArgType()
.- Returns:
- The
BuildRule
that describes the default flavour of the rule being described.
-
producesCacheableSubgraph
public boolean producesCacheableSubgraph()
Description copied from interface:DescriptionWithTargetGraph
Whether or not the build rule subgraph produced by thisDescription
is safe to cache inIncrementalActionGraphGenerator
for incremental action graph generation.- Specified by:
producesCacheableSubgraph
in interfaceDescription<ShBinaryDescriptionArg>
- Specified by:
producesCacheableSubgraph
in interfaceDescriptionWithTargetGraph<ShBinaryDescriptionArg>
-
-