public class KotlinLibraryDescription extends Object implements DescriptionWithTargetGraph<KotlinLibraryDescriptionArg>, ImplicitDepsInferringDescription<KotlinLibraryDescriptionArg>, Flavored
| Modifier and Type | Class and Description |
|---|---|
static class |
KotlinLibraryDescription.AnnotationProcessingTool |
static interface |
KotlinLibraryDescription.CoreArg |
| Modifier and Type | Field and Description |
|---|---|
static com.google.common.collect.ImmutableSet<Flavor> |
SUPPORTED_FLAVORS |
| Constructor and Description |
|---|
KotlinLibraryDescription(ToolchainProvider toolchainProvider,
KotlinBuckConfig kotlinBuckConfig,
JavaBuckConfig javaBuckConfig) |
| Modifier and Type | Method and Description |
|---|---|
BuildRule |
createBuildRule(BuildRuleCreationContextWithTargetGraph context,
BuildTarget buildTarget,
BuildRuleParams params,
KotlinLibraryDescriptionArg args)
Create a
BuildRule for the given BuildRuleParams. |
void |
findDepsForTargetFromConstructorArgs(BuildTarget buildTarget,
CellNameResolver cellRoots,
KotlinLibraryDescriptionArg constructorArg,
com.google.common.collect.ImmutableCollection.Builder<BuildTarget> extraDepsBuilder,
com.google.common.collect.ImmutableCollection.Builder<BuildTarget> targetGraphOnlyDepsBuilder) |
Class<KotlinLibraryDescriptionArg> |
getConstructorArgType()
The type of the constructor argument that is used by this description to create a rule
|
boolean |
hasFlavors(com.google.common.collect.ImmutableSet<Flavor> flavors,
TargetConfiguration toolchainTargetConfiguration) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitproducesCacheableSubgraphgetConfigurationDepsflavorDomainspublic static final com.google.common.collect.ImmutableSet<Flavor> SUPPORTED_FLAVORS
public KotlinLibraryDescription(ToolchainProvider toolchainProvider, KotlinBuckConfig kotlinBuckConfig, JavaBuckConfig javaBuckConfig)
public boolean hasFlavors(com.google.common.collect.ImmutableSet<Flavor> flavors, TargetConfiguration toolchainTargetConfiguration)
hasFlavors in interface Flavoredflavors - The set of Flavors to consider. All must match.BuildRule of the given Flavor
can be created.public Class<KotlinLibraryDescriptionArg> getConstructorArgType()
BaseDescriptiongetConstructorArgType in interface BaseDescription<KotlinLibraryDescriptionArg>public BuildRule createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, KotlinLibraryDescriptionArg args)
DescriptionWithTargetGraphBuildRule for the given BuildRuleParams. Note that the BuildTarget referred to in the params contains the Flavor to create.createBuildRule in interface DescriptionWithTargetGraph<KotlinLibraryDescriptionArg>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, KotlinLibraryDescriptionArg constructorArg, com.google.common.collect.ImmutableCollection.Builder<BuildTarget> extraDepsBuilder, com.google.common.collect.ImmutableCollection.Builder<BuildTarget> targetGraphOnlyDepsBuilder)
findDepsForTargetFromConstructorArgs in interface ImplicitDepsInferringDescription<KotlinLibraryDescriptionArg>