]> git.r.bdr.sh - rbdr/dotfiles/blob - vim/snippets/java.snippets
Add ripgrep and hushlogin config
[rbdr/dotfiles] / vim / snippets / java.snippets
1 snippet main
2 public static void main (String [] args)
3 {
4 ${1:/* code */}
5 }
6 snippet pu
7 public
8 snippet po
9 protected
10 snippet pr
11 private
12 snippet st
13 static
14 snippet fi
15 final
16 snippet ab
17 abstract
18 snippet re
19 return
20 snippet br
21 break;
22 snippet de
23 default:
24 ${1}
25 snippet ca
26 catch(${1:Exception} ${2:e}) ${3}
27 snippet th
28 throw
29 snippet sy
30 synchronized
31 snippet im
32 import
33 snippet imp
34 implements
35 snippet ext
36 extends
37 snippet j.u
38 java.util
39 snippet j.i
40 java.io.
41 snippet j.b
42 java.beans.
43 snippet j.n
44 java.net.
45 snippet j.m
46 java.math.
47 snippet if
48 if (${1}) ${2}
49 snippet el
50 else
51 snippet elif
52 else if (${1}) ${2}
53 snippet wh
54 while (${1}) ${2}
55 snippet for
56 for (${1}; ${2}; ${3}) ${4}
57 snippet fore
58 for (${1} : ${2}) ${3}
59 snippet sw
60 switch (${1}) ${2}
61 snippet cs
62 case ${1}:
63 ${2}
64 ${3}
65 snippet tc
66 public class ${1:`Filename()`} extends ${2:TestCase}
67 snippet t
68 public void test${1:Name}() throws Exception ${2}
69 snippet cl
70 class ${1:`Filename("", "untitled")`} ${2}
71 snippet in
72 interface ${1:`Filename("", "untitled")`} ${2:extends Parent}${3}
73 snippet m
74 ${1:void} ${2:method}(${3}) ${4:throws }${5}
75 snippet v
76 ${1:String} ${2:var}${3: = null}${4};${5}
77 snippet co
78 static public final ${1:String} ${2:var} = ${3};${4}
79 snippet cos
80 static public final String ${1:var} = "${2}";${3}
81 snippet as
82 assert ${1:test} : "${2:Failure message}";${3}
83 snippet try
84 try {
85 ${3}
86 } catch(${1:Exception} ${2:e}) {
87 }
88 snippet tryf
89 try {
90 ${3}
91 } catch(${1:Exception} ${2:e}) {
92 } finally {
93 }
94 snippet rst
95 ResultSet ${1:rst}${2: = null}${3};${4}