/** * <Description> <br> * @author $user$<br> * @version 1.0<br> * @taskId <br> * @CreateDate $date$ <br> */
* * Description: <br> * @author $user$ <br> * @taskId <br> $params$ $returns$ */
沒錯,開頭沒有'/',這樣在方法上方使用時只須要敲'/**'按tab鍵便可code
params groovyScript("if(\"${_1}\".length() == 2) {return '';} else {def result=''; def params=\"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split(',').toList();for(i = 0; i < params.size(); i++) {if(i<(params.size()-1)){result+=' * @param ' + params[i] + ' <br> ' + '\\n'}else{result+=' * @param ' + params[i] + ' <br> '}}; return result;}", methodParameters()); returns groovyScript("def returnType = \"${_1}\"; if(returnType == 'void') {return '';}else{def result = ' * @return ' + returnType + ' <br> '; return result;}", methodReturnType());