|
||||||||||
| 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 for usage as a child of the given parent node. |
DependencyNode |
getRootNode()
Gets the root node of the cloned dependency graph. |
boolean |
visitEnter(DependencyNode node)
Notifies the visitor of a node visit before its children have been processed. |
boolean |
visitLeave(DependencyNode node)
Notifies the visitor of a node visit after its children have been processed. |
| 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)
DependencyVisitor
visitEnter in interface DependencyVisitornode - The dependency node being visited, must not be null.
true to visit child nodes of the specified node as well, false to skip children.public boolean visitLeave(DependencyNode node)
DependencyVisitor
visitLeave in interface DependencyVisitornode - The dependency node being visited, must not be null.
true to visit siblings nodes of the specified node as well, false to skip siblings.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||