我写的代码 老板让添加注释类的注释 ${file_name} 这个可以写出类名
/**
* <P>Copyright (C), 2006-2008, RealeSoft Tech. Co., Ltd.
* <P>FileName: ${file_name}
* @author 张金
* <P>CreateTime: ${date} ${time}
* <P>Description:
*/ 方法的注释 ${enclosing_method} 这个 可以写出方法名 /**
* <P>Function: ${enclosing_method}
* <P>Description: // 函数功能、性能等的描述
* <P>Calls: // 被本函数调用的函数清单
* <P>Called By: // 调用本函数的函数清单
* <P>Table Accessed: // 被访问的表(此项仅对于牵扯到数据库操作的程序)
* <P>Table Updated: // 被修改的表(此项仅对于牵扯到数据库操作的程序)
* @author: 张金
* @CreateTime: ${date} ${time}
* @param: // 输入参数说明,包括每个参数的作用、取值说明及参数间关系。
* @Return: // 函数返回值的说明
*/
我现在还要给字段加注释 就是String abc = "haha"; 注释中怎么写能获取字段abc的名字??? 谢谢了
/**
* <P>Copyright (C), 2006-2008, RealeSoft Tech. Co., Ltd.
* <P>FileName: ${file_name}
* @author 张金
* <P>CreateTime: ${date} ${time}
* <P>Description:
*/ 方法的注释 ${enclosing_method} 这个 可以写出方法名 /**
* <P>Function: ${enclosing_method}
* <P>Description: // 函数功能、性能等的描述
* <P>Calls: // 被本函数调用的函数清单
* <P>Called By: // 调用本函数的函数清单
* <P>Table Accessed: // 被访问的表(此项仅对于牵扯到数据库操作的程序)
* <P>Table Updated: // 被修改的表(此项仅对于牵扯到数据库操作的程序)
* @author: 张金
* @CreateTime: ${date} ${time}
* @param: // 输入参数说明,包括每个参数的作用、取值说明及参数间关系。
* @Return: // 函数返回值的说明
*/
我现在还要给字段加注释 就是String abc = "haha"; 注释中怎么写能获取字段abc的名字??? 谢谢了
${field_type} 属性类型选中你要注释的属性,在Eclispe里面:alt+shift+J。