public class PlatformDescription extends Object implements ConfigurationRuleDescription<PlatformArg,com.facebook.buck.core.rules.platform.PlatformDescription.PlatformRule>
platform.
A platform is a set of constraints.
For example:
platform(
name = "platform",
constraint_values = [
":constraint1",
":constraint2",
]
)
| Constructor and Description |
|---|
PlatformDescription() |
| Modifier and Type | Method and Description |
|---|---|
com.facebook.buck.core.rules.platform.PlatformDescription.PlatformRule |
createConfigurationRule(ConfigurationRuleResolver configurationRuleResolver,
BuildTarget buildTarget,
DependencyStack dependencyStack,
PlatformArg arg)
Creates a
ConfigurationRule |
com.google.common.collect.ImmutableSet<BuildTarget> |
getConfigurationDeps(PlatformArg arg) |
Class<PlatformArg> |
getConstructorArgType()
The type of the constructor argument that is used by this description to create a rule
|
Class<com.facebook.buck.core.rules.platform.PlatformDescription.PlatformRule> |
getRuleClass()
Reified type parameter
|
public Class<PlatformArg> getConstructorArgType()
BaseDescriptiongetConstructorArgType in interface BaseDescription<PlatformArg>public Class<com.facebook.buck.core.rules.platform.PlatformDescription.PlatformRule> getRuleClass()
ConfigurationRuleDescriptiongetRuleClass in interface ConfigurationRuleDescription<PlatformArg,com.facebook.buck.core.rules.platform.PlatformDescription.PlatformRule>public com.facebook.buck.core.rules.platform.PlatformDescription.PlatformRule createConfigurationRule(ConfigurationRuleResolver configurationRuleResolver, BuildTarget buildTarget, DependencyStack dependencyStack, PlatformArg arg)
ConfigurationRuleDescriptionConfigurationRulecreateConfigurationRule in interface ConfigurationRuleDescription<PlatformArg,com.facebook.buck.core.rules.platform.PlatformDescription.PlatformRule>public com.google.common.collect.ImmutableSet<BuildTarget> getConfigurationDeps(PlatformArg arg)
getConfigurationDeps in interface BaseDescription<PlatformArg>