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
TargetNode s from a build file. |
com.google.common.util.concurrent.ListenableFuture<T> |
getFileJob(Cell cell,
AbsPath buildFile)
Asynchronously obtain all
TargetNode s from a build file. |
close
default T getFile(Cell cell, AbsPath buildFile) throws BuildFileParseException
TargetNode
s 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
TargetNode
s 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