Class TreeDependencyVisitor
java.lang.Object
org.eclipse.aether.util.graph.visitor.TreeDependencyVisitor
- All Implemented Interfaces:
org.eclipse.aether.graph.DependencyVisitor
public final class TreeDependencyVisitor
extends Object
implements org.eclipse.aether.graph.DependencyVisitor
A dependency visitor that delegates to another visitor if a node hasn't been visited before. In other words, this
visitor provides a tree-view of a dependency graph which generally can have multiple paths to the same node or even
cycles.
-
Constructor Summary
ConstructorDescriptionTreeDependencyVisitor
(org.eclipse.aether.graph.DependencyVisitor visitor) Creates a new visitor that delegates to the specified visitor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
visitEnter
(org.eclipse.aether.graph.DependencyNode node) boolean
visitLeave
(org.eclipse.aether.graph.DependencyNode node)
-
Constructor Details
-
TreeDependencyVisitor
Creates a new visitor that delegates to the specified visitor.- Parameters:
visitor
- The visitor to delegate to, must not benull
.
-
-
Method Details
-
visitEnter
- Specified by:
visitEnter
in interfaceorg.eclipse.aether.graph.DependencyVisitor
-
visitLeave
- Specified by:
visitLeave
in interfaceorg.eclipse.aether.graph.DependencyVisitor
-