Package com.facebook.buck.core.cell
Interface Cell
-
public interface Cell
Represents a single checkout of a code base. Two cells model the same code base if their underlyingProjectFilesystem
s are equal.Should only be constructed by
CellProvider
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.common.collect.ImmutableList<Cell>
getAllCells()
Returns a list of all cells, including this cell.BuckConfig
getBuckConfig()
<T extends ConfigView<BuckConfig>>
TgetBuckConfigView(Class<T> cls)
CanonicalCellName
getCanonicalName()
Cell
getCell(CanonicalCellName cellName)
Cell
getCell(Path cellPath)
Cell
getCellIgnoringVisibilityCheck(Path cellPath)
CellNameResolver
getCellNameResolver()
Return theCellNameResolver
for this cell.CellPathResolver
getCellPathResolver()
CellProvider
getCellProvider()
ProjectFilesystem
getFilesystem()
ProjectFilesystemView
getFilesystemViewForSourceFiles()
com.google.common.collect.ImmutableSortedSet<AbsPath>
getKnownRootsOfAllCells()
com.google.common.collect.ImmutableMap<AbsPath,Cell>
getLoadedCells()
NewCellPathResolver
getNewCellPathResolver()
Return theNewCellPathResolver
.AbsPath
getRoot()
ToolchainProvider
getToolchainProvider()
-
-
-
Method Detail
-
getKnownRootsOfAllCells
com.google.common.collect.ImmutableSortedSet<AbsPath> getKnownRootsOfAllCells()
-
getCanonicalName
CanonicalCellName getCanonicalName()
-
getFilesystem
ProjectFilesystem getFilesystem()
-
getFilesystemViewForSourceFiles
ProjectFilesystemView getFilesystemViewForSourceFiles()
- Returns:
ProjectFilesystemView
that filters out ignores specified for this cell, like blacklisted paths and buck-out, to iterate over files which are potential direct sources, build files, etc.
-
getBuckConfig
BuckConfig getBuckConfig()
-
getBuckConfigView
<T extends ConfigView<BuckConfig>> T getBuckConfigView(Class<T> cls)
-
getCellProvider
CellProvider getCellProvider()
-
getToolchainProvider
ToolchainProvider getToolchainProvider()
-
getRoot
AbsPath getRoot()
-
getCell
Cell getCell(CanonicalCellName cellName)
-
getAllCells
com.google.common.collect.ImmutableList<Cell> getAllCells()
Returns a list of all cells, including this cell. If this cell is the root, getAllCells will necessarily return all possible cells that this build may interact with, since the root cell is required to declare a mapping for all cell names.
-
getCellPathResolver
CellPathResolver getCellPathResolver()
-
getNewCellPathResolver
NewCellPathResolver getNewCellPathResolver()
Return theNewCellPathResolver
. This can be used to map between canonical names and cell root paths.
-
getCellNameResolver
CellNameResolver getCellNameResolver()
Return theCellNameResolver
for this cell. This can be used to resolve user-provided cell aliases to their canonical names.
-
-