如何使用Javadoc阻止文档注释中的注释或标签

时间:2019-10-09 11:13:02

标签: java html image annotations javadoc

如何阻止img标签或Java文档中的任何行。当我将光标放在班级上时,它会显示多次。作为功​​能参考,我在文档注释(文档注释)中同时使用了两个img标签。谁能告诉我如何通过阻止<img src="../../../../resources/images/java-basic-ASCII Table.png" />行来仅显示一个img标签。

package com.java.escapesequence;

/**
 * 
 * @author udaykiranp
 * 
 * </br>
 *  <img src="../../../../resources/images/java-basic-ASCII Table.png" />
 * 
 *  <img src="{@docRoot}/../resources/images/java-basic-ASCII Table.png" />
 */
public class CharSequence {
    public static void main(String[] args) {
        System.out.println((char) 33);
        System.out.println((char)0x2B);//hexa decimal start with 0x
        System.out.println((char)056);//octa decimal start with 0
    }
}

将光标放在课程上的图像:

Img tag blocking in Java doc

1 个答案:

答案 0 :(得分:0)

如果我们要使用两个标签,并且需要阻止其他标签/注释以供javadoc中的功能参考,则需要使用@strong链接使用另请参见

package com.java.escapesequence;

/**
 * 
 * @author udaykiranp
 * 
 * </br>
 *
 *  <img src="{@docRoot}/../resources/images/java-basic-ASCII Table.png" />
 *  @see <a href="../../../../resources/images/java-basic-ASCII Table.png">java-basic-ASCII Table.png</a>
 */
public class CharSequence {
    public static void main(String[] args) {
        System.out.println((char) 33);
        System.out.println((char)0x2B);//hexa decimal start with 0x
        System.out.println((char)056);//octa decimal start with 0
    }
}

Java文档: java-basic-ASCII Table.png