Class DependencyGraphNode
-
- All Implemented Interfaces:
public final class DependencyGraphNodeA data class representing a node in the dependency graph.
A node corresponds to a package, which is referenced by a numeric index. A package may, however, occur multiple times in the dependency graph with different transitive dependencies. In this case, different fragment indices are used to distinguish between these occurrences.
-
-
Constructor Summary
Constructors Constructor Description DependencyGraphNode(Integer pkg, Integer fragment, PackageLinkage linkage, List<Issue> issues)
-
Method Summary
Modifier and Type Method Description final IntegergetPkg()Stores the numeric index of the package dependency referenced by this object. final IntegergetFragment()Stores the index of the fragment in the dependency graph where the referenced dependency is contained. final PackageLinkagegetLinkage()The type of linkage used for the referred package from its dependent package. final List<Issue>getIssues()A list of Issues that occurred handling this dependency. -
-
Constructor Detail
-
DependencyGraphNode
DependencyGraphNode(Integer pkg, Integer fragment, PackageLinkage linkage, List<Issue> issues)
-
-
Method Detail
-
getPkg
final Integer getPkg()
Stores the numeric index of the package dependency referenced by this object. The package behind this index can be resolved by evaluating the list of identifiers stored in DependencyGraph at this index.
-
getFragment
final Integer getFragment()
Stores the index of the fragment in the dependency graph where the referenced dependency is contained. This is needed to uniquely identify the target if the dependency occurs multiple times in the graph.
-
getLinkage
final PackageLinkage getLinkage()
The type of linkage used for the referred package from its dependent package. As most of our supported package managers / languages only support dynamic linking or at least default to it, also use that as the default value here to not blow up our result files.
-
-
-
-