Generating an object graph for a single class
已回答
I have a large legacy code base I want to analyze. I'd like to generate the object graph for a specific class. This class has multiple dependencies which in turn also have dependencies. How can I generate this graph?
I looked into the UML diagram feature but it looks like it only goes down one level, plus it includes features which aren't necessary for me such as showing all fields. Is there a way to do this?
请先登录再写评论。
Is it Java?
You can generate Java class diagrams and configure them (Settings | Tools | Diagrams) according to your needs:
https://www.jetbrains.com/help/idea/diagrams.html
You can also use 3rd party plugins such as Sketch it!
Can you explain how to draw a diagram of a class and all its dependencies? I don't mean supertypes, I mean all the types of fields it has and all of their dependencies. I wasn't able to find an option like that.
There is no tool for making diagrams, but you could see dependencies of the project as a tree via dependency viewer:
https://www.jetbrains.com/help/idea/dependency-viewer.html