Class PostorderNodeListGenerator

  • All Implemented Interfaces:
    org.eclipse.aether.graph.DependencyVisitor

    @Deprecated
    public final class PostorderNodeListGenerator
    extends java.lang.Object
    Deprecated.
    see PostorderDependencyNodeConsumerVisitor that is more versatile
    Generates a sequence of dependency nodes from a dependency graph by traversing the graph in postorder. This visitor visits each node exactly once regardless how many paths within the dependency graph lead to the node such that the resulting node sequence is free of duplicates.

    The newer classes AbstractDependencyNodeConsumerVisitor and NodeListGenerator offer similar capabilities but are pluggable. Use of this class, while not deprecated, is discouraged. This class is not used in Resolver and is kept only for backward compatibility reasons.

    See Also:
    PostorderDependencyNodeConsumerVisitor, NodeListGenerator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<org.eclipse.aether.graph.DependencyNode> nodes
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      PostorderNodeListGenerator()
      Deprecated.
      Creates a new postorder list generator.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.util.List<org.eclipse.aether.artifact.Artifact> getArtifacts​(boolean includeUnresolved)
      Deprecated.
      Gets the artifacts associated with the list of dependency nodes generated during the graph traversal.
      java.lang.String getClassPath()
      Deprecated.
      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)
      Deprecated.
      Gets the dependencies seen during the graph traversal.
      java.util.List<java.io.File> getFiles()
      Deprecated.
      Gets the files of resolved artifacts seen during the graph traversal.
      java.util.List<org.eclipse.aether.graph.DependencyNode> getNodes()
      Deprecated.
      Gets the list of dependency nodes that was generated during the graph traversal.
      protected boolean setVisited​(org.eclipse.aether.graph.DependencyNode node)
      Deprecated.
      Marks the specified node as being visited and determines whether the node has been visited before.
      boolean visitEnter​(org.eclipse.aether.graph.DependencyNode node)
      Deprecated.
       
      boolean visitLeave​(org.eclipse.aether.graph.DependencyNode node)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • nodes

        protected final java.util.List<org.eclipse.aether.graph.DependencyNode> nodes
        Deprecated.
    • Method Detail

      • visitEnter

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

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

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

        public java.util.List<org.eclipse.aether.graph.Dependency> getDependencies​(boolean includeUnresolved)
        Deprecated.
        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)
        Deprecated.
        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

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

        public java.lang.String getClassPath()
        Deprecated.
        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
      • setVisited

        protected boolean setVisited​(org.eclipse.aether.graph.DependencyNode node)
        Deprecated.
        Marks the specified node as being visited and determines whether the node has been visited before.
        Parameters:
        node - the node being visited, must not be null
        Returns:
        true if the node has not been visited before, false if the node was already visited