public abstract class AbstractVersionedTargetGraphBuilder extends Object implements VersionedTargetGraphBuilder
Modifier and Type | Field and Description |
---|---|
protected long |
timeout |
protected TimeUnit |
timeUnit |
protected TypeCoercerFactory |
typeCoercerFactory |
protected TargetGraphCreationResult |
unversionedTargetGraphCreationResult |
Modifier | Constructor and Description |
---|---|
protected |
AbstractVersionedTargetGraphBuilder(TypeCoercerFactory typeCoercerFactory,
UnconfiguredBuildTargetViewFactory unconfiguredBuildTargetFactory,
TargetGraphCreationResult unversionedTargetGraphCreationResult,
long timeout,
TimeUnit timeUnit,
Cells cells) |
Modifier and Type | Method and Description |
---|---|
protected TargetNode<?> |
getNode(BuildTarget target) |
protected Optional<TargetNode<?>> |
getNodeOptional(BuildTarget target) |
protected TargetNodeTranslator |
getTargetNodeTranslator(TargetNode<?> root,
com.google.common.collect.ImmutableMap<BuildTarget,Version> selectedVersions) |
protected Optional<BuildTarget> |
getTranslateBuildTarget(TargetNode<?> node,
com.google.common.collect.ImmutableMap<BuildTarget,Version> selectedVersions) |
protected abstract com.facebook.buck.versions.VersionInfo |
getVersionInfo(TargetNode<?> node)
Get/cache the transitive version info for this node.
|
protected TargetNode<?> |
resolveVersions(TargetNode<?> node,
com.google.common.collect.ImmutableMap<BuildTarget,Version> selectedVersions) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build
protected final TypeCoercerFactory typeCoercerFactory
protected final TargetGraphCreationResult unversionedTargetGraphCreationResult
protected final long timeout
protected final TimeUnit timeUnit
protected AbstractVersionedTargetGraphBuilder(TypeCoercerFactory typeCoercerFactory, UnconfiguredBuildTargetViewFactory unconfiguredBuildTargetFactory, TargetGraphCreationResult unversionedTargetGraphCreationResult, long timeout, TimeUnit timeUnit, Cells cells)
protected TargetNode<?> getNode(BuildTarget target)
protected Optional<TargetNode<?>> getNodeOptional(BuildTarget target)
protected final TargetNode<?> resolveVersions(TargetNode<?> node, com.google.common.collect.ImmutableMap<BuildTarget,Version> selectedVersions)
protected abstract com.facebook.buck.versions.VersionInfo getVersionInfo(TargetNode<?> node)
protected final Optional<BuildTarget> getTranslateBuildTarget(TargetNode<?> node, com.google.common.collect.ImmutableMap<BuildTarget,Version> selectedVersions)
BuildTarget
to use in the resolved target graph, formed by adding a flavor
generated from the given version selections.protected TargetNodeTranslator getTargetNodeTranslator(TargetNode<?> root, com.google.common.collect.ImmutableMap<BuildTarget,Version> selectedVersions)