当前位置:网站首页>idea 方法注释:自定义修改method的return和params,void不显示
idea 方法注释:自定义修改method的return和params,void不显示
2022-08-11 08:30:00 【hhkun0120】
/** 演示有参数返回void
* <p>
*
* </p>
*
* @param a a
* @param b b
* @author hk2018
* @since 2020/5/21
*/
public void x(int a, String b){
System.out.println("dd");
}
/** 演示无参数返回void
* <p>
*
* </p>
*
* @author hk2018
* @since 2020/5/21
*/
public void x1(){
System.out.println("dd");
}**
* <p>
*
* </p>
* $param$$returns$
* @author hk2018
* @since $date$
*/
下面为脚本
groovyScript("def result=' \\n'; def params=\"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList(); for(i = 0; i < params.size(); i++) {if(params[i] == '') return ''; result+=' * @param ' + params[i] + ' ' + params[i] + ((i < params.size() - 1) ? ' \\n' : '')}; return result", methodParameters()) returns脚本
groovyScript("if(\"${_1}\" == 'void') {return ;} else { def returnType = \"${_1}\"; def result = ' @return: ' + returnType; return result;}", methodReturnType());
边栏推荐
- The growth path of a 40W test engineer with an annual salary, which stage are you in?
- Filesystem Hierarchy Standard
- C语言操作符详解
- Machine Learning Summary (2)
- nodejs微服务中跨域,请求,接口,参数拦截等功能
- IDEA的初步使用
- For the first time, I suspect that there is a bug in selenium4 because the iframe element is not found?
- Kali penetration test environment set up
- Interview questions about Android Service
- ASP.NET Core 6框架揭秘实例演示[32]:错误页面的集中呈现方式
猜你喜欢

笔试题大疆08.07

Distributed Lock-Redission - Cache Consistency Solution

2022-08-10:为了给刷题的同学一些奖励,力扣团队引入了一个弹簧游戏机, 游戏机由 N 个特殊弹簧排成一排,编号为 0 到 N-1, 初始有一个小球在编号 0 的弹簧处。若小球在编号为 i 的弹

js将table生成excel文件并去除表格中的多余tr(js去除表格中空的tr标签)

Mysql JSON对象和JSON数组查询

C语言操作符详解

通过记账,了解当月收支情况
3.1-Classification-probabilistic generative model

软件测试常用工具的用途及优缺点比较(详细)

用 Antlr 重构脚本解释器
随机推荐
VoLTE基础自学系列 | 3GPP规范解读之Rx接口(上集)
Interview questions about Android Service
欧拉函数(用欧拉筛法求欧拉函数)
基于C#通过PLCSIM ADV仿真软件实现与西门子1500PLC的S7通信方法演示
欢迎加入sumarua网络安全交流社区
租房小程序
FPGA 20个例程篇:11.USB2.0接收并回复CRC16位校验
Creo9.0 特征的成组
Unity3D——自定义类的Inspector面板的修改
进阶-指针
Openlayers 聚合图、权重聚合图以及聚合图点击事件
9、Neural Sparse Voxel Fields
excel 透视表 值显示内容 不显示计数
The softmax function is used in TF;
Notable NFT development trends in 2022
兼容并蓄广纳百川,Go lang1.18入门精炼教程,由白丁入鸿儒,go lang复合容器类型的声明和使用EP04
Active users of mobile banking grew rapidly in June, hitting a half-year high
C Primer Plus(6) 中文版 第1章 初识C语言 1.1 C语言的起源 1.2 选择C语言的理由 1.3 C语言的应用范围
为什么会没有内存了呢
麒麟V10系统打包Qt免安装包程序