Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Native methods generation with doclets

 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can I use Xdoclet to generate java docs?
 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think yes,atleast a javadoc like frame based html report of all classes.
 
Author
Posts: 367
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Tomorrow is the first day of the new metric calendar. Comfort me tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic