Class ResolveData


  • public class ResolveData
    extends java.lang.Object
    • Method Detail

      • getNodes

        public java.util.Collection<IvyNode> getNodes()
      • isSubMap

        private static <K,​V> boolean isSubMap​(java.util.Map<K,​V> map1,
                                                    java.util.Map<K,​V> map2)
        Checks whether one map is a sub-map of the other.
      • isEqual

        private static boolean isEqual​(java.lang.Object obj1,
                                       java.lang.Object obj2)
      • getCurrentVisitNode

        public VisitNode getCurrentVisitNode()
        Returns the VisitNode currently visited, or null if there is no node currently visited in this context.
        Returns:
        the VisitNode currently visited
      • setCurrentVisitNode

        void setCurrentVisitNode​(VisitNode currentVisitNode)
        Sets the currently visited node. WARNING: This should only be called by Ivy core ResolveEngine!
        Parameters:
        currentVisitNode - VisitNode
      • register

        public void register​(VisitNode node)
      • replaceNode

        void replaceNode​(ModuleRevisionId mrid,
                         IvyNode node,
                         java.lang.String rootModuleConf)
        Updates the visit data currently associated with the given mrid with the given node and the visit nodes of the old visitData for the given rootModuleConf
        Parameters:
        mrid - the module revision id for which the update should be done
        node - the IvyNode to associate with the visit data to update
        rootModuleConf - the root module configuration in which the update is made
      • getDate

        public java.util.Date getDate()
      • isValidate

        public boolean isValidate()
      • isTransitive

        public boolean isTransitive()
      • blacklist

        void blacklist​(IvyNode node)
      • isBlacklisted

        public boolean isBlacklisted​(java.lang.String rootModuleConf,
                                     ModuleRevisionId mrid)
      • setCurrentResolvedModuleRevision

        public void setCurrentResolvedModuleRevision​(ResolvedModuleRevision mr)
        Sets the last ResolvedModuleRevision which has been currently resolved.

        This can be used especially in dependency resolvers, to know if another dependency resolver has already resolved the requested dependency, to take a decision if the resolver should try to resolve it by itself or not. Indeed, the dependency resolver is responsible for taking this decision, even when included in a chain. The chain responsibility is only to set this current resolved module revision to enable the resolver to take the decision.

        Parameters:
        mr - the last ResolvedModuleRevision which has been currently resolved.