Class AbstractDependencyGraphBuilder<T extends DependencyGraph.DependencyNode>
java.lang.Object
org.openrewrite.java.dependencies.graph.AbstractDependencyGraphBuilder<T>
- Type Parameters:
T- The type of dependency node this builder creates
- All Implemented Interfaces:
DependencyGraphBuilder<T>
- Direct Known Subclasses:
GradleDependencyGraphBuilder,MavenDependencyGraphBuilder
public abstract class AbstractDependencyGraphBuilder<T extends DependencyGraph.DependencyNode>
extends Object
implements DependencyGraphBuilder<T>
Abstract base class for dependency graph builders that provides the common implementation
for collecting dependency paths.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcollectDependencyPaths(List<org.openrewrite.maven.tree.ResolvedDependency> dependencies, Map<org.openrewrite.maven.tree.ResolvedGroupArtifactVersion, List<DependencyGraph.DependencyPath>> paths, String scope) Collects dependency paths for the given dependencies.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openrewrite.java.dependencies.graph.DependencyGraphBuilder
createNode
-
Constructor Details
-
AbstractDependencyGraphBuilder
public AbstractDependencyGraphBuilder()
-
-
Method Details
-
collectDependencyPaths
public void collectDependencyPaths(List<org.openrewrite.maven.tree.ResolvedDependency> dependencies, Map<org.openrewrite.maven.tree.ResolvedGroupArtifactVersion, List<DependencyGraph.DependencyPath>> paths, String scope) Description copied from interface:DependencyGraphBuilderCollects dependency paths for the given dependencies.- Specified by:
collectDependencyPathsin interfaceDependencyGraphBuilder<T extends DependencyGraph.DependencyNode>- Parameters:
dependencies- The list of resolved dependencies to processpaths- The map to store the collected pathsscope- The scope or configuration name
-