org.sonatype.aether.util.graph
Class TreeDependencyVisitor
java.lang.Object
org.sonatype.aether.util.graph.TreeDependencyVisitor
- All Implemented Interfaces:
- DependencyVisitor
public class TreeDependencyVisitor
- extends Object
- implements 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.
- Author:
- Benjamin Bentmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeDependencyVisitor
public TreeDependencyVisitor(DependencyVisitor visitor)
- Creates a new visitor that delegates to the specified visitor.
- Parameters:
visitor - The visitor to delegate to, must not be null.
visitEnter
public boolean visitEnter(DependencyNode node)
- Specified by:
visitEnter in interface DependencyVisitor
visitLeave
public boolean visitLeave(DependencyNode node)
- Specified by:
visitLeave in interface DependencyVisitor
Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.