forked from redhat-developer/vscode-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjava.json
More file actions
115 lines (115 loc) · 2.07 KB
/
java.json
File metadata and controls
115 lines (115 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"main": {
"prefix": ["main", "psvm"],
"body": [
"public static void main(String[] args) {",
"\t$0",
"}"
],
"description": "Public static main method"
},
"Public constructor": {
"prefix": "ctor",
"body": [
"public ${1:${TM_FILENAME_BASE}}($2) {",
"\t${3:super();}$0",
"}"
],
"description": "Public constructor"
},
"trycatch": {
"prefix": "try_catch",
"body": [
"try {",
"\t$1",
"} catch (${2:Exception} ${3:e}) {",
"\t$0// TODO: handle exception",
"}"
],
"description": "try/catch block"
},
"tryresources": {
"prefix": "try_resources",
"body": [
"try ($1) {",
"\t$2",
"} catch (${3:Exception} ${4:e}) {",
"\t$0// TODO: handle exception",
"}"
]
},
"private_method": {
"prefix": "private_method",
"body": [
"private ${1:void} ${2:name}($3) {",
"\t$0",
"}"
],
"description": "private method"
},
"Public method": {
"prefix": "public_method",
"body": [
"public ${1:void} ${2:name}(${3}) {",
"\t$0",
"}"
],
"description": "public method"
},
"Private static method": {
"prefix": "private_static_method",
"body": [
"private static ${1:Type} ${2:name}(${3}) {",
"\t$0",
"}"
],
"description": "private static method"
},
"Public static method": {
"prefix": "public_static_method",
"body": [
"public static ${1:void} ${2:name}(${3}) {",
"\t$0",
"}"
],
"description": "public static method"
},
"Protected Method": {
"prefix": "protected_method",
"body": [
"protected ${1:void} ${2:name}(${3}) {",
"\t$0",
"}"
],
"description": "Protected method"
},
"Switch Statement": {
"prefix": "switch",
"body": [
"switch (${1:key}) {",
"\tcase ${2:value}:",
"\t\t$0",
"\t\tbreak;",
"",
"\tdefault:",
"\t\tbreak;",
"}"
],
"description": "Switch Statement"
},
"newObject": {
"prefix": "new",
"body": [
"${1:Object} ${2:foo} = new ${1}($3);",
"$0"
],
"description": "Create new Object"
},
"Private field": {
"prefix": "prf",
"body": [
"private ${1:String} ${2:name};"
],
"description": "Private field"
}
}