public abstract class KnownNativeRuleTypes extends Object implements KnownRuleTypes
Constructor and Description |
---|
KnownNativeRuleTypes() |
Modifier and Type | Method and Description |
---|---|
protected void |
check() |
com.google.common.collect.ImmutableList<BaseDescription<?>> |
getDescriptions() |
protected com.google.common.collect.ImmutableMap<RuleType,BaseDescription<?>> |
getDescriptionsByRule() |
RuleDescriptor<?> |
getDescriptorByName(String name)
Get rule type, constructor arg and description object for by rule name.
|
abstract com.google.common.collect.ImmutableList<Description<?>> |
getKnownBuildDescriptions() |
abstract com.google.common.collect.ImmutableList<ConfigurationRuleDescription<?,?>> |
getKnownConfigurationDescriptions() |
com.google.common.collect.ImmutableMap<String,RuleType> |
getNativeTypesByName() |
abstract com.google.common.collect.ImmutableList<BuiltInProvider<?>> |
getPerFeatureProviders() |
static KnownNativeRuleTypes |
of(com.google.common.collect.ImmutableList<Description<?>> knownBuildDescriptions,
com.google.common.collect.ImmutableList<ConfigurationRuleDescription<?,?>> knownConfigurationDescriptions,
com.google.common.collect.ImmutableList<BuiltInProvider<?>> perFeatureProviders) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescriptorByNameChecked
public abstract com.google.common.collect.ImmutableList<Description<?>> getKnownBuildDescriptions()
public abstract com.google.common.collect.ImmutableList<ConfigurationRuleDescription<?,?>> getKnownConfigurationDescriptions()
public abstract com.google.common.collect.ImmutableList<BuiltInProvider<?>> getPerFeatureProviders()
@Value.Lazy public com.google.common.collect.ImmutableMap<String,RuleType> getNativeTypesByName()
@Value.Lazy public com.google.common.collect.ImmutableList<BaseDescription<?>> getDescriptions()
@Value.Lazy protected com.google.common.collect.ImmutableMap<RuleType,BaseDescription<?>> getDescriptionsByRule()
RuleType
.public RuleDescriptor<?> getDescriptorByName(String name)
KnownRuleTypes
getDescriptorByName
in interface KnownRuleTypes
@Value.Check protected void check()
public static KnownNativeRuleTypes of(com.google.common.collect.ImmutableList<Description<?>> knownBuildDescriptions, com.google.common.collect.ImmutableList<ConfigurationRuleDescription<?,?>> knownConfigurationDescriptions, com.google.common.collect.ImmutableList<BuiltInProvider<?>> perFeatureProviders)