Interface DependencyNode

    • Method Detail

      • getChildren

        java.util.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

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

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

        java.lang.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.