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

338 lines
5.6 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
String.format("%b, %d, %d, %d, %c", true, 1, 213, 40000, 'c', 42L);// 15
System.out.println(String.format("%b, %d, %d, %d", this.getBoolean(), this.getByte(), this.getShort(), this.getInt()));// 16
}// 17
public void printBoolean(boolean b) {
System.out.println(String.format("%b", b));// 20
}// 21
public void printByte(byte b) {
System.out.println(String.format("%d", b));// 24
}// 25
public void printShort(short s) {
System.out.println(String.format("%d", s));// 28
}// 29
public void printInt(int i) {
System.out.println(String.format("%d", i));// 32
}// 33
public void printLong(long l) {
System.out.println(String.format("%d", l));// 36
}// 37
public void printFloat(float f) {
System.out.println(String.format("%f", f));// 40
}// 41
public void printDouble(double d) {
System.out.println(String.format("%f", d));// 44
}// 45
public void printChar(char c) {
System.out.println(String.format("%c", c));// 48
}// 49
public boolean getBoolean() {
return false;// 53
}
public byte getByte() {
return -128;// 57
}
public short getShort() {
return -32768;// 61
}
public int getInt() {
return 42;// 65
}
public void printNarrowed() {
this.printByte((byte)this.getInt());// 69
this.printShort((short)this.getInt());// 70
}// 71
public void constructor() {
new Byte((byte)1);// 73
}// 74
private boolean compare(char c) {
boolean res = c > -1;// 77
res = c > 0;// 78
res = c > 1;// 79
res = c > '\b';// 80
res = c > '\t';// 81
res = c > '\n';// 82
res = c > '\f';// 83
res = c > '\r';// 84
res = c > ' ';// 85
res = c > 'a';// 86
res = c > 'Z';// 87
res = c > 127;// 88
res = c > 255;// 89
return res;// 90
}
}
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
32 12
3b 12
3c 12
42 12
43 12
49 12
4c 12
52 12
54 12
5a 12
5c 12
62 12
65 12
69 12
6d 13
70 13
79 13
7c 13
83 13
86 13
8d 13
90 13
97 13
9a 13
9e 13
a1 13
a4 14
}
method 'printBoolean (Z)V' {
0 17
3 17
c 17
10 17
13 17
16 18
}
method 'printByte (B)V' {
0 21
3 21
c 21
10 21
13 21
16 22
}
method 'printShort (S)V' {
0 25
3 25
c 25
10 25
13 25
16 26
}
method 'printInt (I)V' {
0 29
3 29
c 29
10 29
13 29
16 30
}
method 'printLong (J)V' {
0 33
3 33
c 33
10 33
13 33
16 34
}
method 'printFloat (F)V' {
0 37
3 37
c 37
10 37
13 37
16 38
}
method 'printDouble (D)V' {
0 41
3 41
c 41
10 41
13 41
16 42
}
method 'printChar (C)V' {
0 45
3 45
c 45
10 45
13 45
16 46
}
method 'getBoolean ()Z' {
0 49
1 49
}
method 'getByte ()B' {
0 53
2 53
}
method 'getShort ()S' {
0 57
3 57
}
method 'getInt ()I' {
0 61
2 61
}
method 'printNarrowed ()V' {
2 65
5 65
6 65
b 66
e 66
f 66
12 67
}
method 'constructor ()V' {
4 70
9 71
}
method 'compare (C)Z' {
1 73
2 73
a 73
c 74
14 74
16 75
17 75
1f 75
21 76
23 76
2b 76
2d 77
2f 77
37 77
39 78
3b 78
43 78
45 79
47 79
4f 79
51 80
53 80
5b 80
5d 81
5f 81
67 81
69 82
6b 82
73 82
75 83
77 83
7f 83
81 84
83 84
8b 84
8d 85
90 85
98 85
9a 86
}
}
Lines mapping:
6 <-> 5
7 <-> 6
8 <-> 7
9 <-> 8
10 <-> 9
11 <-> 10
12 <-> 11
13 <-> 12
15 <-> 13
16 <-> 14
17 <-> 15
20 <-> 18
21 <-> 19
24 <-> 22
25 <-> 23
28 <-> 26
29 <-> 27
32 <-> 30
33 <-> 31
36 <-> 34
37 <-> 35
40 <-> 38
41 <-> 39
44 <-> 42
45 <-> 43
48 <-> 46
49 <-> 47
53 <-> 50
57 <-> 54
61 <-> 58
65 <-> 62
69 <-> 66
70 <-> 67
71 <-> 68
74 <-> 71
77 <-> 74
78 <-> 75
79 <-> 76
80 <-> 77
81 <-> 78
82 <-> 79
83 <-> 80
84 <-> 81
85 <-> 82
86 <-> 83
87 <-> 84
88 <-> 85
89 <-> 86
90 <-> 87