File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other Java Products and Servers and the fly likes Native methods generation with doclets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Native methods generation with doclets" Watch "Native methods generation with doclets" New topic
Author

Native methods generation with doclets

Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24166
    
  30

I once wrote a plain doclet that I've used in several projects to do "native method folding." Basically there's a "@C" tag and you can use it to embed C-language code into the Javadoc for a native method, so Java and native code can be developed together in one source file. The doclet generates the stubs, sticks in the method bodies, compiles everything and builds libraries. For native methods that are just little wrappers for a platform library, it works great.
Do you know of someone doing something similar with XDoclet? What's it like?
[ December 09, 2003: Message edited by: Ernest Friedman-Hill ]

[Jess in Action][AskingGoodQuestions]
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8898

Can I use Xdoclet to generate java docs?


Groovy
Mcgill Smith
Ranch Hand

Joined: Nov 11, 2003
Posts: 178
I think yes,atleast a javadoc like frame based html report of all classes.


Regards
Mcgill
norman richards
Author
Ranch Hand

Joined: Jul 21, 2003
Posts: 367
XDoclet can generate javadoc-like documentation for projects. It also has a couple of other documentation tasks. My of my favorite is the todo generator. You can mark classes/methods with @todo tags and the todo generator will generator a javadoc style todo report showing all your todo items, nicely sorted by class and package. It's also a good framework for generating your own custom documentation.
I don't know of anyone generating JNI code from within XDoclet. There's no reason that you couldn't do it though. I don't know many people doing JNI, but it might an interesting possible standard task.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Native methods generation with doclets
 
Similar Threads
native thread and native code ?
Sharing a directory in java?
NoClassDefFound when using custom Doclet
Write good comments and produce good javadoc
How to get method parameter names