]> git.madduck.net Git - etc/vim.git/blob - .vim/snippets/java.snippets

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

check in snipmate 0.83
[etc/vim.git] / .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 j.u
34         java.util
35 snippet j.i
36         java.io.
37 snippet j.b
38         java.beans.
39 snippet j.n
40         java.net.
41 snippet j.m
42         java.math.
43 snippet if
44         if (${1}) ${2}
45 snippet el
46         else 
47 snippet elif
48         else if (${1}) ${2}
49 snippet wh
50         while (${1}) ${2}
51 snippet for
52         for (${1}; ${2}; ${3}) ${4}
53 snippet fore
54         for (${1} : ${2}) ${3}
55 snippet sw
56         switch (${1}) ${2}
57 snippet cs
58         case ${1}:
59                 ${2}
60         ${3}
61 snippet tc
62         public class ${1:`Filename()`} extends ${2:TestCase}
63 snippet t
64         public void test${1:Name}() throws Exception ${2}
65 snippet cl
66         class ${1:`Filename("", "untitled")`} ${2}
67 snippet in
68         interface ${1:`Filename("", "untitled")`} ${2:extends Parent}${3}
69 snippet m
70         ${1:void} ${2:method}(${3}) ${4:throws }${5}
71 snippet v
72         ${1:String} ${2:var}${3: = null}${4};${5}
73 snippet co
74         static public final ${1:String} ${2:var} = ${3};${4}
75 snippet cos
76         static public final String ${1:var} = "${2}";${3}
77 snippet as
78         assert ${1:test} : "${2:Failure message}";${3}