Class ConflictResolver.NodeInfo
- java.lang.Object
-
- org.eclipse.aether.util.graph.transformer.ConflictResolver.NodeInfo
-
- Enclosing class:
- ConflictResolver
static final class ConflictResolver.NodeInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static intCHANGE_OPTIONAL(package private) static intCHANGE_SCOPE(package private) java.util.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.(package private) intderivedOptionalitiesThe 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) java.lang.ObjectderivedScopesThe 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) intminDepthThe smallest depth at which the node was seen, used for "the" depth of its conflict items.private static intOPT_FALSEprivate static intOPT_TRUE
-
Constructor Summary
Constructors Constructor Description NodeInfo(int depth, java.lang.String derivedScope, boolean optional)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidadd(ConflictResolver.ConflictItem item)(package private) intupdate(int depth, java.lang.String derivedScope, boolean optional)
-
-
-
Field Detail
-
minDepth
int minDepth
The smallest depth at which the node was seen, used for "the" depth of its conflict items.
-
derivedScopes
java.lang.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 withStringand update toSet<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
java.util.List<ConflictResolver.ConflictItem> 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:
- Constant Field Values
-
CHANGE_OPTIONAL
static final int CHANGE_OPTIONAL
- See Also:
- Constant Field Values
-
OPT_FALSE
private static final int OPT_FALSE
- See Also:
- Constant Field Values
-
OPT_TRUE
private static final int OPT_TRUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
update
int update(int depth, java.lang.String derivedScope, boolean optional)
-
add
void add(ConflictResolver.ConflictItem item)
-
-