Class DependencyNode

java.lang.Object
org.ek9lang.cli.DependencyNode

final class DependencyNode extends Object
Represents a single dependency by moduleName and version.
  • Constructor Details

    • DependencyNode

      DependencyNode(String moduleName, String version)
  • Method Details

    • of

      static DependencyNode of(String dependencyVector)
      Create a node from a vector.
      Parameters:
      dependencyVector - - example a.b.c-3.8.3-feature32-90
      Returns:
      A new dependency node.
    • addDependencyRejection

      void addDependencyRejection(String moduleName, String whenDependencyOf)
    • getDependencyRejections

      Map<String,String> getDependencyRejections()
    • addDependency

      void addDependency(DependencyNode node)
    • isDependencyOf

      boolean isDependencyOf(String whenDependencyOf)
      Check if a dependency.
    • reportAllDependencies

      List<String> reportAllDependencies()
      Get a list of all the dependencies.
    • reportCircularDependencies

      Optional<String> reportCircularDependencies(boolean includeVersion)
      Find the first circular dependency.
    • showPathToDependency

      String showPathToDependency(boolean includeVersion)
      Show the path through other dependencies to this dependency.
    • isParentRejected

      boolean isParentRejected()
    • isSameModule

      boolean isSameModule(DependencyNode node)
    • 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

      void setParent(DependencyNode parent)
    • getDependencies

      List<DependencyNode> getDependencies()
    • getModuleName

      String getModuleName()
    • getVersion

      SemanticVersion getVersion()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object