keli-ui 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApprovalRecord-4ohFAtSZ.js +111 -0
- package/dist/ApprovalRecord-4ohFAtSZ.js.map +1 -0
- package/dist/api-Gtg77a-p.js +4507 -0
- package/dist/api-Gtg77a-p.js.map +1 -0
- package/dist/components/AppComponent/AppFormRender.vue.d.ts +74 -0
- package/dist/components/AppComponent/AppTableRender.vue.d.ts +16 -0
- package/dist/components/AppComponent/components/ApprovalRecord.vue.d.ts +20 -0
- package/dist/components/AppComponent/components/DialogForm.vue.d.ts +22 -0
- package/dist/components/AppComponent/components/DrawerForm.vue.d.ts +22 -0
- package/dist/components/AppComponent/components/FileIsland.vue.d.ts +21 -0
- package/dist/components/AppComponent/components/FlowUserDialog.vue.d.ts +13 -0
- package/dist/components/AppComponent/components/chartList/ChartRender.vue.d.ts +17 -0
- package/dist/components/AppComponent/components/chartList/index.d.ts +1 -0
- package/dist/components/AppComponent/components/chartList/index.vue.d.ts +4 -0
- package/dist/components/AppComponent/components/embedded/EmbeddedDialogForm.vue.d.ts +46 -0
- package/dist/components/AppComponent/components/embedded/EmbeddedTable.vue.d.ts +16 -0
- package/dist/components/AppComponent/hooks/useAutoForm.hook.d.ts +9 -0
- package/dist/components/AppComponent/hooks/useSplitApiButton.d.ts +13 -0
- package/dist/components/AppComponent/hooks/useTable.hook.d.ts +134 -0
- package/dist/components/AppComponent/index.d.ts +5 -0
- package/dist/components/ElPlusComponent/ElColPlus/ElColPlus.vue.d.ts +1 -1
- package/dist/components/FormComponent/DynamicMapTable/DynamicMapTable.vue.d.ts +21 -0
- package/dist/components/FormComponent/DynamicMapTable/index.d.ts +3 -0
- package/dist/components/FormComponent/FormCascaderAsync/FormCascaderAsync.vue.d.ts +34 -0
- package/dist/components/FormComponent/FormCascaderAsync/index.d.ts +3 -0
- package/dist/components/FormComponent/FormCheckBox/FormCheckBox.vue.d.ts +37 -0
- package/dist/components/FormComponent/FormCheckBox/index.d.ts +3 -0
- package/dist/components/FormComponent/FormCheckBoxAsync/FormCheckBoxAsync.vue.d.ts +37 -0
- package/dist/components/FormComponent/FormCheckBoxAsync/index.d.ts +3 -0
- package/dist/components/FormComponent/FormCodeEditor/FormCodeEditor.vue.d.ts +35 -0
- package/dist/components/FormComponent/FormCodeEditor/index.d.ts +3 -0
- package/dist/components/FormComponent/FormCodeEditor/language/java.d.ts +72 -0
- package/dist/components/FormComponent/FormCodeEditor/language/mysql.d.ts +80 -0
- package/dist/components/FormComponent/FormCodeEditor/language/postgresql.d.ts +6 -0
- package/dist/components/FormComponent/FormCodeEditor/volar/setup.d.ts +2 -0
- package/dist/components/FormComponent/FormDatePicker/FormDatePicker.vue.d.ts +32 -0
- package/dist/components/FormComponent/FormDatePicker/index.d.ts +3 -0
- package/dist/components/FormComponent/FormDateTimePicker/FormDateTimePicker.vue.d.ts +36 -0
- package/dist/components/FormComponent/FormDateTimePicker/index.d.ts +3 -0
- package/dist/components/FormComponent/FormDictSelector/FormDictSelector.vue.d.ts +32 -0
- package/dist/components/FormComponent/FormDictSelector/index.d.ts +3 -0
- package/dist/components/FormComponent/FormDivider/FormDivider.vue.d.ts +35 -0
- package/dist/components/FormComponent/FormDivider/index.d.ts +3 -0
- package/dist/components/FormComponent/FormDynamicTable/FormDynamicTable.vue.d.ts +26 -0
- package/dist/components/FormComponent/FormDynamicTable/index.d.ts +3 -0
- package/dist/components/FormComponent/FormFieldset/FormFieldset.vue.d.ts +75 -0
- package/dist/components/FormComponent/FormFieldset/index.d.ts +3 -0
- package/dist/components/FormComponent/FormIconPicker/FormIconPicker.vue.d.ts +16 -0
- package/dist/components/FormComponent/FormIconPicker/index.d.ts +3 -0
- package/dist/components/FormComponent/FormInput/FormInput.vue.d.ts +36 -0
- package/dist/components/FormComponent/FormInput/index.d.ts +3 -0
- package/dist/components/FormComponent/FormInputNumber/FormInputNumber.vue.d.ts +26 -0
- package/dist/components/FormComponent/FormInputNumber/index.d.ts +3 -0
- package/dist/components/FormComponent/FormRadio/FormRadio.vue.d.ts +32 -0
- package/dist/components/FormComponent/FormRadio/index.d.ts +3 -0
- package/dist/components/FormComponent/FormRender/FormRender.vue.d.ts +81 -0
- package/dist/components/FormComponent/FormRender/components/FormAreaRender.vue.d.ts +67 -0
- package/dist/components/FormComponent/FormRender/hooks/formRender.hook.d.ts +35 -0
- package/dist/components/FormComponent/FormRender/index.d.ts +3 -0
- package/dist/components/FormComponent/FormSelect/FormSelect.vue.d.ts +34 -0
- package/dist/components/FormComponent/FormSelect/index.d.ts +3 -0
- package/dist/components/FormComponent/FormSelectAsync/FormSelectAsync.vue.d.ts +44 -0
- package/dist/components/FormComponent/FormSelectAsync/index.d.ts +3 -0
- package/dist/components/FormComponent/FormSelectRemote/FormSelectRemote.vue.d.ts +44 -0
- package/dist/components/FormComponent/FormSelectRemote/index.d.ts +3 -0
- package/dist/components/FormComponent/FormSwitch/FormSwitch.vue.d.ts +34 -0
- package/dist/components/FormComponent/FormSwitch/index.d.ts +3 -0
- package/dist/components/FormComponent/FormTableSelect/FormTableSelect.vue.d.ts +32 -0
- package/dist/components/FormComponent/FormTableSelect/index.d.ts +3 -0
- package/dist/components/FormComponent/FormTableSelectAsync/FormTableSelectAsync.vue.d.ts +44 -0
- package/dist/components/FormComponent/FormTableSelectAsync/index.d.ts +3 -0
- package/dist/components/FormComponent/FormText/FormText.vue.d.ts +26 -0
- package/dist/components/FormComponent/FormText/index.d.ts +3 -0
- package/dist/components/FormComponent/FormTextArea/FormTextArea.vue.d.ts +34 -0
- package/dist/components/FormComponent/FormTextArea/index.d.ts +3 -0
- package/dist/components/FormComponent/hooks/selectAsync.hook.d.ts +30 -0
- package/dist/components/FormComponent/hooks/useColumnRender.hook.d.ts +26 -0
- package/dist/components/FormComponent/hooks/useMitt.hook.d.ts +4 -0
- package/dist/components/FormComponent/index.d.ts +24 -0
- package/dist/components/QueryComponent/QueryBar/hooks/index.d.ts +6 -0
- package/dist/components/QueryComponent/QueryTreeFilter/QueryTreeFilter.d.ts +14 -0
- package/dist/components/QueryComponent/QueryTreeFilter/QueryTreeFilter.vue.d.ts +22 -0
- package/dist/components/QueryComponent/QueryTreeFilter/index.d.ts +3 -0
- package/dist/components/QueryComponent/index.d.ts +1 -0
- package/dist/components/TableComponent/TableCardRender/TableCardRender.vue.d.ts +99 -0
- package/dist/components/TableComponent/TableCardRender/index.d.ts +3 -0
- package/dist/components/TableComponent/TableCheckBoxAsync/TableCheckBoxAsync.vue.d.ts +11 -10
- package/dist/components/TableComponent/TableCheckBoxAsync/type.d.ts +5 -0
- package/dist/components/TableComponent/TableInputNumber/TableInputNumber.vue.d.ts +2 -2
- package/dist/components/TableComponent/TableRender/TableRender.vue.d.ts +103 -0
- package/dist/components/TableComponent/TableRender/hooks/useVxeGrid.hook.d.ts +29 -0
- package/dist/components/TableComponent/TableRender/index.d.ts +3 -0
- package/dist/components/TableComponent/TableRender/plugin/vxe-table-clipboard.d.ts +73 -0
- package/dist/components/TableComponent/index.d.ts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/config/appRouter.config.d.ts +6 -0
- package/dist/config/index.d.ts +158 -0
- package/dist/config/moduleCache.d.ts +14 -0
- package/dist/config/pageTableConfig.d.ts +8 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useButtonExec.hook.d.ts +7 -1
- package/dist/hooks/useRemoteComponentManager.hook.d.ts +23 -0
- package/dist/hooks/useTableFormats.hook.d.ts +4 -0
- package/dist/index.d.ts +11 -5
- package/dist/java-BrZSNBDG.js +2603 -0
- package/dist/java-BrZSNBDG.js.map +1 -0
- package/dist/keli-ui.css +2 -1
- package/dist/keli-ui.js +68165 -679
- package/dist/keli-ui.js.map +1 -1
- package/dist/keli-ui.umd.cjs +2577 -2
- package/dist/keli-ui.umd.cjs.map +1 -1
- package/dist/mysql-BJR6iO89.js +923 -0
- package/dist/mysql-BJR6iO89.js.map +1 -0
- package/dist/postgresql-CLVUxiA0.js +2375 -0
- package/dist/postgresql-CLVUxiA0.js.map +1 -0
- package/dist/types/api/app.req.d.ts +23 -0
- package/dist/types/api/app.res.d.ts +79 -0
- package/dist/types/api/appTable.api.res.d.ts +17 -0
- package/dist/types/api/index.d.ts +34 -0
- package/dist/types/app.d.ts +5 -0
- package/dist/types/assets.d.ts +4 -0
- package/dist/types/button.d.ts +43 -0
- package/dist/types/cacheValue.d.ts +32 -0
- package/dist/types/chart.d.ts +31 -0
- package/dist/types/common.d.ts +5 -0
- package/dist/types/componentFrame.d.ts +24 -0
- package/dist/types/flowButton.d.ts +7 -0
- package/dist/types/formFrame.d.ts +299 -0
- package/dist/types/global-components.d.ts +61 -0
- package/dist/types/index.d.ts +12 -96
- package/dist/types/queryFrame.d.ts +36 -0
- package/dist/types/tableFrame.d.ts +196 -0
- package/dist/types/translate.d.ts +20 -0
- package/dist/types/vue3-sfc-loader.d.ts +19 -0
- package/dist/utils/arrayUtils.d.ts +73 -0
- package/dist/utils/baseFunction.d.ts +10 -0
- package/dist/utils/dataFormatter.d.ts +69 -0
- package/dist/utils/dateTime.d.ts +22 -0
- package/dist/utils/emitter.d.ts +7 -0
- package/dist/utils/formValidates.d.ts +28 -0
- package/dist/utils/index.d.ts +9 -24
- package/dist/utils/msgTips.d.ts +26 -0
- package/dist/utils/sleep.d.ts +6 -0
- package/dist/utils/validate.d.ts +5 -0
- package/package.json +39 -8
|
@@ -0,0 +1,2603 @@
|
|
|
1
|
+
import * as t from "monaco-editor";
|
|
2
|
+
var f = {
|
|
3
|
+
wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,
|
|
4
|
+
comments: {
|
|
5
|
+
lineComment: "//",
|
|
6
|
+
blockComment: ["/*", "*/"]
|
|
7
|
+
},
|
|
8
|
+
brackets: [
|
|
9
|
+
["{", "}"],
|
|
10
|
+
["[", "]"],
|
|
11
|
+
["(", ")"]
|
|
12
|
+
],
|
|
13
|
+
autoClosingPairs: [
|
|
14
|
+
{
|
|
15
|
+
open: "{",
|
|
16
|
+
close: "}"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
open: "[",
|
|
20
|
+
close: "]"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
open: "(",
|
|
24
|
+
close: ")"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
open: '"',
|
|
28
|
+
close: '"'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
open: "'",
|
|
32
|
+
close: "'"
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
surroundingPairs: [
|
|
36
|
+
{
|
|
37
|
+
open: "{",
|
|
38
|
+
close: "}"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
open: "[",
|
|
42
|
+
close: "]"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
open: "(",
|
|
46
|
+
close: ")"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
open: '"',
|
|
50
|
+
close: '"'
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
open: "'",
|
|
54
|
+
close: "'"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
open: "<",
|
|
58
|
+
close: ">"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
folding: { markers: {
|
|
62
|
+
start: /* @__PURE__ */ new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))"),
|
|
63
|
+
end: /* @__PURE__ */ new RegExp("^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))")
|
|
64
|
+
} }
|
|
65
|
+
}, h = {
|
|
66
|
+
defaultToken: "",
|
|
67
|
+
tokenPostfix: ".java",
|
|
68
|
+
keywords: [
|
|
69
|
+
"abstract",
|
|
70
|
+
"continue",
|
|
71
|
+
"for",
|
|
72
|
+
"new",
|
|
73
|
+
"switch",
|
|
74
|
+
"assert",
|
|
75
|
+
"default",
|
|
76
|
+
"goto",
|
|
77
|
+
"package",
|
|
78
|
+
"synchronized",
|
|
79
|
+
"boolean",
|
|
80
|
+
"do",
|
|
81
|
+
"if",
|
|
82
|
+
"private",
|
|
83
|
+
"this",
|
|
84
|
+
"break",
|
|
85
|
+
"double",
|
|
86
|
+
"implements",
|
|
87
|
+
"protected",
|
|
88
|
+
"throw",
|
|
89
|
+
"byte",
|
|
90
|
+
"else",
|
|
91
|
+
"import",
|
|
92
|
+
"public",
|
|
93
|
+
"throws",
|
|
94
|
+
"case",
|
|
95
|
+
"enum",
|
|
96
|
+
"instanceof",
|
|
97
|
+
"return",
|
|
98
|
+
"transient",
|
|
99
|
+
"catch",
|
|
100
|
+
"extends",
|
|
101
|
+
"int",
|
|
102
|
+
"short",
|
|
103
|
+
"try",
|
|
104
|
+
"char",
|
|
105
|
+
"final",
|
|
106
|
+
"interface",
|
|
107
|
+
"static",
|
|
108
|
+
"void",
|
|
109
|
+
"class",
|
|
110
|
+
"finally",
|
|
111
|
+
"long",
|
|
112
|
+
"strictfp",
|
|
113
|
+
"volatile",
|
|
114
|
+
"const",
|
|
115
|
+
"float",
|
|
116
|
+
"native",
|
|
117
|
+
"super",
|
|
118
|
+
"while",
|
|
119
|
+
"true",
|
|
120
|
+
"false",
|
|
121
|
+
"yield",
|
|
122
|
+
"record",
|
|
123
|
+
"sealed",
|
|
124
|
+
"non-sealed",
|
|
125
|
+
"permits"
|
|
126
|
+
],
|
|
127
|
+
operators: [
|
|
128
|
+
"=",
|
|
129
|
+
">",
|
|
130
|
+
"<",
|
|
131
|
+
"!",
|
|
132
|
+
"~",
|
|
133
|
+
"?",
|
|
134
|
+
":",
|
|
135
|
+
"==",
|
|
136
|
+
"<=",
|
|
137
|
+
">=",
|
|
138
|
+
"!=",
|
|
139
|
+
"&&",
|
|
140
|
+
"||",
|
|
141
|
+
"++",
|
|
142
|
+
"--",
|
|
143
|
+
"+",
|
|
144
|
+
"-",
|
|
145
|
+
"*",
|
|
146
|
+
"/",
|
|
147
|
+
"&",
|
|
148
|
+
"|",
|
|
149
|
+
"^",
|
|
150
|
+
"%",
|
|
151
|
+
"<<",
|
|
152
|
+
">>",
|
|
153
|
+
">>>",
|
|
154
|
+
"+=",
|
|
155
|
+
"-=",
|
|
156
|
+
"*=",
|
|
157
|
+
"/=",
|
|
158
|
+
"&=",
|
|
159
|
+
"|=",
|
|
160
|
+
"^=",
|
|
161
|
+
"%=",
|
|
162
|
+
"<<=",
|
|
163
|
+
">>=",
|
|
164
|
+
">>>="
|
|
165
|
+
],
|
|
166
|
+
typeKeywords: [
|
|
167
|
+
"String",
|
|
168
|
+
"Integer",
|
|
169
|
+
"Long",
|
|
170
|
+
"Double",
|
|
171
|
+
"Float",
|
|
172
|
+
"Boolean",
|
|
173
|
+
"Character",
|
|
174
|
+
"Byte",
|
|
175
|
+
"Short",
|
|
176
|
+
"Object",
|
|
177
|
+
"Class",
|
|
178
|
+
"System",
|
|
179
|
+
"Math",
|
|
180
|
+
"StringBuilder",
|
|
181
|
+
"StringBuffer",
|
|
182
|
+
"List",
|
|
183
|
+
"ArrayList",
|
|
184
|
+
"LinkedList",
|
|
185
|
+
"Map",
|
|
186
|
+
"HashMap",
|
|
187
|
+
"TreeMap",
|
|
188
|
+
"LinkedHashMap",
|
|
189
|
+
"Set",
|
|
190
|
+
"HashSet",
|
|
191
|
+
"TreeSet",
|
|
192
|
+
"LinkedHashSet",
|
|
193
|
+
"Queue",
|
|
194
|
+
"Deque",
|
|
195
|
+
"Stack",
|
|
196
|
+
"Collection",
|
|
197
|
+
"Collections",
|
|
198
|
+
"Arrays",
|
|
199
|
+
"Optional",
|
|
200
|
+
"Stream",
|
|
201
|
+
"Collectors",
|
|
202
|
+
"Exception",
|
|
203
|
+
"RuntimeException",
|
|
204
|
+
"Error",
|
|
205
|
+
"Throwable",
|
|
206
|
+
"Thread",
|
|
207
|
+
"Runnable",
|
|
208
|
+
"Callable",
|
|
209
|
+
"Future",
|
|
210
|
+
"CompletableFuture",
|
|
211
|
+
"Date",
|
|
212
|
+
"LocalDate",
|
|
213
|
+
"LocalTime",
|
|
214
|
+
"LocalDateTime",
|
|
215
|
+
"Instant",
|
|
216
|
+
"Duration",
|
|
217
|
+
"File",
|
|
218
|
+
"Path",
|
|
219
|
+
"Files",
|
|
220
|
+
"InputStream",
|
|
221
|
+
"OutputStream",
|
|
222
|
+
"Reader",
|
|
223
|
+
"Writer",
|
|
224
|
+
"Pattern",
|
|
225
|
+
"Matcher",
|
|
226
|
+
"Scanner",
|
|
227
|
+
"Random",
|
|
228
|
+
"UUID",
|
|
229
|
+
"BigDecimal",
|
|
230
|
+
"BigInteger",
|
|
231
|
+
"AtomicInteger",
|
|
232
|
+
"AtomicLong",
|
|
233
|
+
"Comparator",
|
|
234
|
+
"Comparable",
|
|
235
|
+
"Iterator",
|
|
236
|
+
"Iterable",
|
|
237
|
+
"Function",
|
|
238
|
+
"Consumer",
|
|
239
|
+
"Supplier",
|
|
240
|
+
"Predicate",
|
|
241
|
+
"BiFunction"
|
|
242
|
+
],
|
|
243
|
+
symbols: /[=><!~?:&|+\-*\/\^%]+/,
|
|
244
|
+
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
|
|
245
|
+
digits: /\d+(_+\d+)*/,
|
|
246
|
+
octaldigits: /[0-7]+(_+[0-7]+)*/,
|
|
247
|
+
binarydigits: /[0-1]+(_+[0-1]+)*/,
|
|
248
|
+
hexdigits: /[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,
|
|
249
|
+
tokenizer: {
|
|
250
|
+
root: [
|
|
251
|
+
["non-sealed", "keyword.non-sealed"],
|
|
252
|
+
[/([a-zA-Z_$][\w$]*)(\s*)(\()/, [
|
|
253
|
+
{ cases: {
|
|
254
|
+
"@keywords": "keyword.$0",
|
|
255
|
+
"@typeKeywords": "type",
|
|
256
|
+
"@default": "function"
|
|
257
|
+
} },
|
|
258
|
+
"",
|
|
259
|
+
"@brackets"
|
|
260
|
+
]],
|
|
261
|
+
[/[A-Z][\w$]*/, { cases: {
|
|
262
|
+
"@keywords": "keyword.$0",
|
|
263
|
+
"@typeKeywords": "type",
|
|
264
|
+
"@default": "type"
|
|
265
|
+
} }],
|
|
266
|
+
[/[a-z_$][\w$]*/, { cases: {
|
|
267
|
+
"@keywords": { token: "keyword.$0" },
|
|
268
|
+
"@default": "identifier"
|
|
269
|
+
} }],
|
|
270
|
+
{ include: "@whitespace" },
|
|
271
|
+
[/[{}()\[\]]/, "@brackets"],
|
|
272
|
+
[/[<>](?!@symbols)/, "@brackets"],
|
|
273
|
+
[/@symbols/, { cases: {
|
|
274
|
+
"@operators": "delimiter",
|
|
275
|
+
"@default": ""
|
|
276
|
+
} }],
|
|
277
|
+
[/@\s*[a-zA-Z_\$][\w\$]*/, "annotation"],
|
|
278
|
+
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, "number.float"],
|
|
279
|
+
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, "number.float"],
|
|
280
|
+
[/0[xX](@hexdigits)[Ll]?/, "number.hex"],
|
|
281
|
+
[/0(@octaldigits)[Ll]?/, "number.octal"],
|
|
282
|
+
[/0[bB](@binarydigits)[Ll]?/, "number.binary"],
|
|
283
|
+
[/(@digits)[fFdD]/, "number.float"],
|
|
284
|
+
[/(@digits)[lL]?/, "number"],
|
|
285
|
+
[/[;,.]/, "delimiter"],
|
|
286
|
+
[/"([^"\\]|\\.)*$/, "string.invalid"],
|
|
287
|
+
[
|
|
288
|
+
/"""/,
|
|
289
|
+
"string",
|
|
290
|
+
"@multistring"
|
|
291
|
+
],
|
|
292
|
+
[
|
|
293
|
+
/"/,
|
|
294
|
+
"string",
|
|
295
|
+
"@string"
|
|
296
|
+
],
|
|
297
|
+
[/'[^\\']'/, "string"],
|
|
298
|
+
[/(')(@escapes)(')/, [
|
|
299
|
+
"string",
|
|
300
|
+
"string.escape",
|
|
301
|
+
"string"
|
|
302
|
+
]],
|
|
303
|
+
[/'/, "string.invalid"]
|
|
304
|
+
],
|
|
305
|
+
whitespace: [
|
|
306
|
+
[/[ \t\r\n]+/, ""],
|
|
307
|
+
[
|
|
308
|
+
/\/\*\*(?!\/)/,
|
|
309
|
+
"comment.doc",
|
|
310
|
+
"@javadoc"
|
|
311
|
+
],
|
|
312
|
+
[
|
|
313
|
+
/\/\*/,
|
|
314
|
+
"comment",
|
|
315
|
+
"@comment"
|
|
316
|
+
],
|
|
317
|
+
[/\/\/.*$/, "comment"]
|
|
318
|
+
],
|
|
319
|
+
comment: [
|
|
320
|
+
[/[^\/*]+/, "comment"],
|
|
321
|
+
[
|
|
322
|
+
/\*\//,
|
|
323
|
+
"comment",
|
|
324
|
+
"@pop"
|
|
325
|
+
],
|
|
326
|
+
[/[\/*]/, "comment"]
|
|
327
|
+
],
|
|
328
|
+
javadoc: [
|
|
329
|
+
[/[^\/*]+/, "comment.doc"],
|
|
330
|
+
[/\/\*/, "comment.doc.invalid"],
|
|
331
|
+
[
|
|
332
|
+
/\*\//,
|
|
333
|
+
"comment.doc",
|
|
334
|
+
"@pop"
|
|
335
|
+
],
|
|
336
|
+
[/[\/*]/, "comment.doc"]
|
|
337
|
+
],
|
|
338
|
+
string: [
|
|
339
|
+
[/[^\\"]+/, "string"],
|
|
340
|
+
[/@escapes/, "string.escape"],
|
|
341
|
+
[/\\./, "string.escape.invalid"],
|
|
342
|
+
[
|
|
343
|
+
/"/,
|
|
344
|
+
"string",
|
|
345
|
+
"@pop"
|
|
346
|
+
]
|
|
347
|
+
],
|
|
348
|
+
multistring: [
|
|
349
|
+
[/[^\\"]+/, "string"],
|
|
350
|
+
[/@escapes/, "string.escape"],
|
|
351
|
+
[/\\./, "string.escape.invalid"],
|
|
352
|
+
[
|
|
353
|
+
/"""/,
|
|
354
|
+
"string",
|
|
355
|
+
"@pop"
|
|
356
|
+
],
|
|
357
|
+
[/./, "string"]
|
|
358
|
+
]
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
function y() {
|
|
362
|
+
t.editor.defineTheme("java-dark", {
|
|
363
|
+
base: "vs-dark",
|
|
364
|
+
inherit: !0,
|
|
365
|
+
rules: [
|
|
366
|
+
{
|
|
367
|
+
token: "keyword",
|
|
368
|
+
foreground: "569CD6"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
token: "keyword.package",
|
|
372
|
+
foreground: "C586C0"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
token: "keyword.import",
|
|
376
|
+
foreground: "C586C0"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
token: "keyword.class",
|
|
380
|
+
foreground: "569CD6"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
token: "keyword.interface",
|
|
384
|
+
foreground: "569CD6"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
token: "keyword.public",
|
|
388
|
+
foreground: "569CD6"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
token: "keyword.private",
|
|
392
|
+
foreground: "569CD6"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
token: "keyword.protected",
|
|
396
|
+
foreground: "569CD6"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
token: "keyword.static",
|
|
400
|
+
foreground: "569CD6"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
token: "keyword.final",
|
|
404
|
+
foreground: "569CD6"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
token: "keyword.void",
|
|
408
|
+
foreground: "569CD6"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
token: "keyword.return",
|
|
412
|
+
foreground: "C586C0"
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
token: "keyword.new",
|
|
416
|
+
foreground: "569CD6"
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
token: "keyword.if",
|
|
420
|
+
foreground: "C586C0"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
token: "keyword.else",
|
|
424
|
+
foreground: "C586C0"
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
token: "keyword.for",
|
|
428
|
+
foreground: "C586C0"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
token: "keyword.while",
|
|
432
|
+
foreground: "C586C0"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
token: "keyword.try",
|
|
436
|
+
foreground: "C586C0"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
token: "keyword.catch",
|
|
440
|
+
foreground: "C586C0"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
token: "keyword.throw",
|
|
444
|
+
foreground: "C586C0"
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
token: "keyword.throws",
|
|
448
|
+
foreground: "C586C0"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
token: "type",
|
|
452
|
+
foreground: "4EC9B0"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
token: "function",
|
|
456
|
+
foreground: "DCDCAA"
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
token: "annotation",
|
|
460
|
+
foreground: "D7BA7D"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
token: "string",
|
|
464
|
+
foreground: "CE9178"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
token: "number",
|
|
468
|
+
foreground: "B5CEA8"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
token: "comment",
|
|
472
|
+
foreground: "6A9955"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
token: "comment.doc",
|
|
476
|
+
foreground: "6A9955"
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
token: "identifier",
|
|
480
|
+
foreground: "9CDCFE"
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
token: "delimiter",
|
|
484
|
+
foreground: "D4D4D4"
|
|
485
|
+
}
|
|
486
|
+
],
|
|
487
|
+
colors: {}
|
|
488
|
+
}), t.editor.defineTheme("java-light", {
|
|
489
|
+
base: "vs",
|
|
490
|
+
inherit: !0,
|
|
491
|
+
rules: [
|
|
492
|
+
{
|
|
493
|
+
token: "keyword",
|
|
494
|
+
foreground: "0000FF"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
token: "keyword.package",
|
|
498
|
+
foreground: "AF00DB"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
token: "keyword.import",
|
|
502
|
+
foreground: "AF00DB"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
token: "keyword.return",
|
|
506
|
+
foreground: "AF00DB"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
token: "keyword.if",
|
|
510
|
+
foreground: "AF00DB"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
token: "keyword.else",
|
|
514
|
+
foreground: "AF00DB"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
token: "keyword.for",
|
|
518
|
+
foreground: "AF00DB"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
token: "keyword.while",
|
|
522
|
+
foreground: "AF00DB"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
token: "keyword.try",
|
|
526
|
+
foreground: "AF00DB"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
token: "keyword.catch",
|
|
530
|
+
foreground: "AF00DB"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
token: "keyword.throw",
|
|
534
|
+
foreground: "AF00DB"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
token: "type",
|
|
538
|
+
foreground: "267F99"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
token: "function",
|
|
542
|
+
foreground: "795E26"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
token: "annotation",
|
|
546
|
+
foreground: "808000"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
token: "string",
|
|
550
|
+
foreground: "A31515"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
token: "number",
|
|
554
|
+
foreground: "098658"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
token: "comment",
|
|
558
|
+
foreground: "008000"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
token: "identifier",
|
|
562
|
+
foreground: "001080"
|
|
563
|
+
}
|
|
564
|
+
],
|
|
565
|
+
colors: {}
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
var $ = !1;
|
|
569
|
+
function C() {
|
|
570
|
+
$ || ($ = !0, t.languages.registerCompletionItemProvider("java", {
|
|
571
|
+
triggerCharacters: [
|
|
572
|
+
".",
|
|
573
|
+
"@",
|
|
574
|
+
" "
|
|
575
|
+
],
|
|
576
|
+
provideCompletionItems: (d, n) => {
|
|
577
|
+
const l = d.getWordUntilPosition(n), c = {
|
|
578
|
+
startLineNumber: n.lineNumber,
|
|
579
|
+
endLineNumber: n.lineNumber,
|
|
580
|
+
startColumn: l.startColumn,
|
|
581
|
+
endColumn: l.endColumn
|
|
582
|
+
}, a = d.getLineContent(n.lineNumber).substring(0, n.column - 1), s = l.word.toLowerCase(), i = [];
|
|
583
|
+
if (s.length >= 1 && [
|
|
584
|
+
[
|
|
585
|
+
"public",
|
|
586
|
+
"公共访问",
|
|
587
|
+
"public "
|
|
588
|
+
],
|
|
589
|
+
[
|
|
590
|
+
"private",
|
|
591
|
+
"私有访问",
|
|
592
|
+
"private "
|
|
593
|
+
],
|
|
594
|
+
[
|
|
595
|
+
"protected",
|
|
596
|
+
"受保护访问",
|
|
597
|
+
"protected "
|
|
598
|
+
],
|
|
599
|
+
[
|
|
600
|
+
"static",
|
|
601
|
+
"静态",
|
|
602
|
+
"static "
|
|
603
|
+
],
|
|
604
|
+
[
|
|
605
|
+
"final",
|
|
606
|
+
"最终",
|
|
607
|
+
"final "
|
|
608
|
+
],
|
|
609
|
+
[
|
|
610
|
+
"abstract",
|
|
611
|
+
"抽象",
|
|
612
|
+
"abstract "
|
|
613
|
+
],
|
|
614
|
+
[
|
|
615
|
+
"native",
|
|
616
|
+
"本地方法",
|
|
617
|
+
"native "
|
|
618
|
+
],
|
|
619
|
+
[
|
|
620
|
+
"strictfp",
|
|
621
|
+
"严格浮点",
|
|
622
|
+
"strictfp "
|
|
623
|
+
],
|
|
624
|
+
[
|
|
625
|
+
"synchronized",
|
|
626
|
+
"同步",
|
|
627
|
+
"synchronized "
|
|
628
|
+
],
|
|
629
|
+
[
|
|
630
|
+
"volatile",
|
|
631
|
+
"易变",
|
|
632
|
+
"volatile "
|
|
633
|
+
],
|
|
634
|
+
[
|
|
635
|
+
"transient",
|
|
636
|
+
"瞬态",
|
|
637
|
+
"transient "
|
|
638
|
+
],
|
|
639
|
+
[
|
|
640
|
+
"class",
|
|
641
|
+
"类",
|
|
642
|
+
`class $1 {
|
|
643
|
+
$2
|
|
644
|
+
}`
|
|
645
|
+
],
|
|
646
|
+
[
|
|
647
|
+
"interface",
|
|
648
|
+
"接口",
|
|
649
|
+
`interface $1 {
|
|
650
|
+
$2
|
|
651
|
+
}`
|
|
652
|
+
],
|
|
653
|
+
[
|
|
654
|
+
"enum",
|
|
655
|
+
"枚举",
|
|
656
|
+
`enum $1 {
|
|
657
|
+
$2
|
|
658
|
+
}`
|
|
659
|
+
],
|
|
660
|
+
[
|
|
661
|
+
"record",
|
|
662
|
+
"记录类",
|
|
663
|
+
"record $1($2) {}"
|
|
664
|
+
],
|
|
665
|
+
[
|
|
666
|
+
"@interface",
|
|
667
|
+
"注解定义",
|
|
668
|
+
`@interface $1 {
|
|
669
|
+
$2
|
|
670
|
+
}`
|
|
671
|
+
],
|
|
672
|
+
[
|
|
673
|
+
"extends",
|
|
674
|
+
"继承",
|
|
675
|
+
"extends "
|
|
676
|
+
],
|
|
677
|
+
[
|
|
678
|
+
"implements",
|
|
679
|
+
"实现",
|
|
680
|
+
"implements "
|
|
681
|
+
],
|
|
682
|
+
[
|
|
683
|
+
"permits",
|
|
684
|
+
"允许",
|
|
685
|
+
"permits "
|
|
686
|
+
],
|
|
687
|
+
[
|
|
688
|
+
"sealed",
|
|
689
|
+
"密封类",
|
|
690
|
+
"sealed "
|
|
691
|
+
],
|
|
692
|
+
[
|
|
693
|
+
"non-sealed",
|
|
694
|
+
"非密封",
|
|
695
|
+
"non-sealed "
|
|
696
|
+
],
|
|
697
|
+
[
|
|
698
|
+
"package",
|
|
699
|
+
"包声明",
|
|
700
|
+
"package $1;"
|
|
701
|
+
],
|
|
702
|
+
[
|
|
703
|
+
"import",
|
|
704
|
+
"导入",
|
|
705
|
+
"import $1;"
|
|
706
|
+
],
|
|
707
|
+
[
|
|
708
|
+
"import static",
|
|
709
|
+
"静态导入",
|
|
710
|
+
"import static $1;"
|
|
711
|
+
],
|
|
712
|
+
[
|
|
713
|
+
"if",
|
|
714
|
+
"条件判断",
|
|
715
|
+
`if ($1) {
|
|
716
|
+
$2
|
|
717
|
+
}`
|
|
718
|
+
],
|
|
719
|
+
[
|
|
720
|
+
"else",
|
|
721
|
+
"否则",
|
|
722
|
+
`else {
|
|
723
|
+
$1
|
|
724
|
+
}`
|
|
725
|
+
],
|
|
726
|
+
[
|
|
727
|
+
"else if",
|
|
728
|
+
"否则如果",
|
|
729
|
+
`else if ($1) {
|
|
730
|
+
$2
|
|
731
|
+
}`
|
|
732
|
+
],
|
|
733
|
+
[
|
|
734
|
+
"switch",
|
|
735
|
+
"switch语句",
|
|
736
|
+
`switch ($1) {
|
|
737
|
+
case $2 -> $3;
|
|
738
|
+
default -> $4;
|
|
739
|
+
}`
|
|
740
|
+
],
|
|
741
|
+
[
|
|
742
|
+
"case",
|
|
743
|
+
"case分支",
|
|
744
|
+
"case $1 -> $2;"
|
|
745
|
+
],
|
|
746
|
+
[
|
|
747
|
+
"default",
|
|
748
|
+
"默认",
|
|
749
|
+
"default -> $1;"
|
|
750
|
+
],
|
|
751
|
+
[
|
|
752
|
+
"for",
|
|
753
|
+
"for循环",
|
|
754
|
+
`for (int i = 0; i < $1; i++) {
|
|
755
|
+
$2
|
|
756
|
+
}`
|
|
757
|
+
],
|
|
758
|
+
[
|
|
759
|
+
"while",
|
|
760
|
+
"while循环",
|
|
761
|
+
`while ($1) {
|
|
762
|
+
$2
|
|
763
|
+
}`
|
|
764
|
+
],
|
|
765
|
+
[
|
|
766
|
+
"do",
|
|
767
|
+
"do-while",
|
|
768
|
+
`do {
|
|
769
|
+
$1
|
|
770
|
+
} while ($2);`
|
|
771
|
+
],
|
|
772
|
+
[
|
|
773
|
+
"break",
|
|
774
|
+
"跳出循环",
|
|
775
|
+
"break;"
|
|
776
|
+
],
|
|
777
|
+
[
|
|
778
|
+
"continue",
|
|
779
|
+
"继续循环",
|
|
780
|
+
"continue;"
|
|
781
|
+
],
|
|
782
|
+
[
|
|
783
|
+
"return",
|
|
784
|
+
"返回",
|
|
785
|
+
"return $1;"
|
|
786
|
+
],
|
|
787
|
+
[
|
|
788
|
+
"yield",
|
|
789
|
+
"yield返回",
|
|
790
|
+
"yield $1;"
|
|
791
|
+
],
|
|
792
|
+
[
|
|
793
|
+
"try",
|
|
794
|
+
"try块",
|
|
795
|
+
`try {
|
|
796
|
+
$1
|
|
797
|
+
} catch (Exception e) {
|
|
798
|
+
$2
|
|
799
|
+
}`
|
|
800
|
+
],
|
|
801
|
+
[
|
|
802
|
+
"catch",
|
|
803
|
+
"catch块",
|
|
804
|
+
`catch ($1 e) {
|
|
805
|
+
$2
|
|
806
|
+
}`
|
|
807
|
+
],
|
|
808
|
+
[
|
|
809
|
+
"finally",
|
|
810
|
+
"finally块",
|
|
811
|
+
`finally {
|
|
812
|
+
$1
|
|
813
|
+
}`
|
|
814
|
+
],
|
|
815
|
+
[
|
|
816
|
+
"throw",
|
|
817
|
+
"抛出异常",
|
|
818
|
+
'throw new $1("$2");'
|
|
819
|
+
],
|
|
820
|
+
[
|
|
821
|
+
"throws",
|
|
822
|
+
"声明异常",
|
|
823
|
+
"throws $1"
|
|
824
|
+
],
|
|
825
|
+
[
|
|
826
|
+
"new",
|
|
827
|
+
"创建对象",
|
|
828
|
+
"new $1($2)"
|
|
829
|
+
],
|
|
830
|
+
[
|
|
831
|
+
"this",
|
|
832
|
+
"当前对象",
|
|
833
|
+
"this"
|
|
834
|
+
],
|
|
835
|
+
[
|
|
836
|
+
"super",
|
|
837
|
+
"父类引用",
|
|
838
|
+
"super"
|
|
839
|
+
],
|
|
840
|
+
[
|
|
841
|
+
"instanceof",
|
|
842
|
+
"类型检查",
|
|
843
|
+
"instanceof $1"
|
|
844
|
+
],
|
|
845
|
+
[
|
|
846
|
+
"var",
|
|
847
|
+
"类型推断",
|
|
848
|
+
"var $1 = $2;"
|
|
849
|
+
],
|
|
850
|
+
[
|
|
851
|
+
"assert",
|
|
852
|
+
"断言",
|
|
853
|
+
'assert $1 : "$2";'
|
|
854
|
+
],
|
|
855
|
+
[
|
|
856
|
+
"null",
|
|
857
|
+
"空值",
|
|
858
|
+
"null"
|
|
859
|
+
],
|
|
860
|
+
[
|
|
861
|
+
"true",
|
|
862
|
+
"真",
|
|
863
|
+
"true"
|
|
864
|
+
],
|
|
865
|
+
[
|
|
866
|
+
"false",
|
|
867
|
+
"假",
|
|
868
|
+
"false"
|
|
869
|
+
],
|
|
870
|
+
[
|
|
871
|
+
"void",
|
|
872
|
+
"无返回值",
|
|
873
|
+
"void"
|
|
874
|
+
],
|
|
875
|
+
[
|
|
876
|
+
"boolean",
|
|
877
|
+
"布尔型",
|
|
878
|
+
"boolean"
|
|
879
|
+
],
|
|
880
|
+
[
|
|
881
|
+
"byte",
|
|
882
|
+
"字节型",
|
|
883
|
+
"byte"
|
|
884
|
+
],
|
|
885
|
+
[
|
|
886
|
+
"short",
|
|
887
|
+
"短整型",
|
|
888
|
+
"short"
|
|
889
|
+
],
|
|
890
|
+
[
|
|
891
|
+
"int",
|
|
892
|
+
"整型",
|
|
893
|
+
"int"
|
|
894
|
+
],
|
|
895
|
+
[
|
|
896
|
+
"long",
|
|
897
|
+
"长整型",
|
|
898
|
+
"long"
|
|
899
|
+
],
|
|
900
|
+
[
|
|
901
|
+
"float",
|
|
902
|
+
"单精度浮点",
|
|
903
|
+
"float"
|
|
904
|
+
],
|
|
905
|
+
[
|
|
906
|
+
"double",
|
|
907
|
+
"双精度浮点",
|
|
908
|
+
"double"
|
|
909
|
+
],
|
|
910
|
+
[
|
|
911
|
+
"char",
|
|
912
|
+
"字符型",
|
|
913
|
+
"char"
|
|
914
|
+
],
|
|
915
|
+
[
|
|
916
|
+
"Boolean",
|
|
917
|
+
"布尔包装类",
|
|
918
|
+
"Boolean"
|
|
919
|
+
],
|
|
920
|
+
[
|
|
921
|
+
"Byte",
|
|
922
|
+
"字节包装类",
|
|
923
|
+
"Byte"
|
|
924
|
+
],
|
|
925
|
+
[
|
|
926
|
+
"Short",
|
|
927
|
+
"短整型包装类",
|
|
928
|
+
"Short"
|
|
929
|
+
],
|
|
930
|
+
[
|
|
931
|
+
"Integer",
|
|
932
|
+
"整型包装类",
|
|
933
|
+
"Integer"
|
|
934
|
+
],
|
|
935
|
+
[
|
|
936
|
+
"Long",
|
|
937
|
+
"长整型包装类",
|
|
938
|
+
"Long"
|
|
939
|
+
],
|
|
940
|
+
[
|
|
941
|
+
"Float",
|
|
942
|
+
"单精度包装类",
|
|
943
|
+
"Float"
|
|
944
|
+
],
|
|
945
|
+
[
|
|
946
|
+
"Double",
|
|
947
|
+
"双精度包装类",
|
|
948
|
+
"Double"
|
|
949
|
+
],
|
|
950
|
+
[
|
|
951
|
+
"Character",
|
|
952
|
+
"字符包装类",
|
|
953
|
+
"Character"
|
|
954
|
+
],
|
|
955
|
+
[
|
|
956
|
+
"Number",
|
|
957
|
+
"数字基类",
|
|
958
|
+
"Number"
|
|
959
|
+
],
|
|
960
|
+
[
|
|
961
|
+
"String",
|
|
962
|
+
"字符串",
|
|
963
|
+
"String"
|
|
964
|
+
],
|
|
965
|
+
[
|
|
966
|
+
"StringBuilder",
|
|
967
|
+
"字符串构建器",
|
|
968
|
+
"StringBuilder"
|
|
969
|
+
],
|
|
970
|
+
[
|
|
971
|
+
"StringBuffer",
|
|
972
|
+
"线程安全字符串",
|
|
973
|
+
"StringBuffer"
|
|
974
|
+
],
|
|
975
|
+
[
|
|
976
|
+
"Object",
|
|
977
|
+
"对象基类",
|
|
978
|
+
"Object"
|
|
979
|
+
],
|
|
980
|
+
[
|
|
981
|
+
"Class",
|
|
982
|
+
"类对象",
|
|
983
|
+
"Class<$1>"
|
|
984
|
+
],
|
|
985
|
+
[
|
|
986
|
+
"System",
|
|
987
|
+
"系统类",
|
|
988
|
+
"System"
|
|
989
|
+
],
|
|
990
|
+
[
|
|
991
|
+
"Math",
|
|
992
|
+
"数学类",
|
|
993
|
+
"Math"
|
|
994
|
+
],
|
|
995
|
+
[
|
|
996
|
+
"Arrays",
|
|
997
|
+
"数组工具",
|
|
998
|
+
"Arrays"
|
|
999
|
+
],
|
|
1000
|
+
[
|
|
1001
|
+
"Objects",
|
|
1002
|
+
"对象工具",
|
|
1003
|
+
"Objects"
|
|
1004
|
+
],
|
|
1005
|
+
[
|
|
1006
|
+
"Collections",
|
|
1007
|
+
"集合工具",
|
|
1008
|
+
"Collections"
|
|
1009
|
+
],
|
|
1010
|
+
[
|
|
1011
|
+
"List",
|
|
1012
|
+
"列表接口",
|
|
1013
|
+
"List<$1>"
|
|
1014
|
+
],
|
|
1015
|
+
[
|
|
1016
|
+
"ArrayList",
|
|
1017
|
+
"数组列表",
|
|
1018
|
+
"new ArrayList<$1>()"
|
|
1019
|
+
],
|
|
1020
|
+
[
|
|
1021
|
+
"LinkedList",
|
|
1022
|
+
"链表",
|
|
1023
|
+
"new LinkedList<$1>()"
|
|
1024
|
+
],
|
|
1025
|
+
[
|
|
1026
|
+
"Set",
|
|
1027
|
+
"集合接口",
|
|
1028
|
+
"Set<$1>"
|
|
1029
|
+
],
|
|
1030
|
+
[
|
|
1031
|
+
"HashSet",
|
|
1032
|
+
"哈希集合",
|
|
1033
|
+
"new HashSet<$1>()"
|
|
1034
|
+
],
|
|
1035
|
+
[
|
|
1036
|
+
"TreeSet",
|
|
1037
|
+
"树集合",
|
|
1038
|
+
"new TreeSet<$1>()"
|
|
1039
|
+
],
|
|
1040
|
+
[
|
|
1041
|
+
"LinkedHashSet",
|
|
1042
|
+
"有序哈希集合",
|
|
1043
|
+
"new LinkedHashSet<$1>()"
|
|
1044
|
+
],
|
|
1045
|
+
[
|
|
1046
|
+
"Map",
|
|
1047
|
+
"映射接口",
|
|
1048
|
+
"Map<$1, $2>"
|
|
1049
|
+
],
|
|
1050
|
+
[
|
|
1051
|
+
"HashMap",
|
|
1052
|
+
"哈希映射",
|
|
1053
|
+
"new HashMap<$1, $2>()"
|
|
1054
|
+
],
|
|
1055
|
+
[
|
|
1056
|
+
"TreeMap",
|
|
1057
|
+
"树映射",
|
|
1058
|
+
"new TreeMap<$1, $2>()"
|
|
1059
|
+
],
|
|
1060
|
+
[
|
|
1061
|
+
"LinkedHashMap",
|
|
1062
|
+
"有序哈希映射",
|
|
1063
|
+
"new LinkedHashMap<$1, $2>()"
|
|
1064
|
+
],
|
|
1065
|
+
[
|
|
1066
|
+
"ConcurrentHashMap",
|
|
1067
|
+
"并发哈希映射",
|
|
1068
|
+
"new ConcurrentHashMap<$1, $2>()"
|
|
1069
|
+
],
|
|
1070
|
+
[
|
|
1071
|
+
"Queue",
|
|
1072
|
+
"队列接口",
|
|
1073
|
+
"Queue<$1>"
|
|
1074
|
+
],
|
|
1075
|
+
[
|
|
1076
|
+
"Deque",
|
|
1077
|
+
"双端队列",
|
|
1078
|
+
"Deque<$1>"
|
|
1079
|
+
],
|
|
1080
|
+
[
|
|
1081
|
+
"Stack",
|
|
1082
|
+
"栈",
|
|
1083
|
+
"new Stack<$1>()"
|
|
1084
|
+
],
|
|
1085
|
+
[
|
|
1086
|
+
"Vector",
|
|
1087
|
+
"向量",
|
|
1088
|
+
"new Vector<$1>()"
|
|
1089
|
+
],
|
|
1090
|
+
[
|
|
1091
|
+
"Collection",
|
|
1092
|
+
"集合接口",
|
|
1093
|
+
"Collection<$1>"
|
|
1094
|
+
],
|
|
1095
|
+
[
|
|
1096
|
+
"Iterable",
|
|
1097
|
+
"可迭代接口",
|
|
1098
|
+
"Iterable<$1>"
|
|
1099
|
+
],
|
|
1100
|
+
[
|
|
1101
|
+
"Iterator",
|
|
1102
|
+
"迭代器",
|
|
1103
|
+
"Iterator<$1>"
|
|
1104
|
+
],
|
|
1105
|
+
[
|
|
1106
|
+
"Optional",
|
|
1107
|
+
"Optional容器",
|
|
1108
|
+
"Optional<$1>"
|
|
1109
|
+
],
|
|
1110
|
+
[
|
|
1111
|
+
"OptionalInt",
|
|
1112
|
+
"int的Optional",
|
|
1113
|
+
"OptionalInt"
|
|
1114
|
+
],
|
|
1115
|
+
[
|
|
1116
|
+
"OptionalLong",
|
|
1117
|
+
"long的Optional",
|
|
1118
|
+
"OptionalLong"
|
|
1119
|
+
],
|
|
1120
|
+
[
|
|
1121
|
+
"OptionalDouble",
|
|
1122
|
+
"double的Optional",
|
|
1123
|
+
"OptionalDouble"
|
|
1124
|
+
],
|
|
1125
|
+
[
|
|
1126
|
+
"Stream",
|
|
1127
|
+
"流",
|
|
1128
|
+
"Stream<$1>"
|
|
1129
|
+
],
|
|
1130
|
+
[
|
|
1131
|
+
"IntStream",
|
|
1132
|
+
"int流",
|
|
1133
|
+
"IntStream"
|
|
1134
|
+
],
|
|
1135
|
+
[
|
|
1136
|
+
"LongStream",
|
|
1137
|
+
"long流",
|
|
1138
|
+
"LongStream"
|
|
1139
|
+
],
|
|
1140
|
+
[
|
|
1141
|
+
"DoubleStream",
|
|
1142
|
+
"double流",
|
|
1143
|
+
"DoubleStream"
|
|
1144
|
+
],
|
|
1145
|
+
[
|
|
1146
|
+
"Collectors",
|
|
1147
|
+
"收集器",
|
|
1148
|
+
"Collectors"
|
|
1149
|
+
],
|
|
1150
|
+
[
|
|
1151
|
+
"Function",
|
|
1152
|
+
"函数接口",
|
|
1153
|
+
"Function<$1, $2>"
|
|
1154
|
+
],
|
|
1155
|
+
[
|
|
1156
|
+
"BiFunction",
|
|
1157
|
+
"双参数函数",
|
|
1158
|
+
"BiFunction<$1, $2, $3>"
|
|
1159
|
+
],
|
|
1160
|
+
[
|
|
1161
|
+
"Consumer",
|
|
1162
|
+
"消费者接口",
|
|
1163
|
+
"Consumer<$1>"
|
|
1164
|
+
],
|
|
1165
|
+
[
|
|
1166
|
+
"BiConsumer",
|
|
1167
|
+
"双参数消费者",
|
|
1168
|
+
"BiConsumer<$1, $2>"
|
|
1169
|
+
],
|
|
1170
|
+
[
|
|
1171
|
+
"Supplier",
|
|
1172
|
+
"供应者接口",
|
|
1173
|
+
"Supplier<$1>"
|
|
1174
|
+
],
|
|
1175
|
+
[
|
|
1176
|
+
"Predicate",
|
|
1177
|
+
"断言接口",
|
|
1178
|
+
"Predicate<$1>"
|
|
1179
|
+
],
|
|
1180
|
+
[
|
|
1181
|
+
"BiPredicate",
|
|
1182
|
+
"双参数断言",
|
|
1183
|
+
"BiPredicate<$1, $2>"
|
|
1184
|
+
],
|
|
1185
|
+
[
|
|
1186
|
+
"UnaryOperator",
|
|
1187
|
+
"一元操作符",
|
|
1188
|
+
"UnaryOperator<$1>"
|
|
1189
|
+
],
|
|
1190
|
+
[
|
|
1191
|
+
"BinaryOperator",
|
|
1192
|
+
"二元操作符",
|
|
1193
|
+
"BinaryOperator<$1>"
|
|
1194
|
+
],
|
|
1195
|
+
[
|
|
1196
|
+
"Comparator",
|
|
1197
|
+
"比较器",
|
|
1198
|
+
"Comparator<$1>"
|
|
1199
|
+
],
|
|
1200
|
+
[
|
|
1201
|
+
"Comparable",
|
|
1202
|
+
"可比较接口",
|
|
1203
|
+
"Comparable<$1>"
|
|
1204
|
+
],
|
|
1205
|
+
[
|
|
1206
|
+
"Runnable",
|
|
1207
|
+
"可运行接口",
|
|
1208
|
+
"Runnable"
|
|
1209
|
+
],
|
|
1210
|
+
[
|
|
1211
|
+
"Callable",
|
|
1212
|
+
"可调用接口",
|
|
1213
|
+
"Callable<$1>"
|
|
1214
|
+
],
|
|
1215
|
+
[
|
|
1216
|
+
"Exception",
|
|
1217
|
+
"异常",
|
|
1218
|
+
"Exception"
|
|
1219
|
+
],
|
|
1220
|
+
[
|
|
1221
|
+
"RuntimeException",
|
|
1222
|
+
"运行时异常",
|
|
1223
|
+
"RuntimeException"
|
|
1224
|
+
],
|
|
1225
|
+
[
|
|
1226
|
+
"NullPointerException",
|
|
1227
|
+
"空指针异常",
|
|
1228
|
+
"NullPointerException"
|
|
1229
|
+
],
|
|
1230
|
+
[
|
|
1231
|
+
"IllegalArgumentException",
|
|
1232
|
+
"非法参数异常",
|
|
1233
|
+
"IllegalArgumentException"
|
|
1234
|
+
],
|
|
1235
|
+
[
|
|
1236
|
+
"IllegalStateException",
|
|
1237
|
+
"非法状态异常",
|
|
1238
|
+
"IllegalStateException"
|
|
1239
|
+
],
|
|
1240
|
+
[
|
|
1241
|
+
"IndexOutOfBoundsException",
|
|
1242
|
+
"索引越界异常",
|
|
1243
|
+
"IndexOutOfBoundsException"
|
|
1244
|
+
],
|
|
1245
|
+
[
|
|
1246
|
+
"IOException",
|
|
1247
|
+
"IO异常",
|
|
1248
|
+
"IOException"
|
|
1249
|
+
],
|
|
1250
|
+
[
|
|
1251
|
+
"FileNotFoundException",
|
|
1252
|
+
"文件未找到异常",
|
|
1253
|
+
"FileNotFoundException"
|
|
1254
|
+
],
|
|
1255
|
+
[
|
|
1256
|
+
"SQLException",
|
|
1257
|
+
"SQL异常",
|
|
1258
|
+
"SQLException"
|
|
1259
|
+
],
|
|
1260
|
+
[
|
|
1261
|
+
"ClassNotFoundException",
|
|
1262
|
+
"类未找到异常",
|
|
1263
|
+
"ClassNotFoundException"
|
|
1264
|
+
],
|
|
1265
|
+
[
|
|
1266
|
+
"NoSuchMethodException",
|
|
1267
|
+
"方法未找到异常",
|
|
1268
|
+
"NoSuchMethodException"
|
|
1269
|
+
],
|
|
1270
|
+
[
|
|
1271
|
+
"Error",
|
|
1272
|
+
"错误",
|
|
1273
|
+
"Error"
|
|
1274
|
+
],
|
|
1275
|
+
[
|
|
1276
|
+
"Throwable",
|
|
1277
|
+
"可抛出",
|
|
1278
|
+
"Throwable"
|
|
1279
|
+
],
|
|
1280
|
+
[
|
|
1281
|
+
"Thread",
|
|
1282
|
+
"线程",
|
|
1283
|
+
"Thread"
|
|
1284
|
+
],
|
|
1285
|
+
[
|
|
1286
|
+
"Future",
|
|
1287
|
+
"Future接口",
|
|
1288
|
+
"Future<$1>"
|
|
1289
|
+
],
|
|
1290
|
+
[
|
|
1291
|
+
"CompletableFuture",
|
|
1292
|
+
"可完成Future",
|
|
1293
|
+
"CompletableFuture<$1>"
|
|
1294
|
+
],
|
|
1295
|
+
[
|
|
1296
|
+
"ExecutorService",
|
|
1297
|
+
"执行器服务",
|
|
1298
|
+
"ExecutorService"
|
|
1299
|
+
],
|
|
1300
|
+
[
|
|
1301
|
+
"Executors",
|
|
1302
|
+
"执行器工厂",
|
|
1303
|
+
"Executors"
|
|
1304
|
+
],
|
|
1305
|
+
[
|
|
1306
|
+
"ThreadPoolExecutor",
|
|
1307
|
+
"线程池执行器",
|
|
1308
|
+
"ThreadPoolExecutor"
|
|
1309
|
+
],
|
|
1310
|
+
[
|
|
1311
|
+
"CountDownLatch",
|
|
1312
|
+
"倒计时门闩",
|
|
1313
|
+
"CountDownLatch"
|
|
1314
|
+
],
|
|
1315
|
+
[
|
|
1316
|
+
"CyclicBarrier",
|
|
1317
|
+
"循环屏障",
|
|
1318
|
+
"CyclicBarrier"
|
|
1319
|
+
],
|
|
1320
|
+
[
|
|
1321
|
+
"Semaphore",
|
|
1322
|
+
"信号量",
|
|
1323
|
+
"Semaphore"
|
|
1324
|
+
],
|
|
1325
|
+
[
|
|
1326
|
+
"ReentrantLock",
|
|
1327
|
+
"可重入锁",
|
|
1328
|
+
"ReentrantLock"
|
|
1329
|
+
],
|
|
1330
|
+
[
|
|
1331
|
+
"AtomicInteger",
|
|
1332
|
+
"原子整数",
|
|
1333
|
+
"AtomicInteger"
|
|
1334
|
+
],
|
|
1335
|
+
[
|
|
1336
|
+
"AtomicLong",
|
|
1337
|
+
"原子长整数",
|
|
1338
|
+
"AtomicLong"
|
|
1339
|
+
],
|
|
1340
|
+
[
|
|
1341
|
+
"AtomicBoolean",
|
|
1342
|
+
"原子布尔",
|
|
1343
|
+
"AtomicBoolean"
|
|
1344
|
+
],
|
|
1345
|
+
[
|
|
1346
|
+
"AtomicReference",
|
|
1347
|
+
"原子引用",
|
|
1348
|
+
"AtomicReference<$1>"
|
|
1349
|
+
],
|
|
1350
|
+
[
|
|
1351
|
+
"Date",
|
|
1352
|
+
"日期(旧)",
|
|
1353
|
+
"Date"
|
|
1354
|
+
],
|
|
1355
|
+
[
|
|
1356
|
+
"Calendar",
|
|
1357
|
+
"日历(旧)",
|
|
1358
|
+
"Calendar"
|
|
1359
|
+
],
|
|
1360
|
+
[
|
|
1361
|
+
"LocalDate",
|
|
1362
|
+
"本地日期",
|
|
1363
|
+
"LocalDate"
|
|
1364
|
+
],
|
|
1365
|
+
[
|
|
1366
|
+
"LocalTime",
|
|
1367
|
+
"本地时间",
|
|
1368
|
+
"LocalTime"
|
|
1369
|
+
],
|
|
1370
|
+
[
|
|
1371
|
+
"LocalDateTime",
|
|
1372
|
+
"本地日期时间",
|
|
1373
|
+
"LocalDateTime"
|
|
1374
|
+
],
|
|
1375
|
+
[
|
|
1376
|
+
"ZonedDateTime",
|
|
1377
|
+
"带时区日期时间",
|
|
1378
|
+
"ZonedDateTime"
|
|
1379
|
+
],
|
|
1380
|
+
[
|
|
1381
|
+
"Instant",
|
|
1382
|
+
"时间戳",
|
|
1383
|
+
"Instant"
|
|
1384
|
+
],
|
|
1385
|
+
[
|
|
1386
|
+
"Duration",
|
|
1387
|
+
"时间段",
|
|
1388
|
+
"Duration"
|
|
1389
|
+
],
|
|
1390
|
+
[
|
|
1391
|
+
"Period",
|
|
1392
|
+
"日期段",
|
|
1393
|
+
"Period"
|
|
1394
|
+
],
|
|
1395
|
+
[
|
|
1396
|
+
"DateTimeFormatter",
|
|
1397
|
+
"日期格式化",
|
|
1398
|
+
"DateTimeFormatter"
|
|
1399
|
+
],
|
|
1400
|
+
[
|
|
1401
|
+
"File",
|
|
1402
|
+
"文件",
|
|
1403
|
+
"File"
|
|
1404
|
+
],
|
|
1405
|
+
[
|
|
1406
|
+
"Path",
|
|
1407
|
+
"路径",
|
|
1408
|
+
"Path"
|
|
1409
|
+
],
|
|
1410
|
+
[
|
|
1411
|
+
"Paths",
|
|
1412
|
+
"路径工具",
|
|
1413
|
+
"Paths"
|
|
1414
|
+
],
|
|
1415
|
+
[
|
|
1416
|
+
"Files",
|
|
1417
|
+
"文件工具",
|
|
1418
|
+
"Files"
|
|
1419
|
+
],
|
|
1420
|
+
[
|
|
1421
|
+
"InputStream",
|
|
1422
|
+
"输入流",
|
|
1423
|
+
"InputStream"
|
|
1424
|
+
],
|
|
1425
|
+
[
|
|
1426
|
+
"OutputStream",
|
|
1427
|
+
"输出流",
|
|
1428
|
+
"OutputStream"
|
|
1429
|
+
],
|
|
1430
|
+
[
|
|
1431
|
+
"FileInputStream",
|
|
1432
|
+
"文件输入流",
|
|
1433
|
+
"FileInputStream"
|
|
1434
|
+
],
|
|
1435
|
+
[
|
|
1436
|
+
"FileOutputStream",
|
|
1437
|
+
"文件输出流",
|
|
1438
|
+
"FileOutputStream"
|
|
1439
|
+
],
|
|
1440
|
+
[
|
|
1441
|
+
"BufferedReader",
|
|
1442
|
+
"缓冲读取器",
|
|
1443
|
+
"BufferedReader"
|
|
1444
|
+
],
|
|
1445
|
+
[
|
|
1446
|
+
"BufferedWriter",
|
|
1447
|
+
"缓冲写入器",
|
|
1448
|
+
"BufferedWriter"
|
|
1449
|
+
],
|
|
1450
|
+
[
|
|
1451
|
+
"Reader",
|
|
1452
|
+
"读取器",
|
|
1453
|
+
"Reader"
|
|
1454
|
+
],
|
|
1455
|
+
[
|
|
1456
|
+
"Writer",
|
|
1457
|
+
"写入器",
|
|
1458
|
+
"Writer"
|
|
1459
|
+
],
|
|
1460
|
+
[
|
|
1461
|
+
"BigDecimal",
|
|
1462
|
+
"高精度小数",
|
|
1463
|
+
"BigDecimal"
|
|
1464
|
+
],
|
|
1465
|
+
[
|
|
1466
|
+
"BigInteger",
|
|
1467
|
+
"高精度整数",
|
|
1468
|
+
"BigInteger"
|
|
1469
|
+
],
|
|
1470
|
+
[
|
|
1471
|
+
"UUID",
|
|
1472
|
+
"UUID",
|
|
1473
|
+
"UUID"
|
|
1474
|
+
],
|
|
1475
|
+
[
|
|
1476
|
+
"Random",
|
|
1477
|
+
"随机数",
|
|
1478
|
+
"Random"
|
|
1479
|
+
],
|
|
1480
|
+
[
|
|
1481
|
+
"Pattern",
|
|
1482
|
+
"正则模式",
|
|
1483
|
+
"Pattern"
|
|
1484
|
+
],
|
|
1485
|
+
[
|
|
1486
|
+
"Matcher",
|
|
1487
|
+
"正则匹配器",
|
|
1488
|
+
"Matcher"
|
|
1489
|
+
],
|
|
1490
|
+
[
|
|
1491
|
+
"Scanner",
|
|
1492
|
+
"扫描器",
|
|
1493
|
+
"Scanner"
|
|
1494
|
+
],
|
|
1495
|
+
[
|
|
1496
|
+
"Enum",
|
|
1497
|
+
"枚举基类",
|
|
1498
|
+
"Enum"
|
|
1499
|
+
],
|
|
1500
|
+
[
|
|
1501
|
+
"Annotation",
|
|
1502
|
+
"注解接口",
|
|
1503
|
+
"Annotation"
|
|
1504
|
+
],
|
|
1505
|
+
[
|
|
1506
|
+
"Override",
|
|
1507
|
+
"重写注解",
|
|
1508
|
+
"@Override"
|
|
1509
|
+
],
|
|
1510
|
+
[
|
|
1511
|
+
"Deprecated",
|
|
1512
|
+
"弃用注解",
|
|
1513
|
+
"@Deprecated"
|
|
1514
|
+
],
|
|
1515
|
+
[
|
|
1516
|
+
"SuppressWarnings",
|
|
1517
|
+
"抑制警告",
|
|
1518
|
+
'@SuppressWarnings("$1")'
|
|
1519
|
+
]
|
|
1520
|
+
].filter(([e]) => e.toLowerCase().startsWith(s)).forEach(([e, r, o]) => {
|
|
1521
|
+
i.push({
|
|
1522
|
+
label: e,
|
|
1523
|
+
detail: r,
|
|
1524
|
+
insertText: o,
|
|
1525
|
+
range: c,
|
|
1526
|
+
kind: t.languages.CompletionItemKind.Keyword,
|
|
1527
|
+
insertTextRules: t.languages.CompletionItemInsertTextRule.InsertAsSnippet,
|
|
1528
|
+
sortText: "0" + e
|
|
1529
|
+
});
|
|
1530
|
+
}), a.endsWith("@") || /@\w*$/.test(a)) {
|
|
1531
|
+
const e = [
|
|
1532
|
+
[
|
|
1533
|
+
"@Override",
|
|
1534
|
+
"重写方法",
|
|
1535
|
+
"@Override"
|
|
1536
|
+
],
|
|
1537
|
+
[
|
|
1538
|
+
"@Deprecated",
|
|
1539
|
+
"已弃用",
|
|
1540
|
+
"@Deprecated"
|
|
1541
|
+
],
|
|
1542
|
+
[
|
|
1543
|
+
"@SuppressWarnings",
|
|
1544
|
+
"抑制警告",
|
|
1545
|
+
'@SuppressWarnings("$1")'
|
|
1546
|
+
],
|
|
1547
|
+
[
|
|
1548
|
+
"@FunctionalInterface",
|
|
1549
|
+
"函数式接口",
|
|
1550
|
+
"@FunctionalInterface"
|
|
1551
|
+
],
|
|
1552
|
+
[
|
|
1553
|
+
"@SafeVarargs",
|
|
1554
|
+
"安全可变参数",
|
|
1555
|
+
"@SafeVarargs"
|
|
1556
|
+
],
|
|
1557
|
+
[
|
|
1558
|
+
"@Autowired",
|
|
1559
|
+
"Spring自动注入",
|
|
1560
|
+
"@Autowired"
|
|
1561
|
+
],
|
|
1562
|
+
[
|
|
1563
|
+
"@Component",
|
|
1564
|
+
"Spring组件",
|
|
1565
|
+
"@Component"
|
|
1566
|
+
],
|
|
1567
|
+
[
|
|
1568
|
+
"@Service",
|
|
1569
|
+
"Spring服务",
|
|
1570
|
+
"@Service"
|
|
1571
|
+
],
|
|
1572
|
+
[
|
|
1573
|
+
"@Repository",
|
|
1574
|
+
"Spring仓库",
|
|
1575
|
+
"@Repository"
|
|
1576
|
+
],
|
|
1577
|
+
[
|
|
1578
|
+
"@Controller",
|
|
1579
|
+
"Spring控制器",
|
|
1580
|
+
"@Controller"
|
|
1581
|
+
],
|
|
1582
|
+
[
|
|
1583
|
+
"@RestController",
|
|
1584
|
+
"REST控制器",
|
|
1585
|
+
"@RestController"
|
|
1586
|
+
],
|
|
1587
|
+
[
|
|
1588
|
+
"@RequestMapping",
|
|
1589
|
+
"请求映射",
|
|
1590
|
+
'@RequestMapping("$1")'
|
|
1591
|
+
],
|
|
1592
|
+
[
|
|
1593
|
+
"@GetMapping",
|
|
1594
|
+
"GET请求",
|
|
1595
|
+
'@GetMapping("$1")'
|
|
1596
|
+
],
|
|
1597
|
+
[
|
|
1598
|
+
"@PostMapping",
|
|
1599
|
+
"POST请求",
|
|
1600
|
+
'@PostMapping("$1")'
|
|
1601
|
+
],
|
|
1602
|
+
[
|
|
1603
|
+
"@PutMapping",
|
|
1604
|
+
"PUT请求",
|
|
1605
|
+
'@PutMapping("$1")'
|
|
1606
|
+
],
|
|
1607
|
+
[
|
|
1608
|
+
"@DeleteMapping",
|
|
1609
|
+
"DELETE请求",
|
|
1610
|
+
'@DeleteMapping("$1")'
|
|
1611
|
+
],
|
|
1612
|
+
[
|
|
1613
|
+
"@PathVariable",
|
|
1614
|
+
"路径变量",
|
|
1615
|
+
"@PathVariable"
|
|
1616
|
+
],
|
|
1617
|
+
[
|
|
1618
|
+
"@RequestParam",
|
|
1619
|
+
"请求参数",
|
|
1620
|
+
"@RequestParam"
|
|
1621
|
+
],
|
|
1622
|
+
[
|
|
1623
|
+
"@RequestBody",
|
|
1624
|
+
"请求体",
|
|
1625
|
+
"@RequestBody"
|
|
1626
|
+
],
|
|
1627
|
+
[
|
|
1628
|
+
"@ResponseBody",
|
|
1629
|
+
"响应体",
|
|
1630
|
+
"@ResponseBody"
|
|
1631
|
+
],
|
|
1632
|
+
[
|
|
1633
|
+
"@Bean",
|
|
1634
|
+
"Spring Bean",
|
|
1635
|
+
"@Bean"
|
|
1636
|
+
],
|
|
1637
|
+
[
|
|
1638
|
+
"@Configuration",
|
|
1639
|
+
"配置类",
|
|
1640
|
+
"@Configuration"
|
|
1641
|
+
],
|
|
1642
|
+
[
|
|
1643
|
+
"@Value",
|
|
1644
|
+
"注入值",
|
|
1645
|
+
'@Value("${$1}")'
|
|
1646
|
+
],
|
|
1647
|
+
[
|
|
1648
|
+
"@Transactional",
|
|
1649
|
+
"事务",
|
|
1650
|
+
"@Transactional"
|
|
1651
|
+
],
|
|
1652
|
+
[
|
|
1653
|
+
"@Slf4j",
|
|
1654
|
+
"Lombok日志",
|
|
1655
|
+
"@Slf4j"
|
|
1656
|
+
],
|
|
1657
|
+
[
|
|
1658
|
+
"@Data",
|
|
1659
|
+
"Lombok数据类",
|
|
1660
|
+
"@Data"
|
|
1661
|
+
],
|
|
1662
|
+
[
|
|
1663
|
+
"@Getter",
|
|
1664
|
+
"Lombok Getter",
|
|
1665
|
+
"@Getter"
|
|
1666
|
+
],
|
|
1667
|
+
[
|
|
1668
|
+
"@Setter",
|
|
1669
|
+
"Lombok Setter",
|
|
1670
|
+
"@Setter"
|
|
1671
|
+
],
|
|
1672
|
+
[
|
|
1673
|
+
"@NoArgsConstructor",
|
|
1674
|
+
"无参构造",
|
|
1675
|
+
"@NoArgsConstructor"
|
|
1676
|
+
],
|
|
1677
|
+
[
|
|
1678
|
+
"@AllArgsConstructor",
|
|
1679
|
+
"全参构造",
|
|
1680
|
+
"@AllArgsConstructor"
|
|
1681
|
+
],
|
|
1682
|
+
[
|
|
1683
|
+
"@Builder",
|
|
1684
|
+
"Lombok Builder",
|
|
1685
|
+
"@Builder"
|
|
1686
|
+
],
|
|
1687
|
+
[
|
|
1688
|
+
"@ToString",
|
|
1689
|
+
"Lombok ToString",
|
|
1690
|
+
"@ToString"
|
|
1691
|
+
],
|
|
1692
|
+
[
|
|
1693
|
+
"@EqualsAndHashCode",
|
|
1694
|
+
"Lombok Equals/HashCode",
|
|
1695
|
+
"@EqualsAndHashCode"
|
|
1696
|
+
],
|
|
1697
|
+
[
|
|
1698
|
+
"@Test",
|
|
1699
|
+
"JUnit测试",
|
|
1700
|
+
"@Test"
|
|
1701
|
+
],
|
|
1702
|
+
[
|
|
1703
|
+
"@BeforeEach",
|
|
1704
|
+
"JUnit前置",
|
|
1705
|
+
"@BeforeEach"
|
|
1706
|
+
],
|
|
1707
|
+
[
|
|
1708
|
+
"@AfterEach",
|
|
1709
|
+
"JUnit后置",
|
|
1710
|
+
"@AfterEach"
|
|
1711
|
+
],
|
|
1712
|
+
[
|
|
1713
|
+
"@Nullable",
|
|
1714
|
+
"可空",
|
|
1715
|
+
"@Nullable"
|
|
1716
|
+
],
|
|
1717
|
+
[
|
|
1718
|
+
"@NotNull",
|
|
1719
|
+
"非空",
|
|
1720
|
+
"@NotNull"
|
|
1721
|
+
],
|
|
1722
|
+
[
|
|
1723
|
+
"@Valid",
|
|
1724
|
+
"验证",
|
|
1725
|
+
"@Valid"
|
|
1726
|
+
]
|
|
1727
|
+
], r = a.lastIndexOf("@"), o = a.substring(r + 1).toLowerCase(), p = {
|
|
1728
|
+
startLineNumber: n.lineNumber,
|
|
1729
|
+
endLineNumber: n.lineNumber,
|
|
1730
|
+
startColumn: r + 1,
|
|
1731
|
+
endColumn: n.column
|
|
1732
|
+
};
|
|
1733
|
+
e.filter(([u]) => o.length === 0 || u.toLowerCase().includes(o)).forEach(([u, m, g]) => {
|
|
1734
|
+
i.push({
|
|
1735
|
+
label: u,
|
|
1736
|
+
detail: m,
|
|
1737
|
+
insertText: g,
|
|
1738
|
+
range: p,
|
|
1739
|
+
kind: t.languages.CompletionItemKind.Interface,
|
|
1740
|
+
insertTextRules: t.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
1741
|
+
});
|
|
1742
|
+
});
|
|
1743
|
+
}
|
|
1744
|
+
return a.endsWith(".") && [
|
|
1745
|
+
[
|
|
1746
|
+
"toString()",
|
|
1747
|
+
"转字符串",
|
|
1748
|
+
"toString()"
|
|
1749
|
+
],
|
|
1750
|
+
[
|
|
1751
|
+
"equals()",
|
|
1752
|
+
"比较相等",
|
|
1753
|
+
"equals($1)"
|
|
1754
|
+
],
|
|
1755
|
+
[
|
|
1756
|
+
"hashCode()",
|
|
1757
|
+
"哈希码",
|
|
1758
|
+
"hashCode()"
|
|
1759
|
+
],
|
|
1760
|
+
[
|
|
1761
|
+
"getClass()",
|
|
1762
|
+
"获取类",
|
|
1763
|
+
"getClass()"
|
|
1764
|
+
],
|
|
1765
|
+
[
|
|
1766
|
+
"length()",
|
|
1767
|
+
"字符串长度",
|
|
1768
|
+
"length()"
|
|
1769
|
+
],
|
|
1770
|
+
[
|
|
1771
|
+
"isEmpty()",
|
|
1772
|
+
"是否为空",
|
|
1773
|
+
"isEmpty()"
|
|
1774
|
+
],
|
|
1775
|
+
[
|
|
1776
|
+
"isBlank()",
|
|
1777
|
+
"是否空白",
|
|
1778
|
+
"isBlank()"
|
|
1779
|
+
],
|
|
1780
|
+
[
|
|
1781
|
+
"trim()",
|
|
1782
|
+
"去除空格",
|
|
1783
|
+
"trim()"
|
|
1784
|
+
],
|
|
1785
|
+
[
|
|
1786
|
+
"strip()",
|
|
1787
|
+
"去除空白",
|
|
1788
|
+
"strip()"
|
|
1789
|
+
],
|
|
1790
|
+
[
|
|
1791
|
+
"toLowerCase()",
|
|
1792
|
+
"转小写",
|
|
1793
|
+
"toLowerCase()"
|
|
1794
|
+
],
|
|
1795
|
+
[
|
|
1796
|
+
"toUpperCase()",
|
|
1797
|
+
"转大写",
|
|
1798
|
+
"toUpperCase()"
|
|
1799
|
+
],
|
|
1800
|
+
[
|
|
1801
|
+
"substring()",
|
|
1802
|
+
"截取子串",
|
|
1803
|
+
"substring($1, $2)"
|
|
1804
|
+
],
|
|
1805
|
+
[
|
|
1806
|
+
"charAt()",
|
|
1807
|
+
"获取字符",
|
|
1808
|
+
"charAt($1)"
|
|
1809
|
+
],
|
|
1810
|
+
[
|
|
1811
|
+
"indexOf()",
|
|
1812
|
+
"查找索引",
|
|
1813
|
+
"indexOf($1)"
|
|
1814
|
+
],
|
|
1815
|
+
[
|
|
1816
|
+
"lastIndexOf()",
|
|
1817
|
+
"最后索引",
|
|
1818
|
+
"lastIndexOf($1)"
|
|
1819
|
+
],
|
|
1820
|
+
[
|
|
1821
|
+
"contains()",
|
|
1822
|
+
"是否包含",
|
|
1823
|
+
"contains($1)"
|
|
1824
|
+
],
|
|
1825
|
+
[
|
|
1826
|
+
"startsWith()",
|
|
1827
|
+
"是否开头",
|
|
1828
|
+
"startsWith($1)"
|
|
1829
|
+
],
|
|
1830
|
+
[
|
|
1831
|
+
"endsWith()",
|
|
1832
|
+
"是否结尾",
|
|
1833
|
+
"endsWith($1)"
|
|
1834
|
+
],
|
|
1835
|
+
[
|
|
1836
|
+
"replace()",
|
|
1837
|
+
"替换",
|
|
1838
|
+
"replace($1, $2)"
|
|
1839
|
+
],
|
|
1840
|
+
[
|
|
1841
|
+
"replaceAll()",
|
|
1842
|
+
"正则替换",
|
|
1843
|
+
"replaceAll($1, $2)"
|
|
1844
|
+
],
|
|
1845
|
+
[
|
|
1846
|
+
"split()",
|
|
1847
|
+
"分割",
|
|
1848
|
+
"split($1)"
|
|
1849
|
+
],
|
|
1850
|
+
[
|
|
1851
|
+
"join()",
|
|
1852
|
+
"连接",
|
|
1853
|
+
"join($1, $2)"
|
|
1854
|
+
],
|
|
1855
|
+
[
|
|
1856
|
+
"format()",
|
|
1857
|
+
"格式化",
|
|
1858
|
+
"format($1)"
|
|
1859
|
+
],
|
|
1860
|
+
[
|
|
1861
|
+
"matches()",
|
|
1862
|
+
"正则匹配",
|
|
1863
|
+
"matches($1)"
|
|
1864
|
+
],
|
|
1865
|
+
[
|
|
1866
|
+
"add()",
|
|
1867
|
+
"添加元素",
|
|
1868
|
+
"add($1)"
|
|
1869
|
+
],
|
|
1870
|
+
[
|
|
1871
|
+
"addAll()",
|
|
1872
|
+
"添加所有",
|
|
1873
|
+
"addAll($1)"
|
|
1874
|
+
],
|
|
1875
|
+
[
|
|
1876
|
+
"remove()",
|
|
1877
|
+
"移除元素",
|
|
1878
|
+
"remove($1)"
|
|
1879
|
+
],
|
|
1880
|
+
[
|
|
1881
|
+
"removeAll()",
|
|
1882
|
+
"移除所有",
|
|
1883
|
+
"removeAll($1)"
|
|
1884
|
+
],
|
|
1885
|
+
[
|
|
1886
|
+
"clear()",
|
|
1887
|
+
"清空",
|
|
1888
|
+
"clear()"
|
|
1889
|
+
],
|
|
1890
|
+
[
|
|
1891
|
+
"size()",
|
|
1892
|
+
"大小",
|
|
1893
|
+
"size()"
|
|
1894
|
+
],
|
|
1895
|
+
[
|
|
1896
|
+
"get()",
|
|
1897
|
+
"获取元素",
|
|
1898
|
+
"get($1)"
|
|
1899
|
+
],
|
|
1900
|
+
[
|
|
1901
|
+
"set()",
|
|
1902
|
+
"设置元素",
|
|
1903
|
+
"set($1, $2)"
|
|
1904
|
+
],
|
|
1905
|
+
[
|
|
1906
|
+
"contains()",
|
|
1907
|
+
"是否包含",
|
|
1908
|
+
"contains($1)"
|
|
1909
|
+
],
|
|
1910
|
+
[
|
|
1911
|
+
"containsAll()",
|
|
1912
|
+
"是否包含所有",
|
|
1913
|
+
"containsAll($1)"
|
|
1914
|
+
],
|
|
1915
|
+
[
|
|
1916
|
+
"iterator()",
|
|
1917
|
+
"迭代器",
|
|
1918
|
+
"iterator()"
|
|
1919
|
+
],
|
|
1920
|
+
[
|
|
1921
|
+
"toArray()",
|
|
1922
|
+
"转数组",
|
|
1923
|
+
"toArray()"
|
|
1924
|
+
],
|
|
1925
|
+
[
|
|
1926
|
+
"stream()",
|
|
1927
|
+
"流",
|
|
1928
|
+
"stream()"
|
|
1929
|
+
],
|
|
1930
|
+
[
|
|
1931
|
+
"forEach()",
|
|
1932
|
+
"遍历",
|
|
1933
|
+
"forEach($1 -> $2)"
|
|
1934
|
+
],
|
|
1935
|
+
[
|
|
1936
|
+
"put()",
|
|
1937
|
+
"放入",
|
|
1938
|
+
"put($1, $2)"
|
|
1939
|
+
],
|
|
1940
|
+
[
|
|
1941
|
+
"putAll()",
|
|
1942
|
+
"放入所有",
|
|
1943
|
+
"putAll($1)"
|
|
1944
|
+
],
|
|
1945
|
+
[
|
|
1946
|
+
"get()",
|
|
1947
|
+
"获取",
|
|
1948
|
+
"get($1)"
|
|
1949
|
+
],
|
|
1950
|
+
[
|
|
1951
|
+
"getOrDefault()",
|
|
1952
|
+
"获取或默认",
|
|
1953
|
+
"getOrDefault($1, $2)"
|
|
1954
|
+
],
|
|
1955
|
+
[
|
|
1956
|
+
"containsKey()",
|
|
1957
|
+
"包含键",
|
|
1958
|
+
"containsKey($1)"
|
|
1959
|
+
],
|
|
1960
|
+
[
|
|
1961
|
+
"containsValue()",
|
|
1962
|
+
"包含值",
|
|
1963
|
+
"containsValue($1)"
|
|
1964
|
+
],
|
|
1965
|
+
[
|
|
1966
|
+
"keySet()",
|
|
1967
|
+
"键集合",
|
|
1968
|
+
"keySet()"
|
|
1969
|
+
],
|
|
1970
|
+
[
|
|
1971
|
+
"values()",
|
|
1972
|
+
"值集合",
|
|
1973
|
+
"values()"
|
|
1974
|
+
],
|
|
1975
|
+
[
|
|
1976
|
+
"entrySet()",
|
|
1977
|
+
"条目集合",
|
|
1978
|
+
"entrySet()"
|
|
1979
|
+
],
|
|
1980
|
+
[
|
|
1981
|
+
"filter()",
|
|
1982
|
+
"过滤",
|
|
1983
|
+
"filter($1 -> $2)"
|
|
1984
|
+
],
|
|
1985
|
+
[
|
|
1986
|
+
"map()",
|
|
1987
|
+
"映射",
|
|
1988
|
+
"map($1 -> $2)"
|
|
1989
|
+
],
|
|
1990
|
+
[
|
|
1991
|
+
"flatMap()",
|
|
1992
|
+
"扁平映射",
|
|
1993
|
+
"flatMap($1 -> $2)"
|
|
1994
|
+
],
|
|
1995
|
+
[
|
|
1996
|
+
"sorted()",
|
|
1997
|
+
"排序",
|
|
1998
|
+
"sorted()"
|
|
1999
|
+
],
|
|
2000
|
+
[
|
|
2001
|
+
"distinct()",
|
|
2002
|
+
"去重",
|
|
2003
|
+
"distinct()"
|
|
2004
|
+
],
|
|
2005
|
+
[
|
|
2006
|
+
"limit()",
|
|
2007
|
+
"限制",
|
|
2008
|
+
"limit($1)"
|
|
2009
|
+
],
|
|
2010
|
+
[
|
|
2011
|
+
"skip()",
|
|
2012
|
+
"跳过",
|
|
2013
|
+
"skip($1)"
|
|
2014
|
+
],
|
|
2015
|
+
[
|
|
2016
|
+
"collect()",
|
|
2017
|
+
"收集",
|
|
2018
|
+
"collect(Collectors.$1)"
|
|
2019
|
+
],
|
|
2020
|
+
[
|
|
2021
|
+
"toList()",
|
|
2022
|
+
"转列表",
|
|
2023
|
+
"toList()"
|
|
2024
|
+
],
|
|
2025
|
+
[
|
|
2026
|
+
"findFirst()",
|
|
2027
|
+
"查找第一个",
|
|
2028
|
+
"findFirst()"
|
|
2029
|
+
],
|
|
2030
|
+
[
|
|
2031
|
+
"findAny()",
|
|
2032
|
+
"查找任意",
|
|
2033
|
+
"findAny()"
|
|
2034
|
+
],
|
|
2035
|
+
[
|
|
2036
|
+
"anyMatch()",
|
|
2037
|
+
"任意匹配",
|
|
2038
|
+
"anyMatch($1 -> $2)"
|
|
2039
|
+
],
|
|
2040
|
+
[
|
|
2041
|
+
"allMatch()",
|
|
2042
|
+
"全部匹配",
|
|
2043
|
+
"allMatch($1 -> $2)"
|
|
2044
|
+
],
|
|
2045
|
+
[
|
|
2046
|
+
"noneMatch()",
|
|
2047
|
+
"无匹配",
|
|
2048
|
+
"noneMatch($1 -> $2)"
|
|
2049
|
+
],
|
|
2050
|
+
[
|
|
2051
|
+
"count()",
|
|
2052
|
+
"计数",
|
|
2053
|
+
"count()"
|
|
2054
|
+
],
|
|
2055
|
+
[
|
|
2056
|
+
"reduce()",
|
|
2057
|
+
"归约",
|
|
2058
|
+
"reduce($1, ($2, $3) -> $4)"
|
|
2059
|
+
],
|
|
2060
|
+
[
|
|
2061
|
+
"isPresent()",
|
|
2062
|
+
"是否存在",
|
|
2063
|
+
"isPresent()"
|
|
2064
|
+
],
|
|
2065
|
+
[
|
|
2066
|
+
"isEmpty()",
|
|
2067
|
+
"是否为空",
|
|
2068
|
+
"isEmpty()"
|
|
2069
|
+
],
|
|
2070
|
+
[
|
|
2071
|
+
"get()",
|
|
2072
|
+
"获取值",
|
|
2073
|
+
"get()"
|
|
2074
|
+
],
|
|
2075
|
+
[
|
|
2076
|
+
"orElse()",
|
|
2077
|
+
"或者",
|
|
2078
|
+
"orElse($1)"
|
|
2079
|
+
],
|
|
2080
|
+
[
|
|
2081
|
+
"orElseGet()",
|
|
2082
|
+
"或者获取",
|
|
2083
|
+
"orElseGet(() -> $1)"
|
|
2084
|
+
],
|
|
2085
|
+
[
|
|
2086
|
+
"orElseThrow()",
|
|
2087
|
+
"或者抛出",
|
|
2088
|
+
"orElseThrow(() -> new $1())"
|
|
2089
|
+
],
|
|
2090
|
+
[
|
|
2091
|
+
"ifPresent()",
|
|
2092
|
+
"如果存在",
|
|
2093
|
+
"ifPresent($1 -> $2)"
|
|
2094
|
+
],
|
|
2095
|
+
[
|
|
2096
|
+
"map()",
|
|
2097
|
+
"映射",
|
|
2098
|
+
"map($1 -> $2)"
|
|
2099
|
+
],
|
|
2100
|
+
[
|
|
2101
|
+
"flatMap()",
|
|
2102
|
+
"扁平映射",
|
|
2103
|
+
"flatMap($1 -> $2)"
|
|
2104
|
+
],
|
|
2105
|
+
[
|
|
2106
|
+
"filter()",
|
|
2107
|
+
"过滤",
|
|
2108
|
+
"filter($1 -> $2)"
|
|
2109
|
+
],
|
|
2110
|
+
[
|
|
2111
|
+
"println()",
|
|
2112
|
+
"打印换行",
|
|
2113
|
+
"println($1)"
|
|
2114
|
+
],
|
|
2115
|
+
[
|
|
2116
|
+
"print()",
|
|
2117
|
+
"打印",
|
|
2118
|
+
"print($1)"
|
|
2119
|
+
],
|
|
2120
|
+
[
|
|
2121
|
+
"printf()",
|
|
2122
|
+
"格式化打印",
|
|
2123
|
+
"printf($1)"
|
|
2124
|
+
]
|
|
2125
|
+
].forEach(([e, r, o]) => {
|
|
2126
|
+
i.push({
|
|
2127
|
+
label: e,
|
|
2128
|
+
detail: r,
|
|
2129
|
+
insertText: o,
|
|
2130
|
+
range: c,
|
|
2131
|
+
kind: t.languages.CompletionItemKind.Method,
|
|
2132
|
+
insertTextRules: t.languages.CompletionItemInsertTextRule.InsertAsSnippet
|
|
2133
|
+
});
|
|
2134
|
+
}), s.length >= 1 && [
|
|
2135
|
+
[
|
|
2136
|
+
"sout",
|
|
2137
|
+
"System.out.println",
|
|
2138
|
+
"System.out.println($1);"
|
|
2139
|
+
],
|
|
2140
|
+
[
|
|
2141
|
+
"soutv",
|
|
2142
|
+
"打印变量",
|
|
2143
|
+
'System.out.println("$1 = " + $1);'
|
|
2144
|
+
],
|
|
2145
|
+
[
|
|
2146
|
+
"serr",
|
|
2147
|
+
"System.err.println",
|
|
2148
|
+
"System.err.println($1);"
|
|
2149
|
+
],
|
|
2150
|
+
[
|
|
2151
|
+
"souf",
|
|
2152
|
+
"System.out.printf",
|
|
2153
|
+
'System.out.printf("$1%n", $2);'
|
|
2154
|
+
],
|
|
2155
|
+
[
|
|
2156
|
+
"psvm",
|
|
2157
|
+
"main方法",
|
|
2158
|
+
`public static void main(String[] args) {
|
|
2159
|
+
$1
|
|
2160
|
+
}`
|
|
2161
|
+
],
|
|
2162
|
+
[
|
|
2163
|
+
"main",
|
|
2164
|
+
"main方法",
|
|
2165
|
+
`public static void main(String[] args) {
|
|
2166
|
+
$1
|
|
2167
|
+
}`
|
|
2168
|
+
],
|
|
2169
|
+
[
|
|
2170
|
+
"pub",
|
|
2171
|
+
"public方法",
|
|
2172
|
+
`public $1 $2($3) {
|
|
2173
|
+
$4
|
|
2174
|
+
}`
|
|
2175
|
+
],
|
|
2176
|
+
[
|
|
2177
|
+
"priv",
|
|
2178
|
+
"private方法",
|
|
2179
|
+
`private $1 $2($3) {
|
|
2180
|
+
$4
|
|
2181
|
+
}`
|
|
2182
|
+
],
|
|
2183
|
+
[
|
|
2184
|
+
"prot",
|
|
2185
|
+
"protected方法",
|
|
2186
|
+
`protected $1 $2($3) {
|
|
2187
|
+
$4
|
|
2188
|
+
}`
|
|
2189
|
+
],
|
|
2190
|
+
[
|
|
2191
|
+
"pubsf",
|
|
2192
|
+
"public static final",
|
|
2193
|
+
"public static final $1 $2 = $3;"
|
|
2194
|
+
],
|
|
2195
|
+
[
|
|
2196
|
+
"privsf",
|
|
2197
|
+
"private static final",
|
|
2198
|
+
"private static final $1 $2 = $3;"
|
|
2199
|
+
],
|
|
2200
|
+
[
|
|
2201
|
+
"fori",
|
|
2202
|
+
"for i循环",
|
|
2203
|
+
`for (int i = 0; i < $1; i++) {
|
|
2204
|
+
$2
|
|
2205
|
+
}`
|
|
2206
|
+
],
|
|
2207
|
+
[
|
|
2208
|
+
"forr",
|
|
2209
|
+
"for 倒序循环",
|
|
2210
|
+
`for (int i = $1 - 1; i >= 0; i--) {
|
|
2211
|
+
$2
|
|
2212
|
+
}`
|
|
2213
|
+
],
|
|
2214
|
+
[
|
|
2215
|
+
"fore",
|
|
2216
|
+
"增强for循环",
|
|
2217
|
+
`for ($1 $2 : $3) {
|
|
2218
|
+
$4
|
|
2219
|
+
}`
|
|
2220
|
+
],
|
|
2221
|
+
[
|
|
2222
|
+
"iter",
|
|
2223
|
+
"迭代器循环",
|
|
2224
|
+
`for (Iterator<$1> it = $2.iterator(); it.hasNext(); ) {
|
|
2225
|
+
$1 $3 = it.next();
|
|
2226
|
+
$4
|
|
2227
|
+
}`
|
|
2228
|
+
],
|
|
2229
|
+
[
|
|
2230
|
+
"while",
|
|
2231
|
+
"while循环",
|
|
2232
|
+
`while ($1) {
|
|
2233
|
+
$2
|
|
2234
|
+
}`
|
|
2235
|
+
],
|
|
2236
|
+
[
|
|
2237
|
+
"dowhile",
|
|
2238
|
+
"do-while循环",
|
|
2239
|
+
`do {
|
|
2240
|
+
$1
|
|
2241
|
+
} while ($2);`
|
|
2242
|
+
],
|
|
2243
|
+
[
|
|
2244
|
+
"ife",
|
|
2245
|
+
"if-else",
|
|
2246
|
+
`if ($1) {
|
|
2247
|
+
$2
|
|
2248
|
+
} else {
|
|
2249
|
+
$3
|
|
2250
|
+
}`
|
|
2251
|
+
],
|
|
2252
|
+
[
|
|
2253
|
+
"ifn",
|
|
2254
|
+
"if null",
|
|
2255
|
+
`if ($1 == null) {
|
|
2256
|
+
$2
|
|
2257
|
+
}`
|
|
2258
|
+
],
|
|
2259
|
+
[
|
|
2260
|
+
"ifnn",
|
|
2261
|
+
"if not null",
|
|
2262
|
+
`if ($1 != null) {
|
|
2263
|
+
$2
|
|
2264
|
+
}`
|
|
2265
|
+
],
|
|
2266
|
+
[
|
|
2267
|
+
"tern",
|
|
2268
|
+
"三元表达式",
|
|
2269
|
+
"$1 ? $2 : $3"
|
|
2270
|
+
],
|
|
2271
|
+
[
|
|
2272
|
+
"tryc",
|
|
2273
|
+
"try-catch",
|
|
2274
|
+
`try {
|
|
2275
|
+
$1
|
|
2276
|
+
} catch (Exception e) {
|
|
2277
|
+
$2
|
|
2278
|
+
}`
|
|
2279
|
+
],
|
|
2280
|
+
[
|
|
2281
|
+
"trycf",
|
|
2282
|
+
"try-catch-finally",
|
|
2283
|
+
`try {
|
|
2284
|
+
$1
|
|
2285
|
+
} catch (Exception e) {
|
|
2286
|
+
$2
|
|
2287
|
+
} finally {
|
|
2288
|
+
$3
|
|
2289
|
+
}`
|
|
2290
|
+
],
|
|
2291
|
+
[
|
|
2292
|
+
"tryr",
|
|
2293
|
+
"try-with-resources",
|
|
2294
|
+
`try ($1) {
|
|
2295
|
+
$2
|
|
2296
|
+
} catch (Exception e) {
|
|
2297
|
+
$3
|
|
2298
|
+
}`
|
|
2299
|
+
],
|
|
2300
|
+
[
|
|
2301
|
+
"throw",
|
|
2302
|
+
"抛出异常",
|
|
2303
|
+
'throw new $1("$2");'
|
|
2304
|
+
],
|
|
2305
|
+
[
|
|
2306
|
+
"lst",
|
|
2307
|
+
"new ArrayList",
|
|
2308
|
+
"List<$1> $2 = new ArrayList<>();"
|
|
2309
|
+
],
|
|
2310
|
+
[
|
|
2311
|
+
"lstaof",
|
|
2312
|
+
"List.of",
|
|
2313
|
+
"List.of($1)"
|
|
2314
|
+
],
|
|
2315
|
+
[
|
|
2316
|
+
"map",
|
|
2317
|
+
"new HashMap",
|
|
2318
|
+
"Map<$1, $2> $3 = new HashMap<>();"
|
|
2319
|
+
],
|
|
2320
|
+
[
|
|
2321
|
+
"mapof",
|
|
2322
|
+
"Map.of",
|
|
2323
|
+
"Map.of($1, $2)"
|
|
2324
|
+
],
|
|
2325
|
+
[
|
|
2326
|
+
"set",
|
|
2327
|
+
"new HashSet",
|
|
2328
|
+
"Set<$1> $2 = new HashSet<>();"
|
|
2329
|
+
],
|
|
2330
|
+
[
|
|
2331
|
+
"setof",
|
|
2332
|
+
"Set.of",
|
|
2333
|
+
"Set.of($1)"
|
|
2334
|
+
],
|
|
2335
|
+
[
|
|
2336
|
+
"stream",
|
|
2337
|
+
"stream操作",
|
|
2338
|
+
`$1.stream()
|
|
2339
|
+
.filter($2 -> $3)
|
|
2340
|
+
.map($4 -> $5)
|
|
2341
|
+
.collect(Collectors.toList())`
|
|
2342
|
+
],
|
|
2343
|
+
[
|
|
2344
|
+
"streamf",
|
|
2345
|
+
"stream filter",
|
|
2346
|
+
"$1.stream().filter($2 -> $3).collect(Collectors.toList())"
|
|
2347
|
+
],
|
|
2348
|
+
[
|
|
2349
|
+
"streamm",
|
|
2350
|
+
"stream map",
|
|
2351
|
+
"$1.stream().map($2 -> $3).collect(Collectors.toList())"
|
|
2352
|
+
],
|
|
2353
|
+
[
|
|
2354
|
+
"foreach",
|
|
2355
|
+
"forEach",
|
|
2356
|
+
`$1.forEach($2 -> {
|
|
2357
|
+
$3
|
|
2358
|
+
});`
|
|
2359
|
+
],
|
|
2360
|
+
[
|
|
2361
|
+
"opt",
|
|
2362
|
+
"Optional.of",
|
|
2363
|
+
"Optional.of($1)"
|
|
2364
|
+
],
|
|
2365
|
+
[
|
|
2366
|
+
"optn",
|
|
2367
|
+
"Optional.ofNullable",
|
|
2368
|
+
"Optional.ofNullable($1)"
|
|
2369
|
+
],
|
|
2370
|
+
[
|
|
2371
|
+
"opte",
|
|
2372
|
+
"Optional.empty",
|
|
2373
|
+
"Optional.empty()"
|
|
2374
|
+
],
|
|
2375
|
+
[
|
|
2376
|
+
"log",
|
|
2377
|
+
"log.info",
|
|
2378
|
+
'log.info("$1");'
|
|
2379
|
+
],
|
|
2380
|
+
[
|
|
2381
|
+
"logd",
|
|
2382
|
+
"log.debug",
|
|
2383
|
+
'log.debug("$1");'
|
|
2384
|
+
],
|
|
2385
|
+
[
|
|
2386
|
+
"logw",
|
|
2387
|
+
"log.warn",
|
|
2388
|
+
'log.warn("$1");'
|
|
2389
|
+
],
|
|
2390
|
+
[
|
|
2391
|
+
"loge",
|
|
2392
|
+
"log.error",
|
|
2393
|
+
'log.error("$1", $2);'
|
|
2394
|
+
],
|
|
2395
|
+
[
|
|
2396
|
+
"logt",
|
|
2397
|
+
"log.trace",
|
|
2398
|
+
'log.trace("$1");'
|
|
2399
|
+
],
|
|
2400
|
+
[
|
|
2401
|
+
"logv",
|
|
2402
|
+
"log变量",
|
|
2403
|
+
'log.info("$1 = {}", $1);'
|
|
2404
|
+
],
|
|
2405
|
+
[
|
|
2406
|
+
"test",
|
|
2407
|
+
"@Test方法",
|
|
2408
|
+
`@Test
|
|
2409
|
+
void $1() {
|
|
2410
|
+
$2
|
|
2411
|
+
}`
|
|
2412
|
+
],
|
|
2413
|
+
[
|
|
2414
|
+
"testd",
|
|
2415
|
+
"@Test带DisplayName",
|
|
2416
|
+
`@Test
|
|
2417
|
+
@DisplayName("$1")
|
|
2418
|
+
void $2() {
|
|
2419
|
+
$3
|
|
2420
|
+
}`
|
|
2421
|
+
],
|
|
2422
|
+
[
|
|
2423
|
+
"before",
|
|
2424
|
+
"@BeforeEach",
|
|
2425
|
+
`@BeforeEach
|
|
2426
|
+
void setUp() {
|
|
2427
|
+
$1
|
|
2428
|
+
}`
|
|
2429
|
+
],
|
|
2430
|
+
[
|
|
2431
|
+
"after",
|
|
2432
|
+
"@AfterEach",
|
|
2433
|
+
`@AfterEach
|
|
2434
|
+
void tearDown() {
|
|
2435
|
+
$1
|
|
2436
|
+
}`
|
|
2437
|
+
],
|
|
2438
|
+
[
|
|
2439
|
+
"aseq",
|
|
2440
|
+
"assertEquals",
|
|
2441
|
+
"assertEquals($1, $2);"
|
|
2442
|
+
],
|
|
2443
|
+
[
|
|
2444
|
+
"asne",
|
|
2445
|
+
"assertNotEquals",
|
|
2446
|
+
"assertNotEquals($1, $2);"
|
|
2447
|
+
],
|
|
2448
|
+
[
|
|
2449
|
+
"ast",
|
|
2450
|
+
"assertTrue",
|
|
2451
|
+
"assertTrue($1);"
|
|
2452
|
+
],
|
|
2453
|
+
[
|
|
2454
|
+
"asf",
|
|
2455
|
+
"assertFalse",
|
|
2456
|
+
"assertFalse($1);"
|
|
2457
|
+
],
|
|
2458
|
+
[
|
|
2459
|
+
"asn",
|
|
2460
|
+
"assertNull",
|
|
2461
|
+
"assertNull($1);"
|
|
2462
|
+
],
|
|
2463
|
+
[
|
|
2464
|
+
"asnn",
|
|
2465
|
+
"assertNotNull",
|
|
2466
|
+
"assertNotNull($1);"
|
|
2467
|
+
],
|
|
2468
|
+
[
|
|
2469
|
+
"asth",
|
|
2470
|
+
"assertThrows",
|
|
2471
|
+
`assertThrows($1.class, () -> {
|
|
2472
|
+
$2
|
|
2473
|
+
});`
|
|
2474
|
+
],
|
|
2475
|
+
[
|
|
2476
|
+
"lam",
|
|
2477
|
+
"lambda表达式",
|
|
2478
|
+
"($1) -> $2"
|
|
2479
|
+
],
|
|
2480
|
+
[
|
|
2481
|
+
"lamb",
|
|
2482
|
+
"lambda块",
|
|
2483
|
+
`($1) -> {
|
|
2484
|
+
$2
|
|
2485
|
+
}`
|
|
2486
|
+
],
|
|
2487
|
+
[
|
|
2488
|
+
"mr",
|
|
2489
|
+
"方法引用",
|
|
2490
|
+
"$1::$2"
|
|
2491
|
+
],
|
|
2492
|
+
[
|
|
2493
|
+
"ctor",
|
|
2494
|
+
"构造方法",
|
|
2495
|
+
`public $1($2) {
|
|
2496
|
+
$3
|
|
2497
|
+
}`
|
|
2498
|
+
],
|
|
2499
|
+
[
|
|
2500
|
+
"ctord",
|
|
2501
|
+
"默认构造方法",
|
|
2502
|
+
`public $1() {
|
|
2503
|
+
}`
|
|
2504
|
+
],
|
|
2505
|
+
[
|
|
2506
|
+
"get",
|
|
2507
|
+
"getter方法",
|
|
2508
|
+
`public $1 get$2() {
|
|
2509
|
+
return this.$3;
|
|
2510
|
+
}`
|
|
2511
|
+
],
|
|
2512
|
+
[
|
|
2513
|
+
"set",
|
|
2514
|
+
"setter方法",
|
|
2515
|
+
`public void set$1($2 $3) {
|
|
2516
|
+
this.$3 = $3;
|
|
2517
|
+
}`
|
|
2518
|
+
],
|
|
2519
|
+
[
|
|
2520
|
+
"getset",
|
|
2521
|
+
"getter和setter",
|
|
2522
|
+
`public $1 get$2() {
|
|
2523
|
+
return this.$3;
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
public void set$2($1 $3) {
|
|
2527
|
+
this.$3 = $3;
|
|
2528
|
+
}`
|
|
2529
|
+
],
|
|
2530
|
+
[
|
|
2531
|
+
"tostr",
|
|
2532
|
+
"toString方法",
|
|
2533
|
+
`@Override
|
|
2534
|
+
public String toString() {
|
|
2535
|
+
return "$1{" +
|
|
2536
|
+
"$2=" + $2 +
|
|
2537
|
+
'}';
|
|
2538
|
+
}`
|
|
2539
|
+
],
|
|
2540
|
+
[
|
|
2541
|
+
"eqhc",
|
|
2542
|
+
"equals和hashCode",
|
|
2543
|
+
`@Override
|
|
2544
|
+
public boolean equals(Object o) {
|
|
2545
|
+
if (this == o) return true;
|
|
2546
|
+
if (o == null || getClass() != o.getClass()) return false;
|
|
2547
|
+
$1 that = ($1) o;
|
|
2548
|
+
return Objects.equals($2, that.$2);
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2551
|
+
@Override
|
|
2552
|
+
public int hashCode() {
|
|
2553
|
+
return Objects.hash($2);
|
|
2554
|
+
}`
|
|
2555
|
+
],
|
|
2556
|
+
[
|
|
2557
|
+
"singleton",
|
|
2558
|
+
"单例模式",
|
|
2559
|
+
`private static final $1 INSTANCE = new $1();
|
|
2560
|
+
|
|
2561
|
+
private $1() {}
|
|
2562
|
+
|
|
2563
|
+
public static $1 getInstance() {
|
|
2564
|
+
return INSTANCE;
|
|
2565
|
+
}`
|
|
2566
|
+
],
|
|
2567
|
+
[
|
|
2568
|
+
"now",
|
|
2569
|
+
"LocalDateTime.now",
|
|
2570
|
+
"LocalDateTime.now()"
|
|
2571
|
+
],
|
|
2572
|
+
[
|
|
2573
|
+
"today",
|
|
2574
|
+
"LocalDate.now",
|
|
2575
|
+
"LocalDate.now()"
|
|
2576
|
+
],
|
|
2577
|
+
[
|
|
2578
|
+
"dtf",
|
|
2579
|
+
"DateTimeFormatter",
|
|
2580
|
+
'DateTimeFormatter.ofPattern("$1")'
|
|
2581
|
+
]
|
|
2582
|
+
].filter(([e]) => e.toLowerCase().startsWith(s)).forEach(([e, r, o]) => {
|
|
2583
|
+
i.push({
|
|
2584
|
+
label: e,
|
|
2585
|
+
detail: r,
|
|
2586
|
+
insertText: o,
|
|
2587
|
+
range: c,
|
|
2588
|
+
kind: t.languages.CompletionItemKind.Snippet,
|
|
2589
|
+
insertTextRules: t.languages.CompletionItemInsertTextRule.InsertAsSnippet,
|
|
2590
|
+
sortText: "1" + e
|
|
2591
|
+
});
|
|
2592
|
+
}), { suggestions: i };
|
|
2593
|
+
}
|
|
2594
|
+
}));
|
|
2595
|
+
}
|
|
2596
|
+
export {
|
|
2597
|
+
f as conf,
|
|
2598
|
+
y as defineJavaThemes,
|
|
2599
|
+
h as language,
|
|
2600
|
+
C as registerJavaCompletion
|
|
2601
|
+
};
|
|
2602
|
+
|
|
2603
|
+
//# sourceMappingURL=java-BrZSNBDG.js.map
|