public class VisitNode
extends java.lang.Object
IvyNode
of
the dependency graph. During dependency resolution, the ResolveEngine
visits nodes of the
depency graph following the dependencies, thus the same node can be visited several times, if it
is requested from several module. In this case you will have one VisitNode per parent and per
root module configuration. Thus VisitNode stores data specific to the visit:
Constructor and Description |
---|
VisitNode(ResolveData data,
IvyNode node,
VisitNode parent,
java.lang.String rootModuleConf,
java.lang.String parentConf) |
VisitNode(ResolveData data,
IvyNode node,
VisitNode parent,
java.lang.String rootModuleConf,
java.lang.String parentConf,
IvyNodeUsage usage) |
Modifier and Type | Method and Description |
---|---|
Configuration |
getConfiguration(java.lang.String conf) |
java.lang.String[] |
getConfsToFetch() |
java.util.Collection |
getDependencies(java.lang.String conf) |
DependencyDescriptor |
getDependencyDescriptor() |
ModuleDescriptor |
getDescriptor() |
IvyNodeEviction.EvictionData |
getEvictedData() |
java.util.Collection |
getEvictedRevisions(ModuleId moduleId) |
IvyNodeEviction.EvictionData |
getEvictionDataInRoot(java.lang.String rootModuleConf,
VisitNode ancestor) |
ModuleRevisionId |
getId() |
ModuleId |
getModuleId() |
IvyNode |
getNode() |
VisitNode |
getParent() |
java.lang.String |
getParentConf() |
java.util.Collection |
getPath()
Get an ordered collection with the nodes from the root to this node
|
java.lang.String[] |
getRealConfs(java.lang.String conf) |
IvyNode |
getRealNode()
Returns the 'real' node currently visited.
|
java.lang.String |
getRequestedConf() |
java.lang.String[] |
getRequiredConfigurations() |
java.lang.String[] |
getRequiredConfigurations(VisitNode in,
java.lang.String inConf) |
ModuleRevisionId |
getResolvedId() |
java.util.Collection |
getResolvedRevisions(ModuleId mid) |
VisitNode |
getRoot() |
static VisitNode |
getRoot(VisitNode parent) |
java.lang.String |
getRootModuleConf() |
boolean |
hasProblem() |
boolean |
isCircular()
Returns true if this node can already be found in the path
|
boolean |
isConfRequiredByMergedUsageOnly(java.lang.String conf) |
boolean |
isEvicted() |
protected boolean |
isParentConfTransitive()
Checks if the current node's parent configuration is transitive.
|
boolean |
isTransitive()
Returns true if the current dependency descriptor is transitive and the parent configuration
is transitive.
|
boolean |
loadData(java.lang.String conf,
boolean shouldBePublic) |
void |
markEvicted(IvyNodeEviction.EvictionData evictionData) |
void |
markEvicted(VisitNode parent,
ConflictManager conflictMgr,
java.util.Collection selected)
Marks the current node as evicted by the the given selected IvyNodes, in the given parent and
root module configuration, with the given
ConflictManager |
void |
setParentConf(java.lang.String parentConf) |
void |
setRequestedConf(java.lang.String requestedConf) |
java.lang.String |
toString() |
void |
updateConfsToFetch(java.util.Collection confs) |
void |
useRealNode()
Ask to the current visited node to use a real node only, if one exist.
|
public VisitNode(ResolveData data, IvyNode node, VisitNode parent, java.lang.String rootModuleConf, java.lang.String parentConf)
public VisitNode(ResolveData data, IvyNode node, VisitNode parent, java.lang.String rootModuleConf, java.lang.String parentConf, IvyNodeUsage usage)
public IvyNode getNode()
public java.lang.String getRequestedConf()
public void setRequestedConf(java.lang.String requestedConf)
public VisitNode getParent()
public VisitNode getRoot()
public java.util.Collection getPath()
public java.lang.String getParentConf()
public void setParentConf(java.lang.String parentConf)
public java.lang.String getRootModuleConf()
public boolean isTransitive()
protected boolean isParentConfTransitive()
node
- current nodepublic IvyNode getRealNode()
public void useRealNode()
public boolean loadData(java.lang.String conf, boolean shouldBePublic)
public java.util.Collection getDependencies(java.lang.String conf)
public ModuleRevisionId getResolvedId()
public void updateConfsToFetch(java.util.Collection confs)
public ModuleRevisionId getId()
public boolean isEvicted()
public java.lang.String[] getRealConfs(java.lang.String conf)
public boolean hasProblem()
public Configuration getConfiguration(java.lang.String conf)
public IvyNodeEviction.EvictionData getEvictedData()
public DependencyDescriptor getDependencyDescriptor()
public boolean isCircular()
public java.lang.String[] getConfsToFetch()
public java.lang.String[] getRequiredConfigurations(VisitNode in, java.lang.String inConf)
public ModuleId getModuleId()
public java.util.Collection getResolvedRevisions(ModuleId mid)
public void markEvicted(IvyNodeEviction.EvictionData evictionData)
public java.lang.String[] getRequiredConfigurations()
public void markEvicted(VisitNode parent, ConflictManager conflictMgr, java.util.Collection selected)
ConflictManager
parent
- the VisitNode in which eviction has been madeconflictMgr
- the conflict manager responsible for the evictionselected
- a Collection of IvyNode
which have been selectedpublic ModuleDescriptor getDescriptor()
public IvyNodeEviction.EvictionData getEvictionDataInRoot(java.lang.String rootModuleConf, VisitNode ancestor)
public java.util.Collection getEvictedRevisions(ModuleId moduleId)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isConfRequiredByMergedUsageOnly(java.lang.String conf)