Skip to content

Instantly share code, notes, and snippets.

@Jacoby6000
Created November 10, 2017 21:39
Show Gist options
  • Save Jacoby6000/6f7f5f14da3f69c42dc0dd911b707424 to your computer and use it in GitHub Desktop.
Save Jacoby6000/6f7f5f14da3f69c42dc0dd911b707424 to your computer and use it in GitHub Desktop.
2.11
public final class wot.DoIt$$anonfun$foo$1$$anonfun$apply$1 extends scala.runtime.AbstractFunction1$mcII$sp implements scala.Serializable {
public static final long serialVersionUID;
public final int apply(int);
Code:
0: aload_0
1: iload_1
2: invokevirtual #20 // Method apply$mcII$sp:(I)I
5: ireturn
public int apply$mcII$sp(int);
Code:
0: aload_0
1: getfield #25 // Field x$1:I
4: iload_1
5: iadd
6: ireturn
public final java.lang.Object apply(java.lang.Object);
Code:
0: aload_0
1: aload_1
2: invokestatic #32 // Method scala/runtime/BoxesRunTime.unboxToInt:(Ljava/lang/Object;)I
5: invokevirtual #34 // Method apply:(I)I
8: invokestatic #38 // Method scala/runtime/BoxesRunTime.boxToInteger:(I)Ljava/lang/Integer;
11: areturn
public wot.DoIt$$anonfun$foo$1$$anonfun$apply$1(wot.DoIt$$anonfun$foo$1, int);
Code:
0: aload_0
1: iload_2
2: putfield #25 // Field x$1:I
5: aload_0
6: invokespecial #45 // Method scala/runtime/AbstractFunction1$mcII$sp."<init>":()V
9: return
}
public final class wot.DoIt$$anonfun$foo$1 extends scala.runtime.AbstractFunction1<scala.Tuple2<java.lang.Object, scala.Option<java.lang.Object>>, scala.Option<java.lang.Object>> implements scala.Serializable {
public static final long serialVersionUID;
public final scala.Option<java.lang.Object> apply(scala.Tuple2<java.lang.Object, scala.Option<java.lang.Object>>);
Code:
0: aload_1
1: astore_2
2: aload_2
3: ifnull 39
6: aload_2
7: invokevirtual #25 // Method scala/Tuple2._1$mcI$sp:()I
10: istore_3
11: aload_2
12: invokevirtual #29 // Method scala/Tuple2._2:()Ljava/lang/Object;
15: checkcast #31 // class scala/Option
18: astore 4
20: aload 4
22: new #33 // class wot/DoIt$$anonfun$foo$1$$anonfun$apply$1
25: dup
26: aload_0
27: iload_3
28: invokespecial #37 // Method wot/DoIt$$anonfun$foo$1$$anonfun$apply$1."<init>":(Lwot/DoIt$$anonfun$foo$1;I)V
31: invokevirtual #41 // Method scala/Option.map:(Lscala/Function1;)Lscala/Option;
34: astore 5
36: aload 5
38: areturn
39: new #43 // class scala/MatchError
42: dup
43: aload_2
44: invokespecial #46 // Method scala/MatchError."<init>":(Ljava/lang/Object;)V
47: athrow
public final java.lang.Object apply(java.lang.Object);
Code:
0: aload_0
1: aload_1
2: checkcast #21 // class scala/Tuple2
5: invokevirtual #57 // Method apply:(Lscala/Tuple2;)Lscala/Option;
8: areturn
public wot.DoIt$$anonfun$foo$1(wot.DoIt);
Code:
0: aload_0
1: invokespecial #63 // Method scala/runtime/AbstractFunction1."<init>":()V
4: return
}
public class wot.DoIt {
public scala.collection.immutable.List<scala.Option<java.lang.Object>> foo(scala.collection.immutable.List<scala.Tuple2<java.lang.Object, scala.Option<java.lang.Object>>>);
Code:
0: aload_1
1: new #12 // class wot/DoIt$$anonfun$foo$1
4: dup
5: aload_0
6: invokespecial #16 // Method wot/DoIt$$anonfun$foo$1."<init>":(Lwot/DoIt;)V
9: getstatic #22 // Field scala/collection/immutable/List$.MODULE$:Lscala/collection/immutable/List$;
12: invokevirtual #26 // Method scala/collection/immutable/List$.canBuildFrom:()Lscala/collection/generic/CanBuildFrom;
15: invokevirtual #32 // Method scala/collection/immutable/List.map:(Lscala/Function1;Lscala/collection/generic/CanBuildFrom;)Ljava/lang/Object;
18: checkcast #28 // class scala/collection/immutable/List
21: areturn
public wot.DoIt();
Code:
0: aload_0
1: invokespecial #39 // Method java/lang/Object."<init>":()V
4: return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment