public abstract class DefaultCellNameResolver extends Object implements CellNameResolver
CellNameResolver based on the known cells mapping.| Constructor and Description |
|---|
DefaultCellNameResolver() |
| Modifier and Type | Method and Description |
|---|---|
abstract com.google.common.collect.ImmutableMap<Optional<String>,CanonicalCellName> |
getKnownCells()
Gets the mapping for all the available local names.
|
CanonicalCellName |
getName(Optional<String> localName)
Resolves the local name to the
CanonicalCellName. |
Optional<CanonicalCellName> |
getNameIfResolvable(Optional<String> localName)
Returns the
CanonicalCellName for this local name if it can be resolved. |
static com.facebook.buck.core.cell.nameresolver.ImmutableDefaultCellNameResolver |
of(Map<? extends Optional<String>,? extends CanonicalCellName> knownCells) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentCellNamepublic abstract com.google.common.collect.ImmutableMap<Optional<String>,CanonicalCellName> getKnownCells()
CellNameResolvergetKnownCells in interface CellNameResolverpublic Optional<CanonicalCellName> getNameIfResolvable(Optional<String> localName)
CellNameResolverCanonicalCellName for this local name if it can be resolved.getNameIfResolvable in interface CellNameResolverpublic CanonicalCellName getName(Optional<String> localName)
CellNameResolverCanonicalCellName.getName in interface CellNameResolverpublic static com.facebook.buck.core.cell.nameresolver.ImmutableDefaultCellNameResolver of(Map<? extends Optional<String>,? extends CanonicalCellName> knownCells)