Skip navigation links
org.jerkar.api.depmanagement

Class JkScope

    • Method Detail

      • of

        public static JkScope of(java.lang.String name)
        Creates a new JkScope passing its name.
      • build

        public static JkScope.JkScopeBuilder build(java.lang.String name)
        Returns a builder to create a scope instance fluently.
      • name

        public java.lang.String name()
        Returns the name of this scope. Name is used as identifier for scopes.
      • description

        public java.lang.String description()
        Human description for the purpose of this scope, can be null.
      • extendedScopes

        public java.util.Set<JkScope> extendedScopes()
        Scopes that are extended by this one.
      • transitive

        public boolean transitive()
        Returns true if the dependencies defined with this scope should be resolved recursively (meaning returning the dependencies of the dependencies and so on)
      • ancestorScopes

        public java.util.List<JkScope> ancestorScopes()
        Returns scopes this scope inherits from. It returns recursively parent scopes, parent of parent scopes and so on.
      • commonScopes

        public java.util.List<JkScope> commonScopes(java.util.Collection<JkScope> scopes)
        Returns this scope or its first ancestors found present in the specified scopes.
      • isExtending

        public boolean isExtending(JkScope jkScope)
        Returns true if this scope extends the specified one.
      • isInOrIsExtendingAnyOf

        public boolean isInOrIsExtendingAnyOf(java.lang.Iterable<? extends JkScope> scopes)
        Returns true if this scope is one or is extending any of the specified scopes.
      • hashCode

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • involvedScopes

        public static java.util.Set<JkScope> involvedScopes(java.lang.Iterable<JkScope> scopes)
        returns all specified scopes and all of their ancestors.