https://github.com/interstar/javanal
Very quick and dirty analysis of Java class hierarchy / interfaces ... blasts them to graphviz dot format.
https://github.com/interstar/javanal
Last synced: about 1 month ago
JSON representation
Very quick and dirty analysis of Java class hierarchy / interfaces ... blasts them to graphviz dot format.
- Host: GitHub
- URL: https://github.com/interstar/javanal
- Owner: interstar
- License: gpl-2.0
- Created: 2015-03-10T02:57:57.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-10-29T20:33:18.000Z (over 9 years ago)
- Last Synced: 2023-04-18T11:16:36.178Z (about 3 years ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Javanal (Java Analysis)
I needed a very quick and dirty way to look at a few Java files and see the class hierarchy and the interfaces.
I didn't need much detail. I didn't need UML. I didn't need the arrows to go the right way or the right sort of boxes. (I didn't know graphviz / dot well enough to get that right, and didn't want to spend the time looking it up.)
I just wanted to grep the source code for all the *extends* and *implements* statements and to see what it looked like.
Here's how I use it
cat *pde | egrep 'extends|implements' | javanal.py > test.dot
xdot test.dot
Yeah, I'm looking at Processing files. That's why they have the .pde suffix and I'm not using an IDE that already has this built-in.
Also, my program is small ... only 30 or so classes and interfaces. Big enough to get lost in, but small enough to scroll around a single diagram. Anything larger and you probably want a different tool.