Package org.ek9lang.cli
Class DependencyNode
java.lang.Object
org.ek9lang.cli.DependencyNode
Represents a single dependency by moduleName and version.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Why was a dependency rejected. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
addDependency
(DependencyNode node) (package private) void
addDependencyRejection
(String moduleName, String whenDependencyOf) boolean
(package private) List
<DependencyNode> (package private) String
(package private) DependencyNode
(package private) SemanticVersion
int
hashCode()
(package private) boolean
isDependencyOf
(String whenDependencyOf) Check if a dependency.(package private) boolean
(package private) boolean
(package private) boolean
isSameModule
(DependencyNode node) (package private) static DependencyNode
Create a node from a vector.Get a list of all the dependencies.reportCircularDependencies
(boolean includeVersion) Find the first circular dependency.(package private) void
setParent
(DependencyNode parent) (package private) void
setRejected
(DependencyNode.RejectionReason reason, boolean rejected, boolean alsoRejectDependencies) Reject this dependency and optionally reject any dependencies it pulled in.(package private) String
showPathToDependency
(boolean includeVersion) Show the path through other dependencies to this dependency.toString()
-
Constructor Details
-
DependencyNode
-
-
Method Details
-
of
Create a node from a vector.- Parameters:
dependencyVector
- - example a.b.c-3.8.3-feature32-90- Returns:
- A new dependency node.
-
addDependencyRejection
-
getDependencyRejections
-
addDependency
-
isDependencyOf
Check if a dependency. -
reportAllDependencies
Get a list of all the dependencies. -
reportCircularDependencies
Find the first circular dependency. -
showPathToDependency
Show the path through other dependencies to this dependency. -
isParentRejected
boolean isParentRejected() -
isSameModule
-
isRejected
boolean isRejected() -
setRejected
void setRejected(DependencyNode.RejectionReason reason, boolean rejected, boolean alsoRejectDependencies) Reject this dependency and optionally reject any dependencies it pulled in. -
getParent
DependencyNode getParent() -
setParent
-
getDependencies
List<DependencyNode> getDependencies() -
getModuleName
String getModuleName() -
getVersion
SemanticVersion getVersion() -
hashCode
public int hashCode() -
equals
-
toString
-