public class UnconfiguredTargetNodeToTargetNodeParsePipeline extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected com.google.common.util.concurrent.ListeningExecutorService |
executorService |
Constructor and Description |
---|
UnconfiguredTargetNodeToTargetNodeParsePipeline(com.facebook.buck.parser.PipelineNodeCache.Cache<BuildTarget,TargetNodeMaybeIncompatible> cache,
com.google.common.util.concurrent.ListeningExecutorService executorService,
UnconfiguredTargetNodePipeline unconfiguredTargetNodePipeline,
TargetConfigurationDetector targetConfigurationDetector,
BuckEventBus eventBus,
String pipelineName,
boolean speculativeDepsTraversal,
ParserTargetNodeFromUnconfiguredTargetNodeFactory rawTargetNodeToTargetNodeFactory,
boolean requireTargetPlatform)
Create new pipeline for parsing Buck files.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
TargetNodeMaybeIncompatible |
getNode(Cell cell,
BuildTarget buildTarget,
DependencyStack dependencyStack)
Obtain a
TargetNode . |
com.google.common.util.concurrent.ListenableFuture<TargetNodeMaybeIncompatible> |
getNodeJob(Cell cell,
BuildTarget buildTarget,
DependencyStack dependencyStack)
Get build target by name, load if necessary
|
protected final com.google.common.util.concurrent.ListeningExecutorService executorService
public UnconfiguredTargetNodeToTargetNodeParsePipeline(com.facebook.buck.parser.PipelineNodeCache.Cache<BuildTarget,TargetNodeMaybeIncompatible> cache, com.google.common.util.concurrent.ListeningExecutorService executorService, UnconfiguredTargetNodePipeline unconfiguredTargetNodePipeline, TargetConfigurationDetector targetConfigurationDetector, BuckEventBus eventBus, String pipelineName, boolean speculativeDepsTraversal, ParserTargetNodeFromUnconfiguredTargetNodeFactory rawTargetNodeToTargetNodeFactory, boolean requireTargetPlatform)
public com.google.common.util.concurrent.ListenableFuture<TargetNodeMaybeIncompatible> getNodeJob(Cell cell, BuildTarget buildTarget, DependencyStack dependencyStack) throws BuildTargetException
BuildTargetException
public TargetNodeMaybeIncompatible getNode(Cell cell, BuildTarget buildTarget, DependencyStack dependencyStack) 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 malformedpublic void close()
close
in interface AutoCloseable