Package com.facebook.buck.shell
Class WorkerToolDescription
- java.lang.Object
-
- com.facebook.buck.shell.WorkerToolDescription
-
- All Implemented Interfaces:
BaseDescription<WorkerToolDescriptionArg>
,Description<WorkerToolDescriptionArg>
,DescriptionWithTargetGraph<WorkerToolDescriptionArg>
public class WorkerToolDescription extends Object implements DescriptionWithTargetGraph<WorkerToolDescriptionArg>
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.collect.ImmutableList<MacroExpander<? extends Macro,?>>
MACRO_EXPANDERS
-
Constructor Summary
Constructors Constructor Description WorkerToolDescription(BuckConfig buckConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildRule
createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, WorkerToolDescriptionArg args)
Create aBuildRule
for the givenBuildRuleParams
.Class<WorkerToolDescriptionArg>
getConstructorArgType()
The type of the constructor argument that is used by this description to create a rule-
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
-
Methods inherited from interface com.facebook.buck.core.rules.DescriptionWithTargetGraph
producesCacheableSubgraph
-
-
-
-
Field Detail
-
MACRO_EXPANDERS
public static final com.google.common.collect.ImmutableList<MacroExpander<? extends Macro,?>> MACRO_EXPANDERS
-
-
Constructor Detail
-
WorkerToolDescription
public WorkerToolDescription(BuckConfig buckConfig)
-
-
Method Detail
-
getConstructorArgType
public Class<WorkerToolDescriptionArg> 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<WorkerToolDescriptionArg>
-
createBuildRule
public BuildRule createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, WorkerToolDescriptionArg 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<WorkerToolDescriptionArg>
args
- A constructor argument, of type as returned byBaseDescription.getConstructorArgType()
.- Returns:
- The
BuildRule
that describes the default flavour of the rule being described.
-
-