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 Details

  • Method Details

    • visitEnter

      public boolean visitEnter(org.eclipse.aether.graph.DependencyNode node)
      Specified by:
      visitEnter in interface org.eclipse.aether.graph.DependencyVisitor
    • visitLeave

      public boolean visitLeave(org.eclipse.aether.graph.DependencyNode node)
      Specified by:
      visitLeave in interface org.eclipse.aether.graph.DependencyVisitor
    • formatLine

      protected String formatLine(Deque<org.eclipse.aether.graph.DependencyNode> nodes)
    • formatIndentation

      protected String formatIndentation(Deque<org.eclipse.aether.graph.DependencyNode> nodes)
    • formatNode

      protected String formatNode(Deque<org.eclipse.aether.graph.DependencyNode> nodes)