Class ParentsVisitor
java.lang.Object
org.apache.maven.enforcer.rules.utils.ParentsVisitor
- All Implemented Interfaces:
ParentNodeProvider
,org.eclipse.aether.graph.DependencyVisitor
public class ParentsVisitor
extends Object
implements org.eclipse.aether.graph.DependencyVisitor, ParentNodeProvider
A
DependencyVisitor
building a map of parent nodes-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.aether.graph.DependencyNode
getParent
(org.eclipse.aether.graph.DependencyNode node) Returns the parent node of the given nodeboolean
visitEnter
(org.eclipse.aether.graph.DependencyNode node) boolean
visitLeave
(org.eclipse.aether.graph.DependencyNode node)
-
Constructor Details
-
ParentsVisitor
public ParentsVisitor()
-
-
Method Details
-
getParent
public org.eclipse.aether.graph.DependencyNode getParent(org.eclipse.aether.graph.DependencyNode node) Description copied from interface:ParentNodeProvider
Returns the parent node of the given node- Specified by:
getParent
in interfaceParentNodeProvider
- Parameters:
node
- node to get the information for- Returns:
- parent node or
null
is no information is known
-
visitEnter
- Specified by:
visitEnter
in interfaceorg.eclipse.aether.graph.DependencyVisitor
-
visitLeave
- Specified by:
visitLeave
in interfaceorg.eclipse.aether.graph.DependencyVisitor
-