方法模板
*
* $end$
* $param$ $return$
* @author 敖癸
* @date $date$ - $time$
*/
方法入参脚本
groovyScript("if(\"${_1}\" == '[]') return;else {def result = '';def params=\"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList();for(i = 0; i < params.size(); i++) { result += '\\n * @param ' + params[i]}; return result;}", methodParameters());
返回参数脚本
groovyScript("if(\"${_1}\" == 'void') return;else {def returnType = \"${_1}\"; def result = '\\n * @return ' + returnType; return result;}", methodReturnType());
![](https://img.haomeiwen.com/i2183949/691f111b750507f0.png)
网友评论