<template name="@" value="{@literal $char$}" description="Javadoc中插入 {@literal } 列表" toReformat="true" toShortenFQNames="true">
<variable name="char" expression="" defaultValue=""@"" alwaysStopAt="true" />
<context>
<option name="JAVA_COMMENT" value="true" />
</context>
</template>
<template name="ae" value="assertEquals("$exp%ITEM_CONTENT%amp;quot;, $run$);" description="插入 assertEquals()" toReformat="true" toShortenFQNames="true">
<variable name="exp" expression="" defaultValue=""预期值"" alwaysStopAt="true" />
<variable name="run" expression="" defaultValue=""运行值"" alwaysStopAt="true" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="br" value="<br/>" description="Javadoc中插入 <br/>" toReformat="true" toShortenFQNames="true">
<context>
<option name="JAVA_COMMENT" value="true" />
</context>
</template>
<template name="cc" value="/** * $class%ITEM_CONTENT%amp;#10; * <p> * $desc%ITEM_CONTENT%amp;#10; * * @author $author%ITEM_CONTENT%amp;#10; * @version 1.0 * @since $date%ITEM_CONTENT%amp;#10; */" description="类注释" toReformat="true" toShortenFQNames="true">
<variable name="class" expression="className()" defaultValue=""类简要说明"" alwaysStopAt="true" />
<variable name="desc" expression="" defaultValue=""类详细说明"" alwaysStopAt="true" />
<variable name="author" expression="user()" defaultValue="" alwaysStopAt="true" />
<variable name="date" expression="date()" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_COMMENT" value="true" />
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
<template name="code" value="<pre>{@code * $END%ITEM_CONTENT%amp;#10;* }</pre>" description="Javadoc中插入 code 代码片段" toReformat="true" toShortenFQNames="true">
<context>
<option name="JAVA_COMMENT" value="true" />
</context>
</template>
<template name="for" value="for ($type$ $var$: $list$) { $END%ITEM_CONTENT%amp;#10;}" description="插入for循环" toReformat="true" toShortenFQNames="true">
<variable name="type" expression="" defaultValue=""类型"" alwaysStopAt="true" />
<variable name="var" expression="" defaultValue=""item"" alwaysStopAt="true" />
<variable name="list" expression="" defaultValue=""集合对象"" alwaysStopAt="true" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="gwt" value="// @given $g%ITEM_CONTENT%amp;#10;// @when $w%ITEM_CONTENT%amp;#10;// @then $t$" description="插入 given when then" toReformat="true" toShortenFQNames="true">
<variable name="g" expression="" defaultValue=""前提条件"" alwaysStopAt="true" />
<variable name="w" expression="" defaultValue=""执行操作"" alwaysStopAt="true" />
<variable name="t" expression="" defaultValue=""预期结果"" alwaysStopAt="true" />
<context>
<option name="JAVA_COMMENT" value="true" />
<option name="JAVA_DECLARATION" value="true" />
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="li" value="<li>$a%ITEM_CONTENT%amp;lt;/li>" description="Javadoc中插入 li 列表" toReformat="true" toShortenFQNames="true">
<variable name="a" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_COMMENT" value="true" />
</context>
</template>
<template name="link" value="{@link $link$}" description="Javadoc中插入 link" toReformat="true" toShortenFQNames="true">
<variable name="link" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_COMMENT" value="true" />
</context>
</template>
<template name="logger" value="private static final Logger logger = LoggerFactory.getLogger($class$.class);" description="插入 logger 变量" toReformat="true" toShortenFQNames="true">
<variable name="class" expression="className() + ”.Class"" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_DECLARATION" value="true" />
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="ls" value="List<String> $name$ = new ArrayList<>();" description="插入 List<String> 变量定义" toReformat="true" toShortenFQNames="true">
<variable name="name" expression="" defaultValue=""list"" alwaysStopAt="true" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="map" value="Map<String, $var%ITEM_CONTENT%amp;gt; ms = new HashMap<>();" description="插入 Map<String, Object> 变量定义" toReformat="true" toShortenFQNames="true">
<variable name="var" expression="" defaultValue=""String"" alwaysStopAt="true" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="psfl" value="public static final long " description="插入 public static final long" toReformat="false" toShortenFQNames="true">
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
<template name="psm" value="public static $ret$ $m$($para$){ $END%ITEM_CONTENT%amp;#10;}" description="插入静态方法定义" toReformat="true" toShortenFQNames="true">
<variable name="ret" expression="" defaultValue=""返回类型"" alwaysStopAt="true" />
<variable name="m" expression="" defaultValue=""方法名"" alwaysStopAt="true" />
<variable name="para" expression="" defaultValue=""参数"" alwaysStopAt="true" />
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
<template name="psv" value="public static void $m$($para$){ $END%ITEM_CONTENT%amp;#10;}" description="插入静态void方法定义" toReformat="true" toShortenFQNames="true">
<variable name="m" expression="" defaultValue=""方法名"" alwaysStopAt="true" />
<variable name="para" expression="" defaultValue=""参数"" alwaysStopAt="true" />
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
<template name="tc" value="try { $END%ITEM_CONTENT%amp;#10;} catch ($Exception$ e) { e.printStackTrace(); } " description="插入 try catch 语句" toReformat="false" toShortenFQNames="true">
<variable name="Exception" expression="" defaultValue=""Exception"" alwaysStopAt="true" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="tcf" value="try { $END%ITEM_CONTENT%amp;#10;} catch ($Exception$ e) { e.printStackTrace(); } finally { } " description="插入 try catch finally 语句" toReformat="false" toShortenFQNames="true">
<variable name="Exception" expression="" defaultValue=""Exception"" alwaysStopAt="true" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="test" value="/** * $method$ 测试用例 * * @given $given%ITEM_CONTENT%amp;#10; * @when $when%ITEM_CONTENT%amp;#10; * @then $then%ITEM_CONTENT%amp;#10; */ @Test public void test$Method$() { $END%ITEM_CONTENT%amp;#10;} " description="插入测试方法" toReformat="true" toShortenFQNames="true">
<variable name="method" expression="" defaultValue=""方法名"" alwaysStopAt="true" />
<variable name="given" expression="" defaultValue=""给定条件"" alwaysStopAt="true" />
<variable name="when" expression="" defaultValue=""当执行操作"" alwaysStopAt="true" />
<variable name="then" expression="" defaultValue=""预期"" alwaysStopAt="true" />
<variable name="Method" expression="capitalize(method)" defaultValue=""方法名"" alwaysStopAt="false" />
<context>
<option name="JAVA_DECLARATION" value="true" />
</context>
</template>
<template name="tf" value="try { $END%ITEM_CONTENT%amp;#10;} finally { } " description="插入 try finally 语句" toReformat="false" toShortenFQNames="true">
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>
<template name="ul" value="<ul> * <li>$a%ITEM_CONTENT%amp;lt;/li> * <li>$b%ITEM_CONTENT%amp;lt;/li> * <li>$c%ITEM_CONTENT%amp;lt;/li> * </ul>" description="Javadoc中插入 ul 列表" toReformat="true" toShortenFQNames="true">
<variable name="a" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="b" expression="" defaultValue="" alwaysStopAt="true" />
<variable name="c" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_COMMENT" value="true" />
</context>
</template>
<template name="lm" value="Map<$key$, $obj$> $map$ = $list$.stream().collect(Collectors.toMap($obj$::$get$, item -> item));$END$" description="List Object convert to Map Object" toReformat="false" toShortenFQNames="true">
<variable name="key" expression="" defaultValue=""Long"" alwaysStopAt="true" />
<variable name="obj" expression="" defaultValue=""Object"" alwaysStopAt="true" />
<variable name="map" expression="" defaultValue=""map"" alwaysStopAt="true" />
<variable name="list" expression="" defaultValue=""list"" alwaysStopAt="true" />
<variable name="get" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_STATEMENT" value="true" />
</context>
</template>