Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7732651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:47:04+00:00 2026-06-01T06:47:04+00:00

I have one java project in netBeans. There are some packages, and classes in

  • 0

I have one java project in netBeans. There are some packages, and classes in that packages. Can I export this structure to csv?

Example of csv:

myPackage1,MyClass1;

myPackage1,MyClass2;

I would be more pleased if I can put parameters in constructors or voids into that csv.

Thank you for ideas.

EDIT: If there are applications that are able to do reverse engineering to class diagram, there must be some easy way how to do it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T06:47:05+00:00Added an answer on June 1, 2026 at 6:47 am

    Just create a directory walker algorithm that goes through and finds .java or .class files and adds them to a list of lists (which would be your csv file). If you wanted to add in parameters then you could open the class file, use reflection to see if you can find any constructors and add them as you see fit.

    Here try this:

    (LOAD)
    Assume that your package is a directory (which it is). You will want to walk the
    directory looking for all nested .java or .class files and directories. You will
    want to either open the java file or load (using the ClassLoader) the class file.

    Now from here we will have to branch our algorithm.

    (.CLASS BRANCH)
    If it is a class file, then you already have all the methods you will need. Use
    the java.reflect pacakge you reflectively find the constuctors of the class. Jump
    to CREATE CSV.

    (.JAVA BRANCH)
    However, if it is a java file, then you will have a much harder time. You will
    need to create a parser (or find one) that will be able to search for your
    constructors and all the other data you want. Then just run all the java files you
    through your parser and jump to CREATE CSV

    (CREATE CSV)
    Now from here you just format the csv file. Take the current directory you are in,
    which coincidentally is your package name, paste that into the csv file along with
    all the class data you want from the .CLASS BRANCH and the .JAVA BRANCH

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a NetBeans project that relies on one specific Java class in another
I just learned (the hard way) that Java Component s can only have one
I have a Java Project in NetBeans 7.0. I want to add some image
I have a Java Desktop Application project created with NetBeans. The icon that is
I have a java application project in Netbeans. I have just one class. I
I'm used to the Java model where you can have one public class per
I have created one application in flex that is accessing the Java webservice using
I have a piece of code VERY similar to this one http://java.sun.com/developer/onlineTraining/JavaMail/contents.html#JavaMailFetching I the
I have a large CVS Repository in a Netbeans Java Project. I used to
I have a Java EE 6 Project in Netbeans 7 which runs fine when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.