javadoc

Use of @see or @link in doxygen

穿精又带淫゛_ 提交于 2019-12-05 11:25:38
I documented with Javadoc before and used the tags @see , @link or {@see foo} and {link foo} in my description to link to other classes. Now I tried doxygen and it seems that these tags are incompatible. If I run doxygen the complete tags are simply be interpreted as normal text. Are there any alternative tags which I can use to get the same features? Chris To link to other classes you should use the ref command. You can use the \link command, but you must end your link text with the \endlink command, which I suspect is your problem (although without example documentation I can't be sure).

Where can you download the source for the standard JavaDoc doclet for current releases (1.5 or 1.6)

非 Y 不嫁゛ 提交于 2019-12-05 10:40:55
I'm interested in changing the standard JavaDoc Doclet to generate some additional documentation before the normal output of tags. Looking at the code (using a decompiler) I can see that my only real option is to download the source for HtmlDoclet and friends and make a few modifications ... but the only source that's available is for the 1.3 version of the code, which doesn't understand recent updates such as annotations and so forth. FrVaBe Here you will find a hint to The Source for the Standard Doclet and a note that The source files are located in the directory src/share/classes/com/sun

How to Document Java Side Effects

主宰稳场 提交于 2019-12-05 10:32:47
Is there a standard or best practice for writing javadocs for Java/JVM language methods which contain side effects? I have a void method defined, which modifies one of the method parameters, but do not know how to document the actual return value (since there is no actual return). /** * @param obj - reference object * @return obj - obj.name is changed to 'hello' //TODO figure out javadoc annotation */ void methodName(Object obj) { if (obj != null) { obj.name = "hello"; } } It just seems that there is no good way to tag the side effects on the object, since the @param and @return annotations do

Adding documentation for generated R.java files in Android Studio

允我心安 提交于 2019-12-05 10:32:37
In my Gradle script, I have created a Javadoc task that generates documentation for my java files and for the auto-generated R.java, so that it creates links for my XML resources. I am using Doclava and even the @attr works as expected when referencing XML resources. However, when I add comments in my original XML files in order to document them, they are lost in the process of generating the R.java file and they are replaced by the default documentation. Is there a way to document my XML resources and make the documentation appear in the resulting javadoc? 来源: https://stackoverflow.com

Why does @Documented annotation have runtime retention?

跟風遠走 提交于 2019-12-05 09:22:22
As I know, @Documented annotation is used only by javadoc generator to generate javadocs from sources. So retention type should be SOURCE , but it's RUNTIME . Why? @Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.ANNOTATION_TYPE) public @interface Documented { } IMO that does not explain why @Documented needs runtime retention Yes, it does. Lets say I ship a jar file without the sources. A user can build a proper javadoc using only information from classfiles the the reason that classfile have proper annotations is becase they are RetentionPolicy.RUNTIME. 来源: https:/

sourceFileExcludes tag in the maven-javadoc-plugin

会有一股神秘感。 提交于 2019-12-05 09:13:24
Does anyone has an example how to use the sourceFileExcludes element in the Maven Javadoc Plugin ? I've tried the following, but cannot get it to work: <sourceFileExcludes> <sourceFileExclude>**/internal/*</sourceFileExclude> <sourceFileExclude>**/Model/*</sourceFileExclude> </sourceFileExcludes> Have you specified excludePackageNames , cause based on the docs you should use them instead of what you've written. <excludePackageNames>*.internal:org.acme.exclude1.*:org.acme.exclude2</excludePackageNames> which seemed to be more approriate. It might just not be working at the moment. There is bug

In javadoc, what is the difference between the tags @throws and @exception?

爷,独闯天下 提交于 2019-12-05 08:34:06
问题 Take the following implementation of a array-based stack of chars for example: public char peek() throws Underflow { if (!isEmpty()) { return stack[pos]; } else { throw new Underflow("Peeking at an empty stack."); } } Back when I'm using just a text editor I always use the @exception tag, but now my IDE (Netbeans) used @throws when generating the javadoc. So my question is, what is the difference between the two and when should one be preferred over another (using the above code for example)?

CODE Documentation creation tool for Delphi [duplicate]

元气小坏坏 提交于 2019-12-05 07:28:03
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Code documentation for delphi similar to javadoc or c# xml doc I want to start documenting a very large Delphi application, which currently has no documentation whatsoever. My coworker suggested a javadoc type documentation style because we can then run an automated program to create nice documentation which is searchable and looks pretty. (* Description of the function @param S some string @param Index the

Javadoc when extending generic class with non-generic class

不羁岁月 提交于 2019-12-05 06:21:22
Suppose I have two classes: abstract class GenericA<E> { public void go(E e) {...} } public class IntegerA extends GenericA<Integer> { } Note that GenericA is package-private and generic, and IntegerA is public and not generic. Now, when I generate the public Javadoc (using Eclipse), I see the following in the IntegerA methods section: public void go(E e) The problem is that a reader of that Javadoc has no idea what E is; i.e., that E represents Integer . I would rather have the Javadoc say public void go(Integer e) Is there a way to make Javadoc behave the way I want it to? Only way I know is

JavaDoc @see for MyClass constructor returning a warning “reference not found”

99封情书 提交于 2019-12-05 06:18:12
I am trying to create javadoc for my client library. In MyOtherClass, I put the the below @see , and get warnings. MyOtherClass and MyClass both are in different packages, in the same project. @see MyClass#Constructor(Type1 param1, Type2 param2) warning - Tag @see: reference not found: MyClass#Constructor(Type1 param1, Type2 param2) Then I tried @see MyClass#MyClass(Type1 param1, Type2 param2) warning - Tag @see: reference not found: MyClass#MyClass(Type1 param1, Type2 param2) Also tried @see #MyClass(Type1 param1, Type2 param2) warning - Tag @see: reference not found: MyOtherClass#MyClass