|
1 | 1 | #!/usr/bin/env python |
2 | 2 | # -*- coding: utf-8 -*- |
3 | 3 |
|
4 | | -headings = { |
5 | | - 'Contract.java' : [ |
6 | | - 'from helpers import *', |
7 | | - ], |
8 | | - |
9 | | - 'ContractDetails.java' : [ |
10 | | - 'from overloading import overloaded', |
11 | | - 'from Contract import Contract', |
12 | | - ], |
13 | | - |
14 | | - 'ScannerSubscription.java' : [ |
15 | | - 'from helpers import *', |
16 | | - ], |
17 | | - |
18 | | - 'ExecutionFilter.java': [ |
19 | | - 'from overloading import overloaded', |
20 | | - ], |
21 | | - |
22 | | -} |
23 | | - |
24 | | - |
25 | | -features = { |
26 | | - 'ContractDetails.java' : 'rename strip frobinate', |
27 | | -} |
28 | | - |
29 | | - |
30 | | -defaults = { |
31 | | - 'writemods':False |
32 | | -} |
33 | | - |
| 4 | +indent = 4 |
34 | 5 |
|
35 | 6 |
|
36 | 7 | outputSubs = [ |
|
39 | 10 | (r'System\.out\.println\((.*?)\)', r'print \1'), |
40 | 11 | (r'(.*?)\.equals\((.*?)\)', r'\1 == \2'), |
41 | 12 | (r'(.*?)\.equalsIgnoreCase\((.*?)\)', r'\1.lower() == \2.lower()'), |
42 | | - (r'if self == p_other:', r'if self is p_other:'), |
43 | 13 | (r'([\w.]+)\.size\(\)', r'len(\1)'), |
44 | 14 | (r'(\w+)\.get\((.*?)\)', r'\1[\2]'), |
45 | 15 | ] |
|
78 | 48 |
|
79 | 49 |
|
80 | 50 | modifierDecoratorMap = { |
81 | | - 'synchronized':'@synchronized(mlock)' |
| 51 | + 'synchronized':'## original method synchronized' |
82 | 52 | } |
| 53 | + |
| 54 | + |
| 55 | +modulePreable = [ |
| 56 | + '#!/usr/bin/env python', |
| 57 | + '# -*- coding: utf-8 -*-', |
| 58 | + '', |
| 59 | + ] |
| 60 | + |
| 61 | + |
| 62 | +bubbleInnerClasses = True |
| 63 | +scanPropMethods = True |
| 64 | +scanOverloadMethods = True |
| 65 | +sortClassMethods = False |
| 66 | +writeModifiersComments = False |
| 67 | +writeClassDocString = True |
| 68 | + |
| 69 | +commentPrefix = '##' |
0 commit comments