类:
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME};#end
#parse("File Header.java")
/**
* ${NAME}
*
* @description: 接口处理
* @author: ${USER}
* @date: ${DATE} ${TIME}
*/
public class ${NAME} {
}
标签:return,NAME,idea,注释,params,result,设置,date,def From: https://www.cnblogs.com/jiuchenchen/p/17283851.html
方法:
**
*
*
$param$
* @return $return$
* @throws
* @author yan xu
* @date $date$ $time$
*/
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) ? '\\n' : '')};return result",methodParameters())
return : groovyScript("def result=''; def params=\"${_1}\".replaceAll('[\\\\[|\\\\]|\\\\s]', '').split('<').toList(); for(i = 0; i < params.size(); i++) {if(i!=0){result+='<';}; def p1=params[i].split(',').toList(); for(i2 = 0; i2 < p1.size(); i2++) { def p2=p1[i2].split('\\\\.').toList(); result+=p2[p2.size()-1]; if(i2!=p1.size()-1){result+=','} } ; }; return result", methodReturnType())
data : date()
time : time()