Class BuildingDependencyNodeVisitor
java.lang.Object
org.apache.maven.plugins.dependency.tree.BuildingDependencyNodeVisitor
- All Implemented Interfaces:
org.apache.maven.shared.dependency.graph.traversal.DependencyNodeVisitor
public class BuildingDependencyNodeVisitor
extends Object
implements org.apache.maven.shared.dependency.graph.traversal.DependencyNodeVisitor
A dependency node visitor that clones visited nodes into a new dependency tree. This can be used in conjunction with
a dependency node filter to construct subtrees.
- Author:
- Mark Hobson
-
Constructor Summary
ConstructorDescriptionCreates a dependency node visitor that clones visited nodes into a new dependency tree.BuildingDependencyNodeVisitor
(org.apache.maven.shared.dependency.graph.traversal.DependencyNodeVisitor visitor) Creates a dependency node visitor that clones visited nodes into a new dependency tree, and then applies the specified dependency node visitor on the resultant dependency tree. -
Method Summary
Modifier and TypeMethodDescriptionboolean
endVisit
(org.apache.maven.shared.dependency.graph.DependencyNode node) org.apache.maven.shared.dependency.graph.traversal.DependencyNodeVisitor
Gets the dependency node visitor that this visitor applies on the resultant dependency tree.org.apache.maven.shared.dependency.graph.DependencyNode
Gets the root node of the resultant dependency tree constructed by this visitor.boolean
visit
(org.apache.maven.shared.dependency.graph.DependencyNode node)
-
Constructor Details
-
BuildingDependencyNodeVisitor
public BuildingDependencyNodeVisitor()Creates a dependency node visitor that clones visited nodes into a new dependency tree.
-
-
Method Details
-
getDependencyNodeVisitor
public org.apache.maven.shared.dependency.graph.traversal.DependencyNodeVisitor getDependencyNodeVisitor()Gets the dependency node visitor that this visitor applies on the resultant dependency tree.- Returns:
- the dependency node visitor, or
null
for none
-
getDependencyTree
public org.apache.maven.shared.dependency.graph.DependencyNode getDependencyTree()Gets the root node of the resultant dependency tree constructed by this visitor.- Returns:
- the root node, or
null
if the source tree has not yet been visited