|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.aether.util.graph.PathRecordingDependencyVisitor
public class PathRecordingDependencyVisitor
A dependency visitor that records all paths leading to nodes matching a certain filter criteria.
| Constructor Summary | |
|---|---|
PathRecordingDependencyVisitor(DependencyFilter filter)
Creates a new visitor that uses the specified filter to identify terminal nodes of interesting paths. |
|
PathRecordingDependencyVisitor(DependencyFilter filter,
boolean excludeChildrenOfMatches)
Creates a new visitor that uses the specified filter to identify terminal nodes of interesting paths. |
|
| Method Summary | |
|---|---|
DependencyFilter |
getFilter()
Gets the filter being used to select terminal nodes. |
List<List<DependencyNode>> |
getPaths()
Gets the paths leading to nodes matching the filter that have been recorded during the graph visit. |
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 PathRecordingDependencyVisitor(DependencyFilter filter)
filter - The filter used to select terminal nodes of paths to record, may be null to match any node.
public PathRecordingDependencyVisitor(DependencyFilter filter,
boolean excludeChildrenOfMatches)
filter - The filter used to select terminal nodes of paths to record, may be null to match any node.excludeChildrenOfMatches - Flag controlling whether children of matched nodes should be excluded from the
traversal, thereby ignoring any potential paths to other matching nodes beneath a matching ancestor
node. If true, all recorded paths will have only one matching node (namely the terminal node),
if false a recorded path can consist of multiple matching nodes.| Method Detail |
|---|
public DependencyFilter getFilter()
null if none.public List<List<DependencyNode>> getPaths()
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 | |||||||||