Small experimental Java library to analyze dependencies between classes and generate a dependency graph
Switch branches/tags
Clone or download
Pull request Compare This branch is even with janbeernink:develop.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src
.gitignore
.travis.yml
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

Class Dependency Scanner Build Status

This is a small experimental Java library to analyze the dependencies between classes and generate a dependency graph.

Usage

The following example shows how to generate a dependency graph for class String:

new ClassDependencyScanner().buildDependencyGraph(String.class);

This will return a DependencyGraphNode that represents the String class. This node can be used as a starting point to iterate over the entire graph:

for (DependencyGraphNode dependencyGraphNode: startingNode) {
    // Do something with each node
}

The iterator returned by the iterator() method on DependencyGraphNode is guaranteed to visit each node exactly once, even when there are cycles in the graph.

Known issues

  • Annotations are not yet fully processed.

License

This project is licensed under the Apache Software License, Version 2.0, please see the LICENSE file for more details.