public final class PreorderNodeListGenerator extends Object
Modifier and Type | Field and Description |
---|---|
protected List<DependencyNode> |
nodes |
Constructor and Description |
---|
PreorderNodeListGenerator()
Creates a new preorder list generator.
|
Modifier and Type | Method and Description |
---|---|
List<Artifact> |
getArtifacts(boolean includeUnresolved)
Gets the artifacts associated with the list of dependency nodes generated during the graph traversal.
|
String |
getClassPath()
Gets a class path by concatenating the artifact files of the visited dependency nodes.
|
List<Dependency> |
getDependencies(boolean includeUnresolved)
Gets the dependencies seen during the graph traversal.
|
List<File> |
getFiles()
Gets the files of resolved artifacts seen during the graph traversal.
|
List<DependencyNode> |
getNodes()
Gets the list of dependency nodes that was generated during the graph traversal.
|
protected boolean |
setVisited(DependencyNode node)
Marks the specified node as being visited and determines whether the node has been visited before.
|
boolean |
visitEnter(DependencyNode node) |
boolean |
visitLeave(DependencyNode node) |
protected final List<DependencyNode> nodes
public PreorderNodeListGenerator()
public boolean visitEnter(DependencyNode node)
visitEnter
in interface DependencyVisitor
public boolean visitLeave(DependencyNode node)
visitLeave
in interface DependencyVisitor
public List<DependencyNode> getNodes()
null
.public List<Dependency> getDependencies(boolean includeUnresolved)
includeUnresolved
- Whether unresolved dependencies shall be included in the result or not.null
.public List<Artifact> getArtifacts(boolean includeUnresolved)
includeUnresolved
- Whether unresolved artifacts shall be included in the result or not.null
.public List<File> getFiles()
null
.public String getClassPath()
null
.protected boolean setVisited(DependencyNode node)
node
- The node being visited, must not be null
.true
if the node has not been visited before, false
if the node was already visited.Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.