• Post Reply Bookmark Topic Watch Topic
  • New Topic

Extract information from java project  RSS feed

 
Maria Stella
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I should do, for my academic project, draw from a java project some information, for example, the class name and the relative method, and for each class even the package name where the class is. The information found must be saved an XML files, can you help me?
Thanks
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XML or UML? There are plugins for IDEs like Eclipse which will create UML diagrams from your code.
 
Liutauras Vilda
Sheriff
Posts: 4917
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maria Stella wrote:Hi,
I should do, for my academic project, draw from a java project some information, for example, the class name and the relative method, and for each class even the package name where the class is. The information found must be saved an XML files, can you help me?
Thanks

Hi,

1. would you like to paste exact requirements of your project?
2. also what you have done so far and where you stuck?

So the guys could help you out to move on towards the goal.
 
Maria Stella
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Campbell Ritchie,
I have need create one file that contains all information not a diagram. Thanks

Hi Liutauras Vilda,
I don't have started my project why I don't know how to do. I saw a javaparser and an project JavaToXml but don't find the documentation, can you help me?
Thanks
 
Liutauras Vilda
Sheriff
Posts: 4917
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well Maria,

We don't know how to do as well, until we don't know requirements.
At the moment your stated requirements are very abstract.

Not really clear what kind of tools you're required/allowed to use, not clear what actually you need to do.
 
Maria Stella
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your answer,
I need to use the javaparser for extract the information from file.java, I need to write this information in the txt output file, for example the name of method and so on. can you help me find the documentation for javaparser? or examples?
Thanks
 
Liutauras Vilda
Sheriff
Posts: 4917
334
BSD
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lots of useful information you can find on Oracle JAVA API website: http://docs.oracle.com/javase/7/docs/api/
Look for a Scanner, FileReader, FileWriter, BufferedReader, BufferedWriter.
Maybe some of them will suit you.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!