Interface DependencyNode


public interface DependencyNode
Represents a dependency node within a Maven project's dependency collector.
Since:
0.12
Author:
Pim Moerenhout
  • Method Details

    • getChildren

      List<DependencyNode> getChildren()
      Gets the child nodes of this node.
      Returns:
      the child nodes of this node, never null
    • getArtifact

      org.apache.maven.artifact.Artifact getArtifact()
      Returns:
      artifact for this DependencyCollectorNode
    • getRemoteRepositories

      List<org.apache.maven.artifact.repository.ArtifactRepository> getRemoteRepositories()
      Returns:
      repositories of this DependencyCollectorNode
    • getOptional

      Boolean getOptional()
      Returns:
      true for an optional dependency.
    • getScope

      String getScope()
      Returns:
      The scope on the dependency.
    • accept

      boolean accept(DependencyVisitor visitor)
      Traverses this node and potentially its children using the specified visitor.
      Parameters:
      visitor - The visitor to call back, must not be null.
      Returns:
      true to visit siblings nodes of this node as well, false to skip siblings.