Class ConflictResolver.NodeInfo
java.lang.Object
org.eclipse.aether.util.graph.transformer.ConflictResolver.NodeInfo
- Enclosing class:
ConflictResolver
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int
(package private) static final int
(package private) List
<ConflictResolver.ConflictItem> 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 -
Method Summary
Modifier and TypeMethodDescription(package private) void
(package private) int
-
Field Details
-
minDepth
int minDepthThe smallest depth at which the node was seen, used for "the" depth of its conflict items. -
derivedScopes
Object derivedScopesThe 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 withString
and update toSet<String>
if needed. -
derivedOptionalities
int derivedOptionalitiesThe 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
List<ConflictResolver.ConflictItem> childrenThe 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
-
update
-
add
-