当前位置:网站首页>Idea创建方法时,使用注解提示方法参数(param)、返回值(return)、方法作用(Description)
Idea创建方法时,使用注解提示方法参数(param)、返回值(return)、方法作用(Description)
2022-06-22 05:04:00 【m0_51703800】
一、

二、

三、

四、

五、有两种呈现样式,自己选择
1)样式一实现效果:

**
* @Description: $description$
* @Param: $params$
* @return: $returns$
* @Author: Zhao
* @Date:$date$ $time$
*/
2)
3)
4)
六、样式二
1)样式二实现效果:

**
$param$
* @return $return$
* @description
*/

param对应的代码
groovyScript("def result=''; def params=\"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList(); for(i = 0; i < params.size(); i++) {result+=' * @param ' + params[i] + ' ' + ((i < params.size() - 1) ? '\\r\\n' : '')}; return result", methodParameters())
return对应的代码
groovyScript("def result=\"${_1}\"; if(result == \"void\"){return \"void\";}else{return \"\"+result+\"\";}", methodReturnType())
七、
使用时直接在方法定义上,输入/*,点击tab键。
(*为之前填的)
效果如图:
边栏推荐
- Tupu software 2D and 2.5D case collection | smart Park, data center, SMT production line
- Detailed explanation of deep learning technology for building an image search engine that can find similar images
- Software architecture and pattern: structure, component and relationship
- numpy庫常用知識整理
- flink部署模式(一)- standalone和application
- Data backup and recovery
- C语言概念知识扫盲(不定期补充更新)
- 守护进程的流程
- ORA-15063: ASM discovered an insufficient number of disks for diskgroup 恢複---惜分飛
- Gavin's perception of transformer live class - NLU and policies data decryption, source code analysis and practice of insurance BOT in the insurance industry of Rasa dialogue robot project (57)
猜你喜欢

In 2022, the super intern plans to make a breakthrough in the offer of it famous enterprises, and the nine high salary skills help the dream of famous enterprises

10道不得不会的 Redis 面试题

获取DPI函数返回值永远是96 | 获取DPI函数返回值不正确 | GetDpiForMonitor/GetDeviceCaps返回值不正确的原因

Software architecture and pattern: structure, component and relationship

Web design and production final assignment report - minority music website

6. Local - custom filter factory

使用keytool从.jks文件获取SSL certificate

JUC - thread interrupt and thread waiting and wakeup (locksupport)

Arrangement of soft test subjects in the second half of 2022

当程序员编程时被打扰 | 每日趣闻
随机推荐
The application of RPC technology and its framework sekiro in crawler reverse, encrypting data is a shuttle!
下拉刷新,上推加载(简单好用,终于会了)
[scientific research notes] about using the downsampling multiple of openslide cut
zipimport.ZipImportError:
NLP 的 不可能三角?
Flynk deployment mode summary
NFC authentication makes the ultimate KYC experience
守护进程的流程
CS 611 Game
Virtual address space
【故障诊断】stitch.py脚本失效
[sdx12] use qcmap_ CLI startup WiFi operation instructions
Web design and production final assignment report -- animator Hayao Miyazaki
Importbeandefinitionregistrar registers beans with the container
Web page design and production final assignment report - College Students' online flower shop
[fault diagnosis] the picture cut code cannot be cut out, slide read_ Region does not run, but the program does not report an error
A domestic developer opened the "programmer's Guide to cooking" and became popular!
获取DPI函数返回值永远是96 | 获取DPI函数返回值不正确 | GetDpiForMonitor/GetDeviceCaps返回值不正确的原因
[chrome] Google tips Google browser comes with scrolling screenshot (full screen shot)
Pull down refresh, push up load (easy to use, finally)