public class TreePrinterDependencyVisitor extends AbstractDependencyVisitor
Modifier and Type | Field and Description |
---|---|
protected Map<String,org.eclipse.aether.graph.DependencyNode> |
dependencyMap |
protected Map<String,List<org.eclipse.aether.graph.Dependency>> |
directDepsByArtifact |
protected int |
format |
protected OutputStream |
output |
static String |
TAB_STR
Tabulation used in
PrintGraphTask.MODE_TREE mode. |
protected String |
tabs |
ignores, nodesMap, scopes
Constructor and Description |
---|
TreePrinterDependencyVisitor(OutputStream output,
int format,
List<String> scopes,
List<Node> roots) |
Modifier and Type | Method and Description |
---|---|
protected void |
addMissingChildren(org.eclipse.aether.graph.DependencyNode node)
Add child nodes which were removed by the ConflictResolver (it lets no
duplicate)
|
protected void |
decTabs() |
protected void |
doVisit(org.eclipse.aether.graph.DependencyNode node,
boolean newNode)
Actions to perform when visiting a node.
|
protected void |
incTabs() |
protected void |
print(org.eclipse.aether.graph.DependencyNode node) |
String |
toString(org.eclipse.aether.graph.DependencyNode node) |
boolean |
visitLeave(org.eclipse.aether.graph.DependencyNode node)
Note that method is always called, even if
AbstractDependencyVisitor.doVisit(DependencyNode, boolean) was not. |
addIgnores, getArtifacts, getClassPath, getDependencies, getFiles, getNodes, setVisited, visitEnter
public static final String TAB_STR
PrintGraphTask.MODE_TREE
mode.protected String tabs
protected int format
protected OutputStream output
public TreePrinterDependencyVisitor(OutputStream output, int format, List<String> scopes, List<Node> roots)
output
- format
- 0 = standard GAV ; 1 = File + GAVscopes
- roots
- protected void doVisit(org.eclipse.aether.graph.DependencyNode node, boolean newNode)
AbstractDependencyVisitor
AbstractDependencyVisitor.ignores
.doVisit
in class AbstractDependencyVisitor
newNode
- True if visiting the node for the first timeprotected void addMissingChildren(org.eclipse.aether.graph.DependencyNode node)
protected void incTabs()
public boolean visitLeave(org.eclipse.aether.graph.DependencyNode node)
AbstractDependencyVisitor
AbstractDependencyVisitor.doVisit(DependencyNode, boolean)
was not. Check
AbstractDependencyVisitor.ignores
if needed.visitLeave
in interface org.eclipse.aether.graph.DependencyVisitor
visitLeave
in class AbstractDependencyVisitor
protected void decTabs()
protected void print(org.eclipse.aether.graph.DependencyNode node) throws UnsupportedEncodingException, IOException
public String toString(org.eclipse.aether.graph.DependencyNode node)
format
PrintGraphTask.FORMAT_GAV
,
PrintGraphTask.FORMAT_KV_F_GAV
Copyright © 2016 Nuxeo SA. All Rights Reserved.