本文主要是介绍Java Doc 文档注释,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
Java Doc 文档注释
顺序
- @author (classes and interfaces only, required)
- @version (classes and interfaces only, required. See footnote 1)
- @param (methods and constructors only)
- @return (methods only)
- @exception (@throws is a synonym added in Javadoc 1.2)
- @see
- @since
- @serial (or @serialField or @serialData)
- @deprecated (see How and When To Deprecate APIs)
Tag | Introduced in JDK/SDK |
---|---|
@author | 1.0 |
@deprecated | 1.0 |
@exception | 1.0 |
@param | 1.0 |
@return | 1.0 |
@see | 1.0 |
@serial | 1.2 |
@serialData | 1.2 |
@serialField | 1.2 |
@since | 1.1 |
@throws | 1.2 |
@version | 1.0 |
{@code} | 1.5 |
{@docRoot} | 1.3 |
{@inheritDoc} | 1.4 |
{@link} | 1.2 |
{@linkplain} | 1.4 |
{@literal} | 1.5 |
{@value} | 1.4 |
这篇关于Java Doc 文档注释的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!