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, wait
getCurrentCellName
public abstract com.google.common.collect.ImmutableMap<Optional<String>,CanonicalCellName> getKnownCells()
CellNameResolver
getKnownCells
in interface CellNameResolver
public Optional<CanonicalCellName> getNameIfResolvable(Optional<String> localName)
CellNameResolver
CanonicalCellName
for this local name if it can be resolved.getNameIfResolvable
in interface CellNameResolver
public CanonicalCellName getName(Optional<String> localName)
CellNameResolver
CanonicalCellName
.getName
in interface CellNameResolver
public static com.facebook.buck.core.cell.nameresolver.ImmutableDefaultCellNameResolver of(Map<? extends Optional<String>,? extends CanonicalCellName> knownCells)