Class JkResolvedDependencyNode
java.lang.Object
dev.jeka.core.api.depmanagement.resolution.JkResolvedDependencyNode
A representation of a node in a dependency tree.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
static interface
-
Method Summary
Modifier and TypeMethodDescriptionboolean
contains
(JkModuleId moduleId) Returnstrue
if this node or one of its descendant stand for the specified module.getChild
(JkModuleId jkModuleId) Returns the getChild node having the specified getModuleId.Returns the children nodes for this node in the tree structure.getChildren
(JkModuleId jkModuleId) Returns the children nodes for this node having the specified getModuleId.Returns a set of module coordinates for all descendant modules of this dependency node.getFirst
(JkModuleId jkModuleId) Returns first node descendant of this one standing for the specified getModuleId, deep first.Convenient method to return relative information about this node, assuming this node stands for a module dependency.Convenient method to get the ModuleNodeInfo when this dependency node is a module.Returns information relative to this dependency node.Returns all files resulting of this dependency node (this node itself plus all descendants).Returns the resolved version for this node and all its children.boolean
Returns true if this node stands for a module dependency.static JkResolvedDependencyNode
ofFileDep
(JkFileDependency dependency, Set<String> configurations) static JkResolvedDependencyNode
ofFileDep
(JkResolvedDependencyNode.JkFileNodeInfo fileNodeInfo) static JkResolvedDependencyNode
ofModuleDep
(JkResolvedDependencyNode.JkModuleNodeInfo moduleNodeInfo, List<JkResolvedDependencyNode> children) Constructs a node for the specified versioned module having the specified direct flatten.static JkResolvedDependencyNode
ofRoot
(List<JkResolvedDependencyNode> children) toDomElement
(Document document, boolean root) Returns all descendant nodes of this one, deep first.toString()
Returns a list of lines standing for the representation of this dependency tree.Returns a complete representation string of the tree.Returns a merge of this dependency node with the specified one.
-
Method Details
-
ofModuleDep
public static JkResolvedDependencyNode ofModuleDep(JkResolvedDependencyNode.JkModuleNodeInfo moduleNodeInfo, List<JkResolvedDependencyNode> children) Constructs a node for the specified versioned module having the specified direct flatten. -
ofRoot
-
ofFileDep
public static JkResolvedDependencyNode ofFileDep(JkFileDependency dependency, Set<String> configurations) -
ofFileDep
public static JkResolvedDependencyNode ofFileDep(JkResolvedDependencyNode.JkFileNodeInfo fileNodeInfo) -
getResolvedFiles
Returns all files resulting of this dependency node (this node itself plus all descendants). -
isModuleNode
public boolean isModuleNode()Returns true if this node stands for a module dependency. It returnsfalse
if it stands for a file dependency. -
getModuleNodeInfo
Convenient method to get the ModuleNodeInfo when this dependency node is a module. -
getModuleInfo
Convenient method to return relative information about this node, assuming this node stands for a module dependency. -
getNodeInfo
Returns information relative to this dependency node. -
getChildren
Returns the children nodes for this node in the tree structure. -
contains
Returnstrue
if this node or one of its descendant stand for the specified module. Evicted nodes are not taken in account. -
getResolvedVersions
Returns the resolved version for this node and all its children. -
getDescendantModuleCoordinates
Returns a set of module coordinates for all descendant modules of this dependency node. -
getChildren
Returns the children nodes for this node having the specified getModuleId. -
getChild
Returns the getChild node having the specified getModuleId. -
withMerging
Returns a merge of this dependency node with the specified one. The children of the merged node is a union of the two node children. -
toFlattenList
Returns all descendant nodes of this one, deep first. -
getFirst
Returns first node descendant of this one standing for the specified getModuleId, deep first. -
toStrings
Returns a list of lines standing for the representation of this dependency tree. -
toDomElement
-
toStringTree
Returns a complete representation string of the tree. -
toString
-