|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.aether.util.graph.CloningDependencyVisitor
public class CloningDependencyVisitor
A dependency visitor that constructs a clone of the visited dependency graph. If such a visitor is passed into a
FilteringDependencyVisitor, a sub graph can be created. This class creates shallow clones of the visited
dependency nodes but clients can create a subclass and override clone(DependencyNode) to alter the clone
process.
| Constructor Summary | |
|---|---|
CloningDependencyVisitor()
Creates a new visitor that clones the visited nodes. |
|
| Method Summary | |
|---|---|
protected DependencyNode |
clone(DependencyNode node)
Creates a clone of the specified node. |
DependencyNode |
getRootNode()
Gets the root node of the cloned dependency graph. |
boolean |
visitEnter(DependencyNode node)
|
boolean |
visitLeave(DependencyNode node)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CloningDependencyVisitor()
| Method Detail |
|---|
public DependencyNode getRootNode()
null.protected DependencyNode clone(DependencyNode node)
node - The node to clone, must not be null.
null.public boolean visitEnter(DependencyNode node)
visitEnter in interface DependencyVisitorpublic boolean visitLeave(DependencyNode node)
visitLeave in interface DependencyVisitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||