Fork of the Fernflower decompiler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
fernflower/testData/results/TestPrimitives.dec

358 lines
6.0 KiB

package pkg;
public class TestPrimitives {
public void printAll() {
this.printBoolean(true);// 6
this.printByte((byte)123);// 7
this.printShort((short)257);// 8
this.printInt(123);// 9
this.printLong(123L);// 10
this.printFloat(1.23F);// 11
this.printDouble(1.23D);// 12
this.printChar('Z');// 13
this.printIntBoxed(40000);// 15
String.format("%b, %d, %d, %d, %c, %d", true, 1, 213, 40000, 'c', 42L);// 17
System.out.println(String.format("%b, %d, %d, %d", this.getBoolean(), this.getByte(), this.getShort(), this.getInt()));// 18
}// 19
public void printBoolean(boolean b) {
System.out.println(String.format("%b", b));// 22
}// 23
public void printByte(byte b) {
System.out.println(String.format("%d", b));// 26
}// 27
public void printShort(short s) {
System.out.println(String.format("%d", s));// 30
}// 31
public void printInt(int i) {
System.out.println(String.format("%d", i));// 34
}// 35
public void printLong(long l) {
System.out.println(String.format("%d", l));// 38
}// 39
public void printFloat(float f) {
System.out.println(String.format("%f", f));// 42
}// 43
public void printDouble(double d) {
System.out.println(String.format("%f", d));// 46
}// 47
public void printChar(char c) {
System.out.println(String.format("%c", c));// 50
}// 51
public void printIntBoxed(Integer i) {
System.out.println(String.format("%d", i));// 55
}// 56
public boolean getBoolean() {
return false;// 60
}
public byte getByte() {
return -128;// 64
}
public short getShort() {
return -32768;// 68
}
public int getInt() {
return 42;// 72
}
public void printNarrowed() {
this.printByte((byte)this.getInt());// 76
this.printShort((short)this.getInt());// 77
}// 78
public void constructor() {
new Byte((byte)1);// 81
}// 82
private boolean compare(char c) {
boolean res = c > -1;// 85
res = c > 0;// 86
res = c > 1;// 87
res = c > '\b';// 88
res = c > '\t';// 89
res = c > '\n';// 90
res = c > '\f';// 91
res = c > '\r';// 92
res = c > ' ';// 93
res = c > 'a';// 94
res = c > 'Z';// 95
res = c > 127;// 96
res = c > 255;// 97
return res;// 98
}
}
class 'pkg/TestPrimitives' {
method 'printAll ()V' {
1 4
2 4
6 5
8 5
c 6
f 6
13 7
15 7
19 8
1c 8
20 9
22 9
26 10
29 10
2d 11
2f 11
33 12
38 12
3b 13
44 13
45 13
4b 13
4c 13
52 13
55 13
5b 13
5d 13
63 13
65 13
6b 13
6e 13
72 13
76 14
79 14
82 14
85 14
8c 14
8f 14
96 14
99 14
a0 14
a3 14
a7 14
aa 14
ad 15
}
method 'printBoolean (Z)V' {
0 18
3 18
c 18
10 18
13 18
16 19
}
method 'printByte (B)V' {
0 22
3 22
c 22
10 22
13 22
16 23
}
method 'printShort (S)V' {
0 26
3 26
c 26
10 26
13 26
16 27
}
method 'printInt (I)V' {
0 30
3 30
c 30
10 30
13 30
16 31
}
method 'printLong (J)V' {
0 34
3 34
c 34
10 34
13 34
16 35
}
method 'printFloat (F)V' {
0 38
3 38
c 38
10 38
13 38
16 39
}
method 'printDouble (D)V' {
0 42
3 42
c 42
10 42
13 42
16 43
}
method 'printChar (C)V' {
0 46
3 46
c 46
10 46
13 46
16 47
}
method 'printIntBoxed (Ljava/lang/Integer;)V' {
0 50
3 50
d 50
10 50
13 51
}
method 'getBoolean ()Z' {
0 54
1 54
}
method 'getByte ()B' {
0 58
2 58
}
method 'getShort ()S' {
0 62
3 62
}
method 'getInt ()I' {
0 66
2 66
}
method 'printNarrowed ()V' {
2 70
5 70
6 70
b 71
e 71
f 71
12 72
}
method 'constructor ()V' {
4 75
9 76
}
method 'compare (C)Z' {
1 79
2 79
a 79
c 80
14 80
16 81
17 81
1f 81
21 82
23 82
2b 82
2d 83
2f 83
37 83
39 84
3b 84
43 84
45 85
47 85
4f 85
51 86
53 86
5b 86
5d 87
5f 87
67 87
69 88
6b 88
73 88
75 89
77 89
7f 89
81 90
83 90
8b 90
8d 91
90 91
98 91
9a 92
}
}
Lines mapping:
6 <-> 5
7 <-> 6
8 <-> 7
9 <-> 8
10 <-> 9
11 <-> 10
12 <-> 11
13 <-> 12
15 <-> 13
17 <-> 14
18 <-> 15
19 <-> 16
22 <-> 19
23 <-> 20
26 <-> 23
27 <-> 24
30 <-> 27
31 <-> 28
34 <-> 31
35 <-> 32
38 <-> 35
39 <-> 36
42 <-> 39
43 <-> 40
46 <-> 43
47 <-> 44
50 <-> 47
51 <-> 48
55 <-> 51
56 <-> 52
60 <-> 55
64 <-> 59
68 <-> 63
72 <-> 67
76 <-> 71
77 <-> 72
78 <-> 73
81 <-> 76
82 <-> 77
85 <-> 80
86 <-> 81
87 <-> 82
88 <-> 83
89 <-> 84
90 <-> 85
91 <-> 86
92 <-> 87
93 <-> 88
94 <-> 89
95 <-> 90
96 <-> 91
97 <-> 92
98 <-> 93