neosnippet.vim/autoload/neosnippet/snippets/java.snip

219 lines
2.8 KiB
Plaintext
Raw Normal View History

2012-02-02 04:33:35 +00:00
snippet pu
public
snippet po
protected
snippet pr
private
snippet st
static
snippet fi
final
snippet ab
abstract
snippet cl
2012-10-30 08:53:14 +00:00
class ${1} ${2:extends} ${3:#:Parent} ${4:implements} ${5:#:Interface} {
${0:TARGET}
}
2012-02-02 04:33:35 +00:00
snippet in
2012-10-30 08:53:14 +00:00
interface ${1} ${2:extends} ${3:#:Parent} {
${0:TARGET}
}
2012-02-02 04:33:35 +00:00
snippet m
2012-10-30 08:53:14 +00:00
${1:void} ${2:#:method}(${3}) ${4:throws} {
${0:TARGET}
}
2012-02-02 04:33:35 +00:00
snippet v
2012-10-30 08:53:14 +00:00
${1:#:type} ${2:#:var}${3};
2012-02-02 04:33:35 +00:00
snippet co
2012-10-30 08:53:14 +00:00
static public final ${1:#:type} ${2:#:var} = ${3};${4}
2012-02-02 04:33:35 +00:00
snippet cos
static public final String ${1:var} = "${2}";${4}
snippet re
return
snippet as
2012-10-30 08:53:14 +00:00
assert ${1:#:test} ${2:#:Failure message};${3}
2012-02-02 04:33:35 +00:00
snippet if
if (${1}) {
2012-10-30 08:53:14 +00:00
${2:TARGET}
}
2012-02-02 04:33:35 +00:00
snippet elif
else if (${1}) {
2012-10-30 08:53:14 +00:00
${2:TARGET}
}
2012-02-02 04:33:35 +00:00
snippet wh
while (${1}) {
2012-10-30 08:53:14 +00:00
${2:TARGET}
}
2012-02-02 04:33:35 +00:00
snippet for
for (${1}; ${2}; ${3}) {
2012-10-30 08:53:14 +00:00
${4:TARGET}
}
2012-10-30 08:53:14 +00:00
2012-02-02 04:33:35 +00:00
snippet fore
for (${1} : ${2}) {
2012-10-30 08:53:14 +00:00
${3:TARGET}
2012-02-02 04:33:35 +00:00
}
snippet sw
switch (${1}) {
2012-10-30 08:53:14 +00:00
${2:TARGET}
}
2012-10-30 08:53:14 +00:00
2012-02-02 04:33:35 +00:00
snippet case
abbr ce
case ${1}:
2012-10-30 08:53:14 +00:00
${2:TARGET}
${0}
2012-02-02 04:33:35 +00:00
snippet br
break;
snippet de
default:
${0}
2012-02-02 04:33:35 +00:00
snippet ca
2012-10-30 08:53:14 +00:00
catch (${1:#:Exception} ${2:e}) {
${0}
}
2012-10-30 08:53:14 +00:00
2012-02-02 04:33:35 +00:00
snippet th
throw ${0}
snippet sy
synchronized
snippet im
import
snippet pa
package
snippet tc
public class ${1} extends ${2:TestCase} {
2012-10-30 08:53:14 +00:00
${0:TARGET}
}
2012-02-02 04:33:35 +00:00
snippet test
2012-10-30 08:53:14 +00:00
public void test${1:#:Name}() throws Exception {
${0:TARGET}
}
2012-02-02 04:33:35 +00:00
snippet imt
import junit.framework.TestCase;
${0}
2012-02-02 04:33:35 +00:00
snippet j.u
java.util.
snippet j.i
java.io.
snippet j.b
java.beans.
snippet j.n
java.net
snippet j.m
java.math.
snippet main
public static void main(String[] args) {
${0}
}
2012-02-02 04:33:35 +00:00
snippet pl
System.out.println(${1});${0}
snippet p
System.out.print(${1});${0}
#javadoc
snippet c
/**
2012-10-30 08:53:14 +00:00
* ${0:TARGET}
*/
2012-02-02 04:33:35 +00:00
snippet a
@author ${0:$TM_FULLNAME}
snippet {code
abbr {
{@code ${0}
snippet d
2012-10-30 08:53:14 +00:00
@deprecated ${0:#:description}
2012-02-02 04:33:35 +00:00
snippet {docRoot
abbr {
{@docRoot
snippet {inheritDoc
abbr {
{@inheritDoc
snippet {link
abbr {
2012-10-30 08:53:14 +00:00
{@link ${1:#:target} ${0:#:label}
2012-02-02 04:33:35 +00:00
snippet {linkplain
abbr {
2012-10-30 08:53:14 +00:00
{@linkplain ${1:#:target} ${0:#:label}
2012-02-02 04:33:35 +00:00
snippet {literal
abbr {
{@literal ${0}
snippet param
2012-10-30 08:53:14 +00:00
@param ${1:#:var} ${0:#:description}
2012-02-02 04:33:35 +00:00
snippet r
2012-10-30 08:53:14 +00:00
@return ${0:#:description}
2012-02-02 04:33:35 +00:00
snippet s
2012-10-30 08:53:14 +00:00
@see ${0:#:reference}
2012-02-02 04:33:35 +00:00
snippet se
2012-10-30 08:53:14 +00:00
@serial ${0:#:description}
2012-02-02 04:33:35 +00:00
snippet sd
2012-10-30 08:53:14 +00:00
@serialField ${0:#:description}
2012-02-02 04:33:35 +00:00
snippet sf
2012-10-30 08:53:14 +00:00
@serialField ${1:#:name} ${2:#:type} ${0:#:description}
2012-02-02 04:33:35 +00:00
snippet si
2012-10-30 08:53:14 +00:00
@since ${0:#:version}
2012-02-02 04:33:35 +00:00
snippet t
2012-10-30 08:53:14 +00:00
@throws ${1:#:class} ${0:#:description}
2012-02-02 04:33:35 +00:00
snippet {value
abbr {
{@value ${0}
snippet ver
2012-10-30 08:53:14 +00:00
@version ${0:#:version}
2012-02-02 04:33:35 +00:00
snippet null
{@code null}
2012-10-30 08:53:14 +00:00