注释 常用标签

Java Comment Standard:
  Function
  <P>
  Description
  <p>
  Author
  @see
  @param
  @return
  @throws
  
 可以用 html 标签
 
 符号:
  符号 #:   表示点  class#method = class.method   ::  或代表 this   #.method = this.method
  
 tags:
  @see 连接到一个具体类中的方法
   fullClassName#MethodName(fullClassName)
   fullClassName#Member
   Class.Method(Type)
   
  @since 来自于
   since 和 version 同时出现时, since 在 version 前。表示以前的版本,
   
  @version
   版本
   
  @deprecated  不赞成的方法,方法名将会有一个斜线
   可在方法注释处添加
   在方法名上一行声明,表示该方法 过时
   
  @exception == @throws
  
  {@code content} content将被加粗
  
  {@link class} 链接到实际的类
  
  {@linkplain java.nio.charset.Charset charset}   链接:显示别名 charset 而不是类的全限定名
   
 lables:
  <p>    换行
  <pre></pre>  段落
  <code></code> 标签中的文字将被 加粗 等同于 {@code content}
  <a href="Character.html#unicode">Unicode code units</a>  添加连接
  <tt></tt>       true false 要包含在此标签中
  

{@inheritDoc}  继承父类的注释

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值