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)
NewCellPathResolver
CellPathResolver.getCellPath(Optional)
this function always returns a
value. Existence/visibility of the cell is enforced when the CanonicalCellName
is
resolved.getCellPath
in interface NewCellPathResolver
cellName
- Canonical name of the cell.public CanonicalCellName getCanonicalCellName(Path path)
getCanonicalCellName
in interface NewCellPathResolver
path
- Absolute path to the physical root of the cell.public static com.facebook.buck.core.cell.ImmutableDefaultNewCellPathResolver of(Map<? extends AbsPath,? extends CanonicalCellName> pathToNameMap)