|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sonatype.aether.util.graph.PreorderNodeListGenerator
public class PreorderNodeListGenerator
Generates a sequence of dependency nodes from a dependeny graph by traversing the graph in preorder. 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.
Constructor Summary | |
---|---|
PreorderNodeListGenerator()
Creates a new list generator. |
Method Summary | |
---|---|
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. |
boolean |
visitEnter(DependencyNode node)
Notifies the visitor of a node visit before its children have been processed. |
boolean |
visitLeave(DependencyNode node)
Notifies the visitor of a node visit after its children have been processed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreorderNodeListGenerator()
Method Detail |
---|
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
.public boolean visitEnter(DependencyNode node)
DependencyVisitor
visitEnter
in interface DependencyVisitor
node
- The dependency node being visited, must not be null
.
true
to visit child nodes of the specified node as well, false
to skip children.public boolean visitLeave(DependencyNode node)
DependencyVisitor
visitLeave
in interface DependencyVisitor
node
- The dependency node being visited, must not be null
.
true
to visit siblings nodes of the specified node as well, false
to skip siblings.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |