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 Details

  • 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 interface ParentNodeProvider
      Parameters:
      node - node to get the information for
      Returns:
      parent node or null is no information is known
    • visitEnter

      public boolean visitEnter(org.eclipse.aether.graph.DependencyNode node)
      Specified by:
      visitEnter in interface org.eclipse.aether.graph.DependencyVisitor
    • visitLeave

      public boolean visitLeave(org.eclipse.aether.graph.DependencyNode node)
      Specified by:
      visitLeave in interface org.eclipse.aether.graph.DependencyVisitor