Class DependencyGraphDumper
java.lang.Object
org.eclipse.aether.util.graph.visitor.DependencyGraphDumper
- All Implemented Interfaces:
org.eclipse.aether.graph.DependencyVisitor
public class DependencyGraphDumper
extends Object
implements org.eclipse.aether.graph.DependencyVisitor
A dependency visitor that dumps the graph to any
Consumer
<String>
. Meant for diagnostic and testing, as
it may output the graph to standard output, error or even some logging interface.- Since:
- 1.9.8
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
formatIndentation
(Deque<org.eclipse.aether.graph.DependencyNode> nodes) protected String
formatLine
(Deque<org.eclipse.aether.graph.DependencyNode> nodes) protected String
formatNode
(Deque<org.eclipse.aether.graph.DependencyNode> nodes) boolean
visitEnter
(org.eclipse.aether.graph.DependencyNode node) boolean
visitLeave
(org.eclipse.aether.graph.DependencyNode node)
-
Constructor Details
-
DependencyGraphDumper
-
-
Method Details
-
visitEnter
- Specified by:
visitEnter
in interfaceorg.eclipse.aether.graph.DependencyVisitor
-
visitLeave
- Specified by:
visitLeave
in interfaceorg.eclipse.aether.graph.DependencyVisitor
-
formatLine
-
formatIndentation
-
formatNode
-