APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.tools.jdeps

public Class InverseDepsAnalyzer

extends DepsAnalyzer
Class Inheritance
Static Imports
com.sun.tools.jdeps.JdepsFilter.DEFAULT_FILTER, .Module.trace, com.sun.tools.jdeps.Graph.*

Inverse transitive dependency analysis (compile-time view)

Field Summary

Modifier and TypeField and Description
private final Map<Archive, Set<Archive>>
private final Set<Archive>
Inherited from com.sun.tools.jdeps.DepsAnalyzer:
analyzerapiOnlyarchivesconfigurationfilterfinderrootArchivesverbosewriter

Constructor Summary

AccessConstructor and Description
public
InverseDepsAnalyzer(JdepsConfiguration config, JdepsFilter filter, JdepsWriter writer, Analyzer.Type verbose, boolean apiOnly)

Method Summary

Modifier and TypeMethod and Description
private Set<Deque<Archive>>
findPaths(Graph<Archive> graph, Archive target)

Returns all paths reachable from the given targets.

public Set<Deque<Archive>>
inverseDependences()

Finds all inverse transitive dependencies using the given requires set as the targets, if non-empty.

private Stream<Deque<Archive>>
makePaths(Deque<Archive> path)

Prepend end point to the path

public boolean
public Set<Archive>
targets()

Returns the target archives determined from the dependency analysis.

Inherited from com.sun.tools.jdeps.DepsAnalyzer:
archivesdependenceGraphdependencesincludemoduleGraphrun

Field Detail

endPointsback to summary
private final Map<Archive, Set<Archive>> endPoints
targetsback to summary
private final Set<Archive> targets

Constructor Detail

InverseDepsAnalyzerback to summary
public InverseDepsAnalyzer(JdepsConfiguration config, JdepsFilter filter, JdepsWriter writer, Analyzer.Type verbose, boolean apiOnly)

Method Detail

findPathsback to summary
private Set<Deque<Archive>> findPaths(Graph<Archive> graph, Archive target)

Returns all paths reachable from the given targets.

inverseDependencesback to summary
public Set<Deque<Archive>> inverseDependences() throws IOException

Finds all inverse transitive dependencies using the given requires set as the targets, if non-empty. If the given requires set is empty, use the archives depending the packages specified in -regex or -p options.

makePathsback to summary
private Stream<Deque<Archive>> makePaths(Deque<Archive> path)

Prepend end point to the path

runback to summary
public boolean run() throws IOException

Overrides com.sun.tools.jdeps.DepsAnalyzer.run.

targetsback to summary
public Set<Archive> targets()

Returns the target archives determined from the dependency analysis. Inverse transitive dependency will find all nodes that depend upon the returned set of archives directly and indirectly.