public class ConfigSettingDescription extends Object implements ConfigurationRuleDescription<ConfigSettingArg,ConfigSettingRule>
config_setting
.
This rule should be used to create conditions for select
statements.
The values
parameter is used to list configuration keys (configuration options from
.buckconfig
in the form section.option
) with expected values.
For example:
config_setting( name = "a", values = { "section.option": "expected_value", } )
Constructor and Description |
---|
ConfigSettingDescription() |
Modifier and Type | Method and Description |
---|---|
ConfigSettingRule |
createConfigurationRule(ConfigurationRuleResolver configurationRuleResolver,
BuildTarget buildTarget,
DependencyStack dependencyStack,
ConfigSettingArg arg)
Creates a
ConfigurationRule |
com.google.common.collect.ImmutableSet<BuildTarget> |
getConfigurationDeps(ConfigSettingArg arg) |
Class<ConfigSettingArg> |
getConstructorArgType()
The type of the constructor argument that is used by this description to create a rule
|
Class<ConfigSettingRule> |
getRuleClass()
Reified type parameter
|
public Class<ConfigSettingArg> getConstructorArgType()
BaseDescription
getConstructorArgType
in interface BaseDescription<ConfigSettingArg>
public Class<ConfigSettingRule> getRuleClass()
ConfigurationRuleDescription
getRuleClass
in interface ConfigurationRuleDescription<ConfigSettingArg,ConfigSettingRule>
public ConfigSettingRule createConfigurationRule(ConfigurationRuleResolver configurationRuleResolver, BuildTarget buildTarget, DependencyStack dependencyStack, ConfigSettingArg arg)
ConfigurationRuleDescription
ConfigurationRule
createConfigurationRule
in interface ConfigurationRuleDescription<ConfigSettingArg,ConfigSettingRule>
public com.google.common.collect.ImmutableSet<BuildTarget> getConfigurationDeps(ConfigSettingArg arg)
getConfigurationDeps
in interface BaseDescription<ConfigSettingArg>