qinsoon
qinsoon

Reputation: 1493

Any Java library to get call graph for a whole Java program and AST for each single file?

I am trying to do some style-check/translation work for Java programs.

First I would like a library (preferably in Java) so I can use it in my program. Second I expect it can do the following:

In limited time, I briefly examined several tools, such as eclipse, pmd, antlr, soot:

Correct me if I have misunderstanding for the above.

Upvotes: 1

Views: 682

Answers (1)

Konstantin Komissarchik
Konstantin Komissarchik

Reputation: 29139

It is should be possible to use Eclipse Java compiler and its data structures as a library without RCP, etc. You may want to explore how eclipsec.exe handles this feat. That's the Eclipse equivalent to javac.exe for cases where a command-line compilation is desired.

Upvotes: 1

Related Questions