public final class PostorderNodeListGenerator extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.List<org.eclipse.aether.graph.DependencyNode> |
nodes |
| Constructor | Description |
|---|---|
PostorderNodeListGenerator() |
Creates a new postorder list generator.
|
| Modifier and Type | Method | Description |
|---|---|---|
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() |
Gets the files of resolved artifacts seen during the graph traversal.
|
java.util.List<org.eclipse.aether.graph.DependencyNode> |
getNodes() |
Gets the list of dependency nodes that was generated during the graph traversal.
|
protected boolean |
setVisited(org.eclipse.aether.graph.DependencyNode node) |
Marks the specified node as being visited and determines whether the node has been visited before.
|
boolean |
visitEnter(org.eclipse.aether.graph.DependencyNode node) |
|
boolean |
visitLeave(org.eclipse.aether.graph.DependencyNode node) |
protected final java.util.List<org.eclipse.aether.graph.DependencyNode> nodes
public PostorderNodeListGenerator()
public boolean visitEnter(org.eclipse.aether.graph.DependencyNode node)
public boolean visitLeave(org.eclipse.aether.graph.DependencyNode node)
public java.util.List<org.eclipse.aether.graph.DependencyNode> getNodes()
null.public java.util.List<org.eclipse.aether.graph.Dependency> getDependencies(boolean includeUnresolved)
includeUnresolved - Whether unresolved dependencies shall be included in the result or not.null.public java.util.List<org.eclipse.aether.artifact.Artifact> getArtifacts(boolean includeUnresolved)
includeUnresolved - Whether unresolved artifacts shall be included in the result or not.null.public java.util.List<java.io.File> getFiles()
null.public java.lang.String getClassPath()
null.protected boolean setVisited(org.eclipse.aether.graph.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.