public class JkDependencyNode
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
JkDependencyNode.JkFileNodeInfo |
static class |
JkDependencyNode.JkModuleNodeInfo |
static interface |
JkDependencyNode.JkNodeInfo |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(JkModuleId moduleId)
Returns
true if this node or one of its descendant stand for the specified module. |
JkDependencyNode |
getChild(JkModuleId moduleId)
Returns the getChild node having the specified getModuleId.
|
java.util.Set<JkVersionedModule> |
getChildModules()
Returns the versioned modules which with this result has been created.
|
java.util.List<JkDependencyNode> |
getChildren()
Returns the children nodes for this node in the tree structure.
|
java.util.List<JkDependencyNode> |
getChildren(JkModuleId moduleId)
Returns the children nodes for this node having the specified getModuleId.
|
JkDependencyNode |
getFirst(JkModuleId moduleId)
Returns first node descendant of this one standing for the specified getModuleId, deep first.
|
JkDependencyNode.JkModuleNodeInfo |
getModuleInfo()
Convenient method to return relative information about this node, assuming this node stands for a module dependency.
|
JkDependencyNode.JkNodeInfo |
getNodeInfo()
Returns information relative to this dependency node.
|
java.util.List<java.nio.file.Path> |
getResolvedFiles()
Returns all files resulting of this dependency node (this node itself plus all descendants).
|
JkVersionProvider |
getResolvedVersions()
Returns the resolved version for this node and all its children.
|
boolean |
isModuleNode()
Returns true if this node stands for a module dependency.
|
static JkDependencyNode |
ofFileDep(JkFileDependency dependency,
java.util.Set<JkScope> scopes) |
static JkDependencyNode |
ofModuleDep(JkDependencyNode.JkModuleNodeInfo moduleNodeInfo,
java.util.List<JkDependencyNode> children)
Constructs a node for the specified versioned module having the specified
direct flatten.
|
java.util.List<JkDependencyNode> |
toFlattenList()
Returns all nodes descendant of this one, deep first.
|
java.lang.String |
toString() |
java.util.List<java.lang.String> |
toStrings()
Returns a list of lines standing for the representation of this
dependency tree.
|
java.lang.String |
toStringTree()
Returns a complete representation string of the tree.
|
JkDependencyNode |
withMerging(JkDependencyNode other)
Returns a merge of this dependency node with the specified one.
|
public static JkDependencyNode ofModuleDep(JkDependencyNode.JkModuleNodeInfo moduleNodeInfo, java.util.List<JkDependencyNode> children)
public static JkDependencyNode ofFileDep(JkFileDependency dependency, java.util.Set<JkScope> scopes)
public java.util.List<java.nio.file.Path> getResolvedFiles()
public boolean isModuleNode()
false
if
it stands for a file dependency.public JkDependencyNode.JkModuleNodeInfo getModuleInfo()
public JkDependencyNode.JkNodeInfo getNodeInfo()
public java.util.List<JkDependencyNode> getChildren()
public boolean contains(JkModuleId moduleId)
true
if this node or one of its descendant stand for the specified module.
Evicted nodes are not taken in account.public JkVersionProvider getResolvedVersions()
public java.util.Set<JkVersionedModule> getChildModules()
public java.util.List<JkDependencyNode> getChildren(JkModuleId moduleId)
public JkDependencyNode getChild(JkModuleId moduleId)
public JkDependencyNode withMerging(JkDependencyNode other)
public java.util.List<JkDependencyNode> toFlattenList()
public JkDependencyNode getFirst(JkModuleId moduleId)
public java.util.List<java.lang.String> toStrings()
public java.lang.String toStringTree()
public java.lang.String toString()
toString
in class java.lang.Object