-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjavap.txt
60 lines (57 loc) · 2.83 KB
/
javap.txt
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
Compiled from "StreamDemo.java"
public class collection.stream.StreamDemo {
public collection.stream.StreamDemo();
Code:
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: return
public static void main(java.lang.String[]);
Code:
0: invokestatic #2 // Method Demo1:()V
3: return
public static void Demo1();
Code:
0: new #3 // class java/util/ArrayList
3: dup
4: invokespecial #4 // Method java/util/ArrayList."<init>":()V
7: astore_0
8: aload_0
9: iconst_0
10: invokestatic #5 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
13: invokeinterface #6, 2 // InterfaceMethod java/util/List.add:(Ljava/lang/Object;)Z
18: pop
19: aload_0
20: iconst_1
21: invokestatic #5 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
24: invokeinterface #6, 2 // InterfaceMethod java/util/List.add:(Ljava/lang/Object;)Z
29: pop
30: aload_0
31: iconst_2
32: invokestatic #5 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
35: invokeinterface #6, 2 // InterfaceMethod java/util/List.add:(Ljava/lang/Object;)Z
40: pop
41: aload_0
42: iconst_3
43: invokestatic #5 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
46: invokeinterface #6, 2 // InterfaceMethod java/util/List.add:(Ljava/lang/Object;)Z
51: pop
52: aload_0
53: iconst_4
54: invokestatic #5 // Method java/lang/Integer.valueOf:(I)Ljava/lang/Integer;
57: invokeinterface #6, 2 // InterfaceMethod java/util/List.add:(Ljava/lang/Object;)Z
62: pop
63: getstatic #7 // Field java/lang/System.out:Ljava/io/PrintStream;
66: aload_0
67: invokeinterface #8, 1 // InterfaceMethod java/util/List.stream:()Ljava/util/stream/Stream;
72: invokedynamic #9, 0 // InvokeDynamic #0:applyAsInt:()Ljava/util/function/ToIntFunction;
77: invokeinterface #10, 2 // InterfaceMethod java/util/stream/Stream.mapToInt:(Ljava/util/function/ToIntFunction;)Ljava/util/stream/IntStream;
82: invokeinterface #11, 1 // InterfaceMethod java/util/stream/IntStream.sum:()I
87: invokevirtual #12 // Method java/io/PrintStream.println:(I)V
90: return
public static void Demo2();
Code:
0: iconst_0
1: anewarray #13 // class java/lang/String
4: invokestatic #14 // Method java/util/Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
7: astore_0
8: return