赞
踩
**
* $description$
* $params$ $retrun$
* @author $author$
* @since $date$
*/
groovyScript("def result=''; def params=\"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList(); for(i = 0; i < params.size(); i++) {if(params[i] == '') return result;if(i==0) result += '\\n'; result+=' * @param ' + params[i] + ((i < params.size() - 1) ? '\\n' : '')}; return result", methodParameters())
groovyScript("if(\"${_1}\" == 'void') {return '';} else { def returnType=''; def params=\"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split('<').toList(); for(i = 0; i < params.size(); i++) { if(i!=0){returnType+='<';}; def p1=params[i].split(',').toList(); for(i2 = 0; i2 < p1.size(); i2++) { def p2=p1[i2].split('\\\\.').toList(); returnType+=p2[p2.size()-1]; if(i2!=p1.size()-1){returnType+=','} }; }; def result = '\\n * @return {@link ' + returnType + '}'; }", methodReturnType());
在方法上输入 /* 然后按Tab键
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。