public class PrebuiltGoLibraryDescription extends Object implements DescriptionWithTargetGraph<PrebuiltGoLibraryDescriptionArg>, MetadataProvidingDescription<PrebuiltGoLibraryDescriptionArg>, VersionPropagator<PrebuiltGoLibraryDescriptionArg>
| Constructor and Description |
|---|
PrebuiltGoLibraryDescription(GoBuckConfig goBuckConfig,
ToolchainProvider toolchainProvider) |
| Modifier and Type | Method and Description |
|---|---|
com.facebook.buck.features.go.PrebuiltGoLibrary |
createBuildRule(BuildRuleCreationContextWithTargetGraph context,
BuildTarget buildTarget,
BuildRuleParams params,
PrebuiltGoLibraryDescriptionArg args)
Create a
BuildRule for the given BuildRuleParams. |
<U> Optional<U> |
createMetadata(BuildTarget buildTarget,
ActionGraphBuilder graphBuilder,
CellPathResolver cellRoots,
PrebuiltGoLibraryDescriptionArg args,
Optional<com.google.common.collect.ImmutableMap<BuildTarget,Version>> selectedVersions,
Class<U> metadataClass) |
Class<PrebuiltGoLibraryDescriptionArg> |
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, waitproducesCacheableSubgraphgetConfigurationDepspublic PrebuiltGoLibraryDescription(GoBuckConfig goBuckConfig, ToolchainProvider toolchainProvider)
public Class<PrebuiltGoLibraryDescriptionArg> getConstructorArgType()
BaseDescriptiongetConstructorArgType in interface BaseDescription<PrebuiltGoLibraryDescriptionArg>public <U> Optional<U> createMetadata(BuildTarget buildTarget, ActionGraphBuilder graphBuilder, CellPathResolver cellRoots, PrebuiltGoLibraryDescriptionArg args, Optional<com.google.common.collect.ImmutableMap<BuildTarget,Version>> selectedVersions, Class<U> metadataClass)
createMetadata in interface MetadataProvidingDescription<PrebuiltGoLibraryDescriptionArg>public com.facebook.buck.features.go.PrebuiltGoLibrary createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, PrebuiltGoLibraryDescriptionArg args)
DescriptionWithTargetGraphBuildRule for the given BuildRuleParams. Note that the BuildTarget referred to in the params contains the Flavor to create.createBuildRule in interface DescriptionWithTargetGraph<PrebuiltGoLibraryDescriptionArg>args - A constructor argument, of type as returned by BaseDescription.getConstructorArgType().BuildRule that describes the default flavour of the rule being described.