Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Compiled from "samples.duby.arraylist.rb"
- public class ArrayThing extends java.lang.Object{
- public java.util.List foo();
- Code:
- 0: new #13; //class java/util/ArrayList
- 3: dup
- 4: invokespecial #15; //Method java/util/ArrayList."<init>":()V
- 7: areturn
- public void bar(java.lang.String);
- Code:
- 0: aload_0
- 1: invokevirtual #17; //Method foo:()Ljava/util/List;
- 4: astore_2
- 5: aload_2
- 6: checkcast #19; //class java/util/List
- 9: aload_1
- 10: invokevirtual #23; //Method java/util/List.add:(Ljava/lang/Object;)Z
- 13: getstatic #29; //Field java/lang/System.out:Ljava/io/PrintStream;
- 16: aload_2
- 17: invokevirtual #35; //Method java/io/PrintStream.println:(Ljava/lang/Object;)V
- 20: return
- public ArrayThing();
- Code:
- 0: aload_0
- 1: invokespecial #36; //Method java/lang/Object."<init>":()V
- 4: return
- }
Add Comment
Please, Sign In to add comment