Package com.facebook.buck.jvm.groovy
Class GroovyLibraryDescription
- java.lang.Object
-
- com.facebook.buck.jvm.groovy.GroovyLibraryDescription
-
- All Implemented Interfaces:
ImplicitDepsInferringDescription<com.facebook.buck.jvm.groovy.GroovyLibraryDescription.AbstractGroovyLibraryDescriptionArg>
,BaseDescription<GroovyLibraryDescriptionArg>
,Description<GroovyLibraryDescriptionArg>
,DescriptionWithTargetGraph<GroovyLibraryDescriptionArg>
public class GroovyLibraryDescription extends Object implements DescriptionWithTargetGraph<GroovyLibraryDescriptionArg>, ImplicitDepsInferringDescription<com.facebook.buck.jvm.groovy.GroovyLibraryDescription.AbstractGroovyLibraryDescriptionArg>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
GroovyLibraryDescription.CoreArg
-
Constructor Summary
Constructors Constructor Description GroovyLibraryDescription(ToolchainProvider toolchainProvider, GroovyBuckConfig groovyBuckConfig, JavaBuckConfig javaBuckConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuildRule
createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, GroovyLibraryDescriptionArg args)
Create aBuildRule
for the givenBuildRuleParams
.void
findDepsForTargetFromConstructorArgs(BuildTarget buildTarget, CellNameResolver cellRoots, com.facebook.buck.jvm.groovy.GroovyLibraryDescription.AbstractGroovyLibraryDescriptionArg constructorArg, com.google.common.collect.ImmutableCollection.Builder<BuildTarget> extraDepsBuilder, com.google.common.collect.ImmutableCollection.Builder<BuildTarget> targetGraphOnlyDepsBuilder)
Class<GroovyLibraryDescriptionArg>
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
-
-
-
-
Constructor Detail
-
GroovyLibraryDescription
public GroovyLibraryDescription(ToolchainProvider toolchainProvider, GroovyBuckConfig groovyBuckConfig, JavaBuckConfig javaBuckConfig)
-
-
Method Detail
-
getConstructorArgType
public Class<GroovyLibraryDescriptionArg> 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<GroovyLibraryDescriptionArg>
-
createBuildRule
public BuildRule createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, GroovyLibraryDescriptionArg 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<GroovyLibraryDescriptionArg>
args
- A constructor argument, of type as returned byBaseDescription.getConstructorArgType()
.- Returns:
- The
BuildRule
that describes the default flavour of the rule being described.
-
findDepsForTargetFromConstructorArgs
public void findDepsForTargetFromConstructorArgs(BuildTarget buildTarget, CellNameResolver cellRoots, com.facebook.buck.jvm.groovy.GroovyLibraryDescription.AbstractGroovyLibraryDescriptionArg constructorArg, com.google.common.collect.ImmutableCollection.Builder<BuildTarget> extraDepsBuilder, com.google.common.collect.ImmutableCollection.Builder<BuildTarget> targetGraphOnlyDepsBuilder)
- Specified by:
findDepsForTargetFromConstructorArgs
in interfaceImplicitDepsInferringDescription<com.facebook.buck.jvm.groovy.GroovyLibraryDescription.AbstractGroovyLibraryDescriptionArg>
-
-