|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.universAAL.maven.FilteringVisitorSupport org.universAAL.maven.IndexingDependencyNodeVisitor
public class IndexingDependencyNodeVisitor
This DepepdencyVistor traverses depedency tree in depth-first manner. All nodes which were not ommited are remembered in two maps: nodesByArtifactId and versionsByArtifactId. Maps are available after search is finished.
Constructor Summary | |
---|---|
IndexingDependencyNodeVisitor(org.apache.maven.plugin.logging.Log log)
Constructor of IndexingDependencyNodeVisitor. |
Method Summary | |
---|---|
boolean |
endVisit(org.apache.maven.shared.dependency.tree.DependencyNode node)
If this method returns true then it means that the next sibling should be visited. |
Map |
getNodesByArtifactId()
Gets mapping of stringified artifacts (groupId + artifactId + version) to nodes in the dependency tree. |
Map |
getVersionByArtifactId()
Gets mapping of stringified artifacts without version (groupId + artifactId) to stringified artifacts with version. |
boolean |
visit(org.apache.maven.shared.dependency.tree.DependencyNode node)
If this method returns true then it means that nodes children should be visited. |
Methods inherited from class org.universAAL.maven.FilteringVisitorSupport |
---|
getLog, getVisited, isInScope, stringify, stringify, stringifyNoVersion, stringifyNoVersion, wasVisited |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexingDependencyNodeVisitor(org.apache.maven.plugin.logging.Log log)
log
- object used for logging.Method Detail |
---|
public final boolean visit(org.apache.maven.shared.dependency.tree.DependencyNode node)
visit
in interface org.apache.maven.shared.dependency.tree.traversal.DependencyNodeVisitor
node
- which should be checked for need of visiting
public final boolean endVisit(org.apache.maven.shared.dependency.tree.DependencyNode node)
endVisit
in interface org.apache.maven.shared.dependency.tree.traversal.DependencyNodeVisitor
node
- which visiting should be finished
public final Map getNodesByArtifactId()
public final Map getVersionByArtifactId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |