public abstract class DefaultNewCellPathResolver extends Object implements NewCellPathResolver
NewCellPathResolver based on the path to name map (this is assumed to
be 1-1).| Constructor and Description |
|---|
DefaultNewCellPathResolver() |
| Modifier and Type | Method and Description |
|---|---|
CanonicalCellName |
getCanonicalCellName(Path path) |
Path |
getCellPath(CanonicalCellName cellName)
Note: unlike
CellPathResolver.getCellPath(Optional) this function always returns a
value. |
static com.facebook.buck.core.cell.ImmutableDefaultNewCellPathResolver |
of(Map<? extends AbsPath,? extends CanonicalCellName> pathToNameMap) |
public Path getCellPath(CanonicalCellName cellName)
NewCellPathResolverCellPathResolver.getCellPath(Optional) this function always returns a
value. Existence/visibility of the cell is enforced when the CanonicalCellName is
resolved.getCellPath in interface NewCellPathResolvercellName - Canonical name of the cell.public CanonicalCellName getCanonicalCellName(Path path)
getCanonicalCellName in interface NewCellPathResolverpath - Absolute path to the physical root of the cell.public static com.facebook.buck.core.cell.ImmutableDefaultNewCellPathResolver of(Map<? extends AbsPath,? extends CanonicalCellName> pathToNameMap)