T - The type of node this pipeline will produce (raw nodes, target nodes, etc)public interface FileParsePipeline<T extends FileManifest> extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
default T |
getFile(Cell cell,
AbsPath buildFile)
Obtain all
TargetNodes from a build file. |
com.google.common.util.concurrent.ListenableFuture<T> |
getFileJob(Cell cell,
AbsPath buildFile)
Asynchronously obtain all
TargetNodes from a build file. |
closedefault T getFile(Cell cell, AbsPath buildFile) throws BuildFileParseException
TargetNodes from a build file. This may block if the file is not cached.cell - the Cell that the build file belongs to.buildFile - absolute path to the file to process.BuildFileParseException - for syntax errors.com.google.common.util.concurrent.ListenableFuture<T> getFileJob(Cell cell, AbsPath buildFile) throws BuildTargetException
TargetNodes from a build file. This will leverage previously
cached raw contents of the file (if present) but will always loop over the contents, so
repeated calls (with the same args) are not free.
returned future may throw BuildFileParseException and HumanReadableException.
cell - the Cell that the build file belongs to.buildFile - absolute path to the file to process.BuildTargetException