java-callgraph icon indicating copy to clipboard operation
java-callgraph copied to clipboard

Can I generate call graph from source code file(.java)

Open shiyy123 opened this issue 5 years ago • 4 comments
trafficstars

I have several java source code files and they may not be compiled to jar files because of the absent of dependency jar file. I can analyze the AST of it. I wonder if I can analyze the call graph with this tool?

shiyy123 avatar Dec 19 '19 09:12 shiyy123

I have the same question @gousiosg Is it possible?

masud-technope avatar Jun 23 '20 22:06 masud-technope

@masud-technope and @shiyy123 were you able to make a call graph without .jar files?

Hareem-E-Sahar avatar Apr 19 '22 20:04 Hareem-E-Sahar

I have the same question @gousiosg Is it possible?

JavaParser is used for generate AST for java. https://github.com/javaparser/javaparser

NasdaqGodzilla avatar May 13 '22 08:05 NasdaqGodzilla

The answer to the original question is no.

gousiosg avatar May 13 '22 13:05 gousiosg