public abstract class AliasConfig extends Object implements ConfigView<BuckConfig>
Constructor and Description |
---|
AliasConfig() |
Modifier and Type | Method and Description |
---|---|
static AliasConfig |
from(BuckConfig config) |
com.google.common.collect.ImmutableSetMultimap<String,UnconfiguredBuildTarget> |
getAliases() |
com.google.common.collect.ImmutableSet<String> |
getBuildTargetForAliasAsString(String possiblyFlavoredAlias) |
com.google.common.collect.ImmutableSet<UnconfiguredBuildTarget> |
getBuildTargetsForAlias(String unflavoredAlias) |
com.google.common.collect.ImmutableMap<String,String> |
getEntries() |
static AliasConfig |
of(BuckConfig delegate) |
com.google.common.collect.ImmutableList<String> |
resolveAliases(Iterable<String> input)
Accept a list of strings and for those of them which are configured aliases, convert them to
appropriate aliased values.
|
static void |
validateAliasName(String aliasName) |
static void |
validateLabelName(String aliasName) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDelegate
public static AliasConfig from(BuckConfig config)
public static AliasConfig of(BuckConfig delegate)
public com.google.common.collect.ImmutableList<String> resolveAliases(Iterable<String> input)
@Value.Lazy public com.google.common.collect.ImmutableSetMultimap<String,UnconfiguredBuildTarget> getAliases()
public com.google.common.collect.ImmutableSet<String> getBuildTargetForAliasAsString(String possiblyFlavoredAlias)
public com.google.common.collect.ImmutableSet<UnconfiguredBuildTarget> getBuildTargetsForAlias(String unflavoredAlias)
public static void validateAliasName(String aliasName) throws HumanReadableException
HumanReadableException
public static void validateLabelName(String aliasName) throws HumanReadableException
HumanReadableException