public class AndroidInstrumentationTestDescription extends Object implements DescriptionWithTargetGraph<AndroidInstrumentationTestDescriptionArg>, ImplicitDepsInferringDescription<AndroidInstrumentationTestDescriptionArg>
Constructor and Description |
---|
AndroidInstrumentationTestDescription(BuckConfig buckConfig,
ToolchainProvider toolchainProvider) |
Modifier and Type | Method and Description |
---|---|
AndroidInstrumentationTest |
createBuildRule(BuildRuleCreationContextWithTargetGraph context,
BuildTarget buildTarget,
BuildRuleParams params,
AndroidInstrumentationTestDescriptionArg args)
Create a
BuildRule for the given BuildRuleParams . |
void |
findDepsForTargetFromConstructorArgs(BuildTarget buildTarget,
CellNameResolver cellRoots,
AndroidInstrumentationTestDescriptionArg constructorArg,
com.google.common.collect.ImmutableCollection.Builder<BuildTarget> extraDepsBuilder,
com.google.common.collect.ImmutableCollection.Builder<BuildTarget> targetGraphOnlyDepsBuilder) |
Class<AndroidInstrumentationTestDescriptionArg> |
getConstructorArgType()
The type of the constructor argument that is used by this description to create a rule
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
producesCacheableSubgraph
getConfigurationDeps
public AndroidInstrumentationTestDescription(BuckConfig buckConfig, ToolchainProvider toolchainProvider)
public Class<AndroidInstrumentationTestDescriptionArg> getConstructorArgType()
BaseDescription
getConstructorArgType
in interface BaseDescription<AndroidInstrumentationTestDescriptionArg>
public AndroidInstrumentationTest createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, AndroidInstrumentationTestDescriptionArg 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<AndroidInstrumentationTestDescriptionArg>
args
- A constructor argument, of type as returned by BaseDescription.getConstructorArgType()
.BuildRule
that describes the default flavour of the rule being described.public void findDepsForTargetFromConstructorArgs(BuildTarget buildTarget, CellNameResolver cellRoots, AndroidInstrumentationTestDescriptionArg constructorArg, com.google.common.collect.ImmutableCollection.Builder<BuildTarget> extraDepsBuilder, com.google.common.collect.ImmutableCollection.Builder<BuildTarget> targetGraphOnlyDepsBuilder)
findDepsForTargetFromConstructorArgs
in interface ImplicitDepsInferringDescription<AndroidInstrumentationTestDescriptionArg>