Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

valb3r/ClassAnalyzer

Open more actions menu

Repository files navigation

ClassAnalyzer

Creates neo4j graph layout of classes and their relationships from a jar-application mapping

Sample usage:

Imagine you have microservices project which when compiled is composed of multiple jars. You want to analyze cross-application and other kinds of class relationships. Project is composed of subprojects A and B, which had compiled its jars into following folders:

  1. Project A:
  • /opt/projectA/lib1
  • /opt/projectA/lib2
  1. Project B:
  • /opt/projectB/libs

To analyze its relationships (in this project root folder) execute cmd:

./gradlew analyzeJars -PappMap="/opt/projectA/lib1,/opt/projectA/lib2=ProjectA;/opt/projectB/libs=ProjectB" \
-PclassInclude="com\..*|org\..*"  \ 
-PmethodInclude="com\..*|org\..*" \
-PdbFile="/home/user/project.graphb"

Script will generate class relationship data in /home/user/project.graphb

Helpful cypher queries: Are here

TODO: Reduce memory usage by streaming class processing (JavaClass) so they won't get stored in cache

About

Creates neo4j graph layout of classes and their relationships from a jar-application mapping

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.