forked from michalab/vscode-java-decompiler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
615 lines (615 loc) · 30.7 KB
/
package.json
File metadata and controls
615 lines (615 loc) · 30.7 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
116
117
118
119
120
121
122
123
124
125
126
127
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
{
"name": "java-decompiler",
"displayName": "Java Decompiler",
"description": "Adds a decompiler for the Java Language Support extension.",
"author": "David Gileadi",
"icon": "icon.png",
"version": "0.0.2",
"license": "EPL-1.0",
"publisher": "dgileadi",
"engines": {
"vscode": "^1.5.0"
},
"categories": [
"Languages"
],
"repository": {
"type": "git",
"url": "https://github.com/dgileadi/vscode-java-decompiler"
},
"contributes": {
"javaExtensions": [
"./server/dg.jdt.ls.decompiler.common-0.0.2-201802221740.jar",
"./server/dg.jdt.ls.decompiler.cfr-0.0.2-201802221740.jar",
"./server/dg.jdt.ls.decompiler.fernflower-0.0.2-201802221740.jar",
"./server/dg.jdt.ls.decompiler.procyon-0.0.2-201802221740.jar"
],
"configuration": {
"type": "object",
"title": "Java decompiler configuration",
"properties": {
"java.decompiler.fernflower": {
"type": "object",
"description": "Fernflower configuration",
"properties": {
"rbr": {
"type": "boolean",
"default": true,
"description": "hide bridge methods"
},
"rsy": {
"type": "boolean",
"default": false,
"description": "hide synthetic class members"
},
"din": {
"type": "boolean",
"default": true,
"description": "decompile inner classes"
},
"dc4": {
"type": "boolean",
"default": true,
"description": "collapse 1.4 class references"
},
"das": {
"type": "boolean",
"default": true,
"description": "decompile assertions"
},
"hes": {
"type": "boolean",
"default": true,
"description": "hide empty super invocation"
},
"hdc": {
"type": "boolean",
"default": true,
"description": "hide empty default constructor"
},
"dgs": {
"type": "boolean",
"default": false,
"description": "decompile generic signatures"
},
"ner": {
"type": "boolean",
"default": true,
"description": "assume return not throwing exceptions"
},
"den": {
"type": "boolean",
"default": true,
"description": "decompile enumerations"
},
"rgn": {
"type": "boolean",
"default": true,
"description": "remove getClass() invocation, when it is part of a qualified new statement"
},
"lit": {
"type": "boolean",
"default": false,
"description": "output numeric literals \"as-is\""
},
"asc": {
"type": "boolean",
"default": false,
"description": "encode non-ASCII characters in string and character literals as Unicode escapes"
},
"bto": {
"type": "boolean",
"default": true,
"description": "interpret int 1 as boolean true (workaround to a compiler bug)"
},
"nns": {
"type": "boolean",
"default": true,
"description": "allow for not set synthetic attribute (workaround to a compiler bug)"
},
"uto": {
"type": "boolean",
"default": true,
"description": "consider nameless types as java.lang.Object (workaround to a compiler architecture flaw)"
},
"udv": {
"type": "boolean",
"default": true,
"description": "reconstruct variable names from debug information, if present"
},
"rer": {
"type": "boolean",
"default": true,
"description": "remove empty exception ranges"
},
"fdi": {
"type": "boolean",
"default": true,
"description": "de-inline finally structures"
},
"mpm": {
"type": "integer",
"default": 0,
"description": "maximum allowed processing time per decompiled method, in seconds. 0 means no upper limit"
},
"ren": {
"type": "boolean",
"default": false,
"description": "rename ambiguous (resp. obfuscated) classes and class elements"
},
"urc": {
"type": "string",
"description": "full name of user-supplied class implementing IIdentifierRenamer. It is used to determine which class identifiers should be renamed and provides new identifier names (see \"Renaming identifiers\")"
},
"inn": {
"type": "boolean",
"default": true,
"description": "check for IntelliJ IDEA-specific @NotNull annotation and remove inserted code if found"
},
"lac": {
"type": "boolean",
"default": false,
"description": "decompile lambda expressions to anonymous classes"
},
"nls": {
"type": "boolean",
"default": false,
"description": "define new line character to be used for output. 0 - '\r\n' (Windows), 1 - '\n' (Unix), default is OS-dependent"
},
"ind": {
"type": "string",
"description": "indentation string (default is 3 spaces)"
},
"log": {
"type": "string",
"default": "INFO",
"enum": [
"TRACE",
"INFO",
"WARN",
"ERROR"
],
"description": "a logging level, possible values are TRACE, INFO, WARN, ERROR"
}
}
},
"java.decompiler.cfr": {
"type": "object",
"description": "CFR configuration",
"properties": {
"stringbuffer": {
"type": "boolean",
"default": false,
"description": "Convert new Stringbuffer().add.add.add to string + string + string - see http://www.benf.org/other/cfr/stringbuilder-vs-concatenation.html"
},
"stringzbuilder": {
"type": "boolean",
"default": true,
"description": "Convert new Stringbuilder().add.add.add to string + string + string - see http://www.benf.org/other/cfr/stringbuilder-vs-concatenation.html"
},
"decodeenumswitch": {
"type": "boolean",
"default": true,
"description": "Re-sugar switch on enum - see http://www.benf.org/other/cfr/switch-on-enum.html"
},
"sugarenums": {
"type": "boolean",
"default": true,
"description": "Re-sugar enums - see http://www.benf.org/other/cfr/how-are-enums-implemented.html"
},
"decodestringswitch": {
"type": "boolean",
"default": true,
"description": "Re-sugar switch on String - see http://www.benf.org/other/cfr/java7switchonstring.html"
},
"arrayiter": {
"type": "boolean",
"default": true,
"description": "Re-sugar array based iteration."
},
"collectioniter": {
"type": "boolean",
"default": true,
"description": "Re-sugar collection based iteration"
},
"decodelambdas": {
"type": "boolean",
"default": true,
"description": "Re-build lambda functions"
},
"innerclasses": {
"type": "boolean",
"default": true,
"description": "Decompile innter classes"
},
"hideutf": {
"type": "boolean",
"default": true,
"description": "Hide UTF8 characters - quote them instead of showing the raw characters"
},
"hidelongstrings": {
"type": "boolean",
"default": false,
"description": "Hide very long strings - useful if obfuscators have placed fake code in strings"
},
"removeboilerplate": {
"type": "boolean",
"default": true,
"description": "Remove boilderplate functions - constructor boilerplate, lambda deserialisation etc"
},
"removeinnerclasssynthetics": {
"type": "boolean",
"default": true,
"description": "Remove (where possible) implicit outer class references in inner classes"
},
"hidebridgemethods": {
"type": "boolean",
"default": true,
"description": "Hide bridge methods"
},
"liftconstructorinit": {
"type": "boolean",
"default": true,
"description": "Lift initialisation code common to all constructors into member initialisation"
},
"removedeadmethods": {
"type": "boolean",
"default": true,
"description": "Remove pointless methods - default constructor etc"
},
"removebadgenerics": {
"type": "boolean",
"default": true,
"description": "Hide generics where we've obviously got it wrong, and fallback to non-generic"
},
"sugarasserts": {
"type": "boolean",
"default": true,
"description": "Re-sugar assert calls"
},
"sugarboxing": {
"type": "boolean",
"default": true,
"description": "Where possible, remove pointless boxing wrappers"
},
"showversion": {
"type": "boolean",
"default": true,
"description": "Show CFR version used in header (handy to turn off when regression testing)"
},
"decodefinally": {
"type": "boolean",
"default": true,
"description": "Re-sugar finally statements"
},
"tidymonitors": {
"type": "boolean",
"default": true,
"description": "Remove support code for monitors - eg catch blocks just to exit a monitor"
},
"commentmonitors": {
"type": "boolean",
"default": false,
"description": "Replace monitors with comments - useful if we're completely confused"
},
"lenient": {
"type": "boolean",
"default": false,
"description": "Be a bit more lenient in situations where we'd normally throw an exception"
},
"dumpclasspath": {
"type": "boolean",
"default": false,
"description": "Dump class path for debugging purposes"
},
"comments": {
"type": "boolean",
"default": true,
"description": "Output comments describing decompiler status, fallback flags etc"
},
"forcetopsort": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Force basic block sorting. Usually not necessary for code emitted directly from javac, but required in the case of obfuscation (or dex2jar!). Will be enabled in recovery."
},
"forloopaggcapture": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Allow for loops to aggresively roll mutations into update section, even if they don't appear to be involved with the predicate"
},
"forcetopsortaggress": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Force extra aggressive topsort options"
},
"forcecondpropagate": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Pull results of deterministic jumps back through some constant assignments"
},
"forcereturningifs": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Move return up to jump site"
},
"forceexceptionprune": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Try to extend and merge exceptions more aggressively"
},
"aexagg": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Remove nested exception handlers if they don't change semantics"
},
"recovertypeclash": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Split lifetimes where analysis caused type clash"
},
"recovertypehints": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Recover type hints for iterators from first pass."
},
"outputdir": {
"type": "string",
"default": null,
"description": "Decompile to files in [directory] (outputpath + clobber) (historic compatibility)"
},
"outputpath": {
"type": "string",
"default": null,
"description": "Decompile to files in [directory]"
},
"clobber": {
"type": [
"boolean",
"null"
],
"default": null,
"description": "Overwrite files when using outputpath"
},
"showops": {
"type": "integer",
"default": 0,
"description": "Show some (cryptic!) debug"
},
"silent": {
"type": "boolean",
"default": false,
"description": "Don't display state while decompiling"
},
"recover": {
"type": "boolean",
"default": true,
"description": "Allow more and more aggressive options to be set if decompilation fails"
},
"eclipse": {
"type": "boolean",
"default": true,
"description": "Enable transformations to handle eclipse code better"
},
"override": {
"type": "boolean",
"default": true,
"description": "Generate @Override annotations (if method is seen to implement interface method, or override a base class method)"
},
"showinferrable": {
"type": "boolean",
"default": false,
"description": "Decorate methods with explicit types if not implied by arguments."
},
"help": {
"type": "string",
"default": null,
"description": "Show help for a given parameter"
},
"allowcorrecting": {
"type": "boolean",
"default": true,
"description": "Allow transformations which correct errors, potentially at the cost of altering emitted code behaviour. An example would be removing impossible (in java!) exception handling - if this has any effect, a warning will be emitted."
},
"labelledblocks": {
"type": "boolean",
"default": true,
"description": "Allow code to be emitted which uses labelled blocks, (handling odd forward gotos)"
},
"j14classobj": {
"type": "boolean",
"default": false,
"description": "Reverse java 1.4 class object construction"
},
"hidelangimports": {
"type": "boolean",
"default": true,
"description": "Hide imports from java.lang."
},
"recpass": {
"type": "integer",
"default": 0,
"description": "Decompile specifically with recovery options from pass #X. (really only useful for debugging)"
},
"analyseas": {
"type": "string",
"default": null,
"enum": [
"jar",
"war",
"class"
],
"description": "Force file to be analysed as 'jar' or 'class'"
},
"jarfilter": {
"type": "string",
"default": null,
"description": "Substring regex - analyse only classes where the fqn matches this pattern. (when analysing jar)."
},
"rename": {
"type": "boolean",
"default": false,
"description": "Synonym for 'renamedupmembers' + 'renameillegalidents' + 'renameenummembers'"
},
"renamedupmembers": {
"type": "boolean",
"default": false,
"description": "Rename ambiguous/duplicate fields. Note - this WILL break reflection based access, so is not automatically enabled."
},
"renamesmallmembers": {
"type": "integer",
"default": 0,
"description": "Rename small members. Note - this WILL break reflection based access, so is not automatically enabled."
},
"renameillegalidents": {
"type": "boolean",
"default": false,
"description": "Rename identifiers which are not valid java identifiers. Note - this WILL break reflection based access, so is not automatically enabled."
},
"renameenumidents": {
"type": "boolean",
"default": false,
"description": "Rename ENUM identifiers which do not match their 'expected' string names. Note - this WILL break reflection based access, so is not automatically enabled."
},
"aggressivesizethreshold": {
"type": "integer",
"default": 15000,
"description": "Opcode count at which to trigger aggressive reductions"
},
"staticinitreturn": {
"type": "boolean",
"default": true,
"description": "Try to remove return from static init"
},
"filename": {
"type": "string",
"default": null,
"description": "Name of file to analyse."
},
"methodname": {
"type": "string",
"default": null,
"description": "Name of method to analyse."
},
"extraclasspath": {
"type": "string",
"default": null,
"description": "additional class path - classes in this classpath will be used if needed."
},
"pullcodecase": {
"type": "boolean",
"default": false,
"description": "Pull code into case statements agressively."
},
"elidescala": {
"type": "boolean",
"default": false,
"description": "Elide things which aren't helpful in scala output (serialVersionUID, @ScalaSignature)."
},
"caseinsensitivefs": {
"type": "boolean",
"default": false,
"description": "Cope with case insensitive file systems by renaming colliding classes."
}
}
},
"java.decompiler.procyon": {
"type": "object",
"description": "Procyon configuration",
"properties": {
"mergeVariables": {
"type": "boolean",
"default": false,
"description": "Attempt to merge as many variables as possible. This may lead to fewer declarations, but at the expense of inlining and useful naming. This feature is experimental and may be removed or become the standard behavior in future releases."
},
"collapseImports": {
"type": "boolean",
"default": false,
"description": "Collapse multiple imports from the same package into a single wildcard import."
},
"forceExplicitTypeArguments": {
"type": "boolean",
"default": false,
"description": "Always print type arguments to generic methods."
},
"retainRedundantCasts": {
"type": "boolean",
"default": false,
"description": "Do not remove redundant explicit casts."
},
"flattenSwitchBlocks": {
"type": "boolean",
"default": false,
"description": "Drop the braces statements around switch sections when possible."
},
"showSyntheticMembers": {
"type": "boolean",
"default": false,
"description": "Show synthetic (compiler-generated) members."
},
"excludeNestedTypes": {
"type": "boolean",
"default": false,
"description": "Exclude nested types when decompiling their enclosing types."
},
"showDebugLineNumbers": {
"type": "boolean",
"default": false,
"description": "For debugging, show Java line numbers as inline comments (implies -ln; requires -o)."
},
"retainPointlessSwitches": {
"type": "boolean",
"default": false,
"description": "Do not lift the contents of switches having only a default label."
},
"isUnicodeOutputEnabled": {
"type": "boolean",
"default": false,
"description": "Enable Unicode output (printable non-ASCII characters will not be escaped)."
},
"simplifyMemberReferences": {
"type": "boolean",
"default": false,
"description": "Simplify type-qualified member references in Java output [EXPERIMENTAL]."
},
"disableForEachTransforms": {
"type": "boolean",
"default": false,
"description": "Disable 'for each' loop transforms."
}
},
"default": null
}
}
}
},
"extensionDependencies": [
"redhat.java"
]
}