English 中文(简体)
• 如何创建习俗 j门?
原标题:How to create custom javadoc tags?
  • 时间:2010-04-20 18:15:32
  •  标签:
  • java
  • javadoc

我如何创造诸如@pre / @post 等习俗 j? 我发现了一些联系,对此作出解释,但我有点 with。 这些联系包括:

http://www.developer.com/java/other/article.php/3085991/Javadoc-Programing.html

rel=“noreferer” http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html

最佳回答

http://www.ohchr.org。

/**
 * @custom.mytag Hey ho...
 */

<>strong>java doc Options

-tag custom.mytag:a:"This is my Tag:"

www.un.org/Depts/DGACM/index_spanish.htm 这是我的格言:。

Hey ho...

问题回答

不应使用超文本来创建习俗标签,因为 j木可能改变其执行或数据列报方式,如果它们使用Markdown,将来, Java思想出口商也不会收集缺失的信息,你可能拥有空洞的“标签”。

首先使用你想要的东西:

/**
 * Comments and a {@link #methodLink} for this method.
 * 
 * @tt.wrapper {@link OtherClass}
 *
 */
public String extractName() {
    // method contents
}

通知说,习俗标签有@[prefix].[tagName],这是因为,单单(或另一种Eclipse plugin)可能以相同的名称释放它自己的标签,而贵方将仅仅凌驾于标准标签之上,因此,我们添加了一个先决条件,使其不太可能发生这种情况。

评论。

可能压倒未来标准标签的习俗标签:@wrapper 为了避免潜在的压倒性,在习俗标签上至少使用一个期限(......)。


Now you have to tell the Javadoc exporter about this custom tag, @tt.wrapper. Go to Project > Generate Javadoc.. in Eclipse (Indigo in my case).

在为头两个方言(使用“Next”更换屏幕)的屏幕配置了环境之后,你应当看到:

“Eclipse

You should notice that the "Extra Javadoc options.." text box has the value you must add for the Javadoc exporter to create the HTML equivalent of your tag.

就我们而言,这一选择是这样(如果你想要多个方面,把它们放在新的一线):

-tag tt.wrapper:a:"API Wrapper:"

现在,你出口 Java门(我也建议保留。 因此,你不必每次通过这一方言,你们的习俗将用黑体表示,并用下层的价值观。

P.S.,我尚未找到一种办法,来提高为习俗标签增加汽车保修的能力,但在Indigo看来不可能做到,这可能是今后释放的(不是说是Jono有)。

最好的办法不是最佳解决办法,而是可以读:

  /** <p><b>Pre:</b></p>  <Ul>True</Ul>
    * <p><b>Post:</b></p> <Ul>The x is pushed onto the top of the stack,
    *                       and the rest of the stack remains unchanged.</Ul>
    *
    * @param x              Indicates the current node
    */
   public void push(int x){
      ...
   }

找到适当的答案,希望能帮助!

如果你想要多,则如<代码>javadoc-tag pre-tag post-tag invariant,在要求提出指挥线论点时。 Don t use the html enuff





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签