Class NodeListGenerator

    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void accept​(org.eclipse.aether.graph.DependencyNode dependencyNode)  
      java.util.List<org.eclipse.aether.artifact.Artifact> getArtifacts​(boolean includeUnresolved)
      Gets the artifacts associated with the list of dependency nodes generated during the graph traversal.
      java.lang.String getClassPath()
      Gets a class path by concatenating the artifact files of the visited dependency nodes.
      java.util.List<org.eclipse.aether.graph.Dependency> getDependencies​(boolean includeUnresolved)
      Gets the dependencies seen during the graph traversal.
      java.util.List<java.io.File> getFiles()
      Deprecated.
      use getPaths() instead
      java.util.List<org.eclipse.aether.graph.DependencyNode> getNodes()
      Gets the list of dependency nodes that was generated during the graph traversal.
      java.util.List<org.eclipse.aether.graph.DependencyNode> getNodesWithDependencies()
      Gets the list of dependency nodes that was generated during the graph traversal and have non-null DependencyNode.getDependency().
      java.util.List<java.nio.file.Path> getPaths()
      Gets the files of resolved artifacts seen during the graph traversal.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Method Detail

      • accept

        public void accept​(org.eclipse.aether.graph.DependencyNode dependencyNode)
        Specified by:
        accept in interface java.util.function.Consumer<org.eclipse.aether.graph.DependencyNode>
      • getNodes

        public java.util.List<org.eclipse.aether.graph.DependencyNode> getNodes()
        Gets the list of dependency nodes that was generated during the graph traversal.
        Returns:
        the list of dependency nodes, never null
      • getNodesWithDependencies

        public java.util.List<org.eclipse.aether.graph.DependencyNode> getNodesWithDependencies()
        Gets the list of dependency nodes that was generated during the graph traversal and have non-null DependencyNode.getDependency().
        Returns:
        the list of dependency nodes having dependency, never null
      • getDependencies

        public java.util.List<org.eclipse.aether.graph.Dependency> getDependencies​(boolean includeUnresolved)
        Gets the dependencies seen during the graph traversal.
        Parameters:
        includeUnresolved - whether unresolved dependencies shall be included in the result or not
        Returns:
        the list of dependencies, never null
      • getArtifacts

        public java.util.List<org.eclipse.aether.artifact.Artifact> getArtifacts​(boolean includeUnresolved)
        Gets the artifacts associated with the list of dependency nodes generated during the graph traversal.
        Parameters:
        includeUnresolved - whether unresolved artifacts shall be included in the result or not
        Returns:
        the list of artifacts, never null
      • getFiles

        @Deprecated
        public java.util.List<java.io.File> getFiles()
        Deprecated.
        use getPaths() instead
        Gets the files of resolved artifacts seen during the graph traversal.
        Returns:
        the list of artifact files, never null
      • getPaths

        public java.util.List<java.nio.file.Path> getPaths()
        Gets the files of resolved artifacts seen during the graph traversal.
        Returns:
        the list of artifact files, never null
        Since:
        2.0.0
      • getClassPath

        public java.lang.String getClassPath()
        Gets a class path by concatenating the artifact files of the visited dependency nodes. Nodes with unresolved artifacts are automatically skipped.
        Returns:
        the class path, using the platform-specific path separator, never null