Class ConflictResolver.NodeInfo

java.lang.Object
org.eclipse.aether.util.graph.transformer.ConflictResolver.NodeInfo
Enclosing class:
ConflictResolver

static final class ConflictResolver.NodeInfo extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final int
     
    (package private) static final int
     
    The conflict items which are immediate children of the node, used to easily update those conflict items after a new parent scope/optionality was encountered.
    (package private) int
    The set of derived optionalities the node was visited with, used to check whether an already seen node needs to be revisited again in context of another optionality.
    (package private) Object
    The set of derived scopes the node was visited with, used to check whether an already seen node needs to be revisited again in context of another scope.
    (package private) int
    The smallest depth at which the node was seen, used for "the" depth of its conflict items.
    private static final int
     
    private static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    NodeInfo(int depth, String derivedScope, boolean optional)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
     
    (package private) int
    update(int depth, String derivedScope, boolean optional)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • minDepth

      int minDepth
      The smallest depth at which the node was seen, used for "the" depth of its conflict items.
    • derivedScopes

      Object derivedScopes
      The set of derived scopes the node was visited with, used to check whether an already seen node needs to be revisited again in context of another scope. To conserve memory, we start with String and update to Set<String> if needed.
    • derivedOptionalities

      int derivedOptionalities
      The set of derived optionalities the node was visited with, used to check whether an already seen node needs to be revisited again in context of another optionality. To conserve memory, encoded as bit field (bit 0 -> optional=false, bit 1 -> optional=true).
    • children

      The conflict items which are immediate children of the node, used to easily update those conflict items after a new parent scope/optionality was encountered.
    • CHANGE_SCOPE

      static final int CHANGE_SCOPE
      See Also:
    • CHANGE_OPTIONAL

      static final int CHANGE_OPTIONAL
      See Also:
    • OPT_FALSE

      private static final int OPT_FALSE
      See Also:
    • OPT_TRUE

      private static final int OPT_TRUE
      See Also:
  • Constructor Details

    • NodeInfo

      NodeInfo(int depth, String derivedScope, boolean optional)
  • Method Details