org.eclipse.aether.graph.DependencyVisitorpublic final class PathRecordingDependencyVisitor extends java.lang.Object implements org.eclipse.aether.graph.DependencyVisitor
| Constructor | Description |
|---|---|
PathRecordingDependencyVisitor(org.eclipse.aether.graph.DependencyFilter filter) |
Creates a new visitor that uses the specified filter to identify terminal nodes of interesting paths.
|
PathRecordingDependencyVisitor(org.eclipse.aether.graph.DependencyFilter filter,
boolean excludeChildrenOfMatches) |
Creates a new visitor that uses the specified filter to identify terminal nodes of interesting paths.
|
| Modifier and Type | Method | Description |
|---|---|---|
org.eclipse.aether.graph.DependencyFilter |
getFilter() |
Gets the filter being used to select terminal nodes.
|
java.util.List<java.util.List<org.eclipse.aether.graph.DependencyNode>> |
getPaths() |
Gets the paths leading to nodes matching the filter that have been recorded during the graph visit.
|
boolean |
visitEnter(org.eclipse.aether.graph.DependencyNode node) |
|
boolean |
visitLeave(org.eclipse.aether.graph.DependencyNode node) |
public PathRecordingDependencyVisitor(org.eclipse.aether.graph.DependencyFilter filter)
filter - The filter used to select terminal nodes of paths to record, may be null to match any node.public PathRecordingDependencyVisitor(org.eclipse.aether.graph.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.public org.eclipse.aether.graph.DependencyFilter getFilter()
null if none.public java.util.List<java.util.List<org.eclipse.aether.graph.DependencyNode>> getPaths()
null.public boolean visitEnter(org.eclipse.aether.graph.DependencyNode node)
visitEnter in interface org.eclipse.aether.graph.DependencyVisitorpublic boolean visitLeave(org.eclipse.aether.graph.DependencyNode node)
visitLeave in interface org.eclipse.aether.graph.DependencyVisitor