Package com.facebook.buck.shell
Class ShTestDescription
- java.lang.Object
-
- com.facebook.buck.shell.ShTestDescription
-
- All Implemented Interfaces:
BaseDescription<ShTestDescriptionArg>
,Description<ShTestDescriptionArg>
,DescriptionWithTargetGraph<ShTestDescriptionArg>
public class ShTestDescription extends Object implements DescriptionWithTargetGraph<ShTestDescriptionArg>
-
-
Constructor Summary
Constructors Constructor Description ShTestDescription(BuckConfig buckConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShTest
createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, ShTestDescriptionArg args)
Create aBuildRule
for the givenBuildRuleParams
.Class<ShTestDescriptionArg>
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
-
-
-
-
Constructor Detail
-
ShTestDescription
public ShTestDescription(BuckConfig buckConfig)
-
-
Method Detail
-
getConstructorArgType
public Class<ShTestDescriptionArg> 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<ShTestDescriptionArg>
-
createBuildRule
public ShTest createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, ShTestDescriptionArg 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<ShTestDescriptionArg>
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<ShTestDescriptionArg>
- Specified by:
producesCacheableSubgraph
in interfaceDescriptionWithTargetGraph<ShTestDescriptionArg>
-
-