T - The type of node this pipeline will produce (raw nodes, target nodes, etc)public interface BuildTargetParsePipeline<T> extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
default T |
getNode(Cell cell,
UnconfiguredBuildTarget buildTarget)
Obtain a
TargetNode. |
com.google.common.util.concurrent.ListenableFuture<T> |
getNodeJob(Cell cell,
UnconfiguredBuildTarget buildTarget)
Asynchronously get the
TargetNode. |
closedefault T getNode(Cell cell, UnconfiguredBuildTarget buildTarget) throws BuildFileParseException, BuildTargetException
TargetNode. This may block if the node is not cached.cell - the Cell that the BuildTarget belongs to.buildTarget - name of the node we're looking for. The build file path is derived from it.BuildFileParseException - for syntax errors in the build file.BuildTargetException - if the buildTarget is malformedcom.google.common.util.concurrent.ListenableFuture<T> getNodeJob(Cell cell, UnconfiguredBuildTarget buildTarget) throws BuildTargetException
TargetNode. This leverages the cache.cell - the Cell that the build file belongs to.buildTarget - name of the node we're looking for. The build file path is derived from it.BuildTargetException - when the buildTarget is malformed.