4

I have a java document for a huge project. I need the classes and interfaces so I can get a project to start with. Are there any tools available which parse java document and generate java files so I can start writing the logic. It will be better if it can be done using command prompt.

Edit: I don't have code. Problem is this is a part of specification between user of the application and library writer. BTW thanks for answers. It seems like no such tool exists.

4
  • 3
    The question aside, what happened to code which was used to generate this Javadoc from? Commented Sep 5, 2011 at 3:11
  • Do you have code or javadoc documentation? At any rate, I'd suggest using an IDE like Eclipse rather than the command line. Commented Sep 5, 2011 at 3:13
  • Your question is not really clear - if you want to generate Source code from the JavaDoc output, then it is a duplicate of Is it possible do create Java classes from JavaDoc? (and the answer is "it looks like there is no such tool"). Anyway, why doesn't the one who generated the JavaDoc can give you the sources, too? Commented Sep 5, 2011 at 13:55
  • 1
    Are the Javadocs created by hand, and not from some source code? Strange. (Don't make any contracts with people who can give you JavaDoc but not the source code used to generate it. This just hinders the progress.) Commented Sep 5, 2011 at 18:36

1 Answer 1

2

Give this document a read:

http://www.javaworld.com/javaworld/jw-08-2000/jw-0818-javadoc.html

They write a code generator using javadoc and the doclet API.

Sign up to request clarification or add additional context in comments.

2 Comments

I don't think this is the right solution here - to use a Javadoc doclet, you already need some Java source code written, it will not run on a HTML file (if I didn't miss some recent development).
Agreed. You have to at least put in the minimum, like the interfaces first, with javadoc comments, then generate from there. Either way, the interface needs to be specified to have some information to generate the domain model from. I latched onto the "java document" wording used in the question. I have a generator that generates model, persistence, and ui sources from a json specification. I have not yet posted this to github. I will let you know when I have.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.