javadoc

Why does Javadoc generate non-compliant XHTML?

I just pasted some generated javadoc into an eclipse project, to discover none of the HTML is compliant. There is even cases of closing tags that were never opened. Is there some way to fix this? Maybe a "be compliant" option... ...

Eclipse: Attach source/javadoc to a library via a local property

I have a third-party library in my SVN repository and I'd like to associate source/javadoc with it locally in Eclipse. I.e., there should be some local setting (for example, an entry in the local.properties file) that associates the source/javadoc with the JAR file, but which doesn't introduce local dependencies into the repository via ....

Get source jar files attached to Eclipse for Maven-managed dependencies

I am using Maven (and the Maven Eclipse Integration) to manage the dependencies for my Java projects in Eclipse. The automatic download feature for JAR files from the Maven repositories is a real time saver. Unfortunately, it does not include API documentation and source code. How can I set up Maven to automatically also get the source ...

Accessing Java annotations from a Taglet

I'm working on a project where we have some custom Taglet classes that are used to modify the Javadocs (such as linking to source code in SVN, adding citations) and so on.One of the things we'd like to do is to be able to get the annotations that are used in the source and manipulate the information from them. It seems that the Taglet ...

Generating code stub from class and javadoc

Is anyone familiar with a tool that generates code stubs with meaningful names from class and javadoc? The real question should've been "I have classes without debug information and a matching javadoc, but my IntelliJ IDEA 8.0.1 (please, no IDE wars) doesn't take into account the javadoc and shows me "void setLocation(Object object, Str...

What are these tags @ivar @param and @type in python docstring?

The ampoule project uses some tags in docstring, like the javadoc ones. For example from pool.py line 86: def start(self, ampChild=None): """ Starts the ProcessPool with a given child protocol. @param ampChild: a L{ampoule.child.AMPChild} subclass. @type ampChild: L{ampoule.child.AMPChild} subclass """ What are ...

javafx and javadoc

I have generally been underwhelmed by JavaFX, but at least their API documentation is a big improvement over javadoc which has not gone through any substantial improvement in a decade. Is it possible to use JavaFX technology to generate more attractive javadoc for regular Java files? ...

Technical tips for writing great JavaDoc

What are your technical tips for writing great JavaDoc? I'm looking for things beyond the standard "Explain the function well" content-based tips. We all know that! (right?) I'm interested in things like these: What tags should definitely be a part of one's JavaDoc, and which ones are not worth remembering? When do you use @see vs. ...

Are Apache Ant Javadocs Included in the Eclipse Plugin?

I was trying to add Ant libraries to a project in eclipse, and I used the ones that were part of eclipse's plugins folder. When I tried to associate them with Javadocs, I couldn't locate them in the plugin folder. I searched for them online, and I found this page, in which they say the docs are not provided online because they are part o...

Do you use design marker interfaces to document your Java code?

I just stumbled upon this article by Bruce Wallace: Design Markers - Explicit Programming for the rest of us Bruce describes a way to use interfaces to explicitly document things about your classes that can't otherwise be enforced in code. Bruce's example: Immutable classes Suppose you have a class that should be immutable. There is...

Generating documentation for JSP files

I would like to automatically generate documentation for jsp files, similarly to javadoc with java files. I would also to include the documentation generation in an ant build. Do you know any practical tool or method to document jsp files? ...

C/C++ Header file documentation

Hi! What do you think is best practice when creating public header files in C++? Should header files contain no, brief or massive documentation? I've seen everything from almost no documentation (relying on some external documentation) to large specifications of invariants, valid parameters, return values etc. I'm not sure exactly wha...

How can I filter some attributes/text while generating javadocs?

I want to have custom attributes in javadoc like "@owner" "@since-version" which I do not want to be inlcuded in javadocs. is there a way around this? ...

Javadoc only one class in a package using Ant

I am using apache ant to generate javadoc for my project. I have a number of classes in one of my packages and I only want to show one. How do I do this? Here is my current code. <javadoc sourcepath="jig-engine/src" destdir="${target.path}/docs/javadoc/" packagenames="jig.engine.util.Vector2D" > </javadoc> (simplified for ...

How can I include more than one path on a custom docletpath?

I have a javadoc doclet that requires an additional jar file to be on the doclet's classpath. To run the doclet from the command line, I do something like this: java com.sun.tools.javadoc.Main -doclet myPackage.myDoclet -docletpath /path/to/doclet/classes When I run that, it finds the doclet on the path and executes it, but the docle...

Eclipse: How can I attach JavaDoc to multiple JAR files?

I am using Eclipse 3.4.1. I have an external library that consists of a bunch of JAR files, and some HTML JavaDoc. I know that I can attach the HTML JavaDoc to individual JARs by going to their Properties page, JavaDoc location, and setting it there. But it would be a pain to do this for each individual JAR. Is it possible to do them...

Eclipse: Can a single JAR have more than one JavaDoc location attached?

I am using Eclipse 3.4.1. While this may sound strange, I want to be able to attach more than one JavaDoc location to the same JAR in an Eclipse project. This particular JAR has classes from two sets of JavaDoc. The reason for this is that it is an OSGi bundle, which consists of a third-party JAR, and some other third-party code on to...

Multiple line code example in Javadoc comment

I have a small code example I want to include in the Javadoc comment for a method. /** * -- ex: looping through List of Map objects -- * <code> * for (int i = 0; i < list.size(); i++) { * Map map = (Map)list.get(i); * System.out.println(map.get("wordID")); * System.out.println(map.get("word")); * } * </code> * ...

Measuring Documentation Coverage with Javadoc and Ant

I am involved in a project in which public API documentation is a clear deliverable. In order to ensure that the release meets this requirement, I'd like to ensure that the the release target in my Ant build file fails if documentation coverage is too low. As a minimum, each identifier with public or protected access should have approp...

How to get JavaDoc for SWT and JFace in Eclipse?

I'm a newbie to Eclipse and can't figure out how to get the JavaDocs for SWT and JFace to show up when I am editing. How do I do this? Thanks! ...