| java.lang.Object org.apache.ivy.core.resolve.VisitNode
VisitNode | public class VisitNode (Code) | | A visit node is an object used to represent one visit from one parent on an
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:
- parent
the node from which the visit is occuring
- parentConf
the configuration of the parent in which this node is visited
- rootModuleConf
the configuration of the root module which is currently resolved
|
getEvictedData | public EvictionData getEvictedData()(Code) | | |
getEvictionDataInRoot | public EvictionData getEvictionDataInRoot(String rootModuleConf, VisitNode ancestor)(Code) | | |
getRealNode | public IvyNode getRealNode()(Code) | | Returns the 'real' node currently visited. 'Real' means that if we are visiting a node
created originally with only a version constraint, and if this version constraint has been
resolved to an existing node in the graph, we will return the existing node, and not the one
originally used which is about to be discarded, since it's not possible to have in the graph
two nodes for the same ModuleRevisionId
the 'real' node currently visited. |
getRequestedConf | public String getRequestedConf()(Code) | | Returns the configuration requested by the parent |
getRequiredConfigurations | public String[] getRequiredConfigurations()(Code) | | |
gotoNode | VisitNode gotoNode(IvyNode node)(Code) | | Returns a VisitNode for the given node. The given node must be a representation of the same
module (usually in another revision) as the one visited by this node. The given node must
also have been already visited.
Parameters: node - the node to visit a VisitNode for the given node |
hasProblem | public boolean hasProblem()(Code) | | |
isCircular | public boolean isCircular()(Code) | | Returns true if this node can already be found in the path
|
isEvicted | public boolean isEvicted()(Code) | | |
isParentConfTransitive | protected boolean isParentConfTransitive()(Code) | | Checks if the current node's parent configuration is transitive.
Parameters: node - current node true if the node's parent configuration is transitive |
isTransitive | public boolean isTransitive()(Code) | | Returns true if the current dependency descriptor is transitive and the parent configuration
is transitive. Otherwise returns false.
true if current node is transitive and the parent configuration is transitive. |
loadData | public boolean loadData(String conf, boolean shouldBePublic)(Code) | | |
markEvicted | public void markEvicted(EvictionData evictionData)(Code) | | |
markEvicted | public void markEvicted(VisitNode parent, ConflictManager conflictMgr, Collection selected)(Code) | | Marks the current node as evicted by the the given selected IvyNodes, in the given parent and
root module configuration, with the given
ConflictManager Parameters: parent - the VisitNode in which eviction has been made Parameters: conflictMgr - the conflict manager responsible for the eviction Parameters: selected - a Collection of IvyNode which have been selected |
setParentConf | public void setParentConf(String parentConf)(Code) | | |
setRequestedConf | public void setRequestedConf(String requestedConf)(Code) | | |
useRealNode | public void useRealNode()(Code) | | Ask to the current visited node to use a real node only, if one exist. See getRealNode for
details about what a 'real' node is.
|
|
|