Looking for a standalone Java source code parser
dmitry.samersoff at oracle.com
Mon Oct 20 07:39:56 UTC 2014
It might be easier to parse compiled class file (using e.g. ASM library)
than deal with a source code.
On 2014-10-20 11:22, Aaron Lewis wrote:
> Hi Ben,
> Thanks for the quick reply.
> I'm trying to do static analysis (e.g API calls, function parameters)
> on JSP files.
> I will do what tomcat does and convert the JSP file into a JAVA file
> first, then do the analysis on JAVA code.
> Basically I want to know what java class::method is called and what
> parameters are passed in, if possible.
> So, is there any existing tool I can use ?
> On Mon, Oct 20, 2014 at 3:13 PM, Ben Evans
> <benjamin.john.evans at gmail.com> wrote:
>> There is certainly a BNF grammar for Java 5 out there somewhere. A tool like
>> ANTLR should be able to produce a parser for you from that.
>> What's the specific use case?
>> On 20 Oct 2014 15:10, "Aaron Lewis" <the.warl0ck.1989 at gmail.com> wrote:
>>> I'm looking for a parser that parses Java source code, is there any
>>> recommend ones?
>>> Best Regards,
>>> Aaron Lewis - PGP: 0x13714D33 - http://pgp.mit.edu/
>>> Finger Print: 9F67 391B B770 8FF6 99DC D92D 87F6 2602 1371 4D33
Oracle Java development team, Saint Petersburg, Russia
* I would love to change the world, but they won't give me the sources.
More information about the discuss