RE: Reading Java source file / compare two Java source files..

"Tim Eck" <[email protected]>
Newsgroups gmane.comp.java.objectweb.asm
Message-ID <059301cb63eb$72b351d0$5819f570$@com>
ASM doesn't read / parse java source files. ASM is for manipulated
compiled java .class bytecode. 

For the task you describe it might be possible to use ASM but if you
really do need to deal with source code you need to look for another tool.
I have no experience with it, but I think eclipse exposes its AST
(abstract syntax tree) pretty easily and might be of use here. I'm sure
there are other ways to go about it too. 

-tim


> -----Original Message-----
> From: [email protected] [mailto:[email protected]]
> Sent: Monday, October 04, 2010 8:36 AM
> To: [email protected]
> Subject: [asm] Reading Java source file / compare two Java source
> files..
> 
> hi all,
> 
> 1. I need to read all methods, member variables from java files.
> 2. Also need to do comparison between two java source files for missing
> methods or member variable or annotation.
> 
> Is is possible using ASM? Can somebody provide me the sample for the
> same to starts with?
> 
> Regards,
> Naman
message-footer.txt (text/plain, 238 B)
-- 
You receive this message as a subscriber of the [email protected] mailing list.
To unsubscribe: mailto:[email protected]
For general help: mailto:[email protected]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.