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 Details

    • TreeDependencyVisitor

      public TreeDependencyVisitor(org.eclipse.aether.graph.DependencyVisitor visitor)
      Creates a new visitor that delegates to the specified visitor.
      Parameters:
      visitor - The visitor to delegate to, must not be null.
  • 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