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