I'm trying to code some analysis on our complex multi-module projects to simplify them. Maven's dependency analyzer can list the transitive undeclared dependencies. I'm aware that IDEA can generate a graph, but that's not what I'm after. The code base is large and I want to do custom filters and actually want to learn more on how things work.
My thinking is that since javap -c
gives a nice enough output for a single .class file to see which classes are referenced, I was thinking what is the proper way to invoke similar functionality programatically? I looked at libraries like Javaassist, BCEL, Asm but was not sure if they are the proper tools to use so any advice and direction would be nice. I'm only after the referenced classes only.