Guest User

Untitled

a guest
Apr 23rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. Compiled from "samples.duby.arraylist.rb"
  2. public class ArrayThing extends java.lang.Object{
  3. public java.util.List foo();
  4. Code:
  5. 0: new #13; //class java/util/ArrayList
  6. 3: dup
  7. 4: invokespecial #15; //Method java/util/ArrayList."<init>":()V
  8. 7: areturn
  9.  
  10. public void bar(java.lang.String);
  11. Code:
  12. 0: aload_0
  13. 1: invokevirtual #17; //Method foo:()Ljava/util/List;
  14. 4: astore_2
  15. 5: aload_2
  16. 6: checkcast #19; //class java/util/List
  17. 9: aload_1
  18. 10: invokevirtual #23; //Method java/util/List.add:(Ljava/lang/Object;)Z
  19. 13: getstatic #29; //Field java/lang/System.out:Ljava/io/PrintStream;
  20. 16: aload_2
  21. 17: invokevirtual #35; //Method java/io/PrintStream.println:(Ljava/lang/Object;)V
  22. 20: return
  23.  
  24. public ArrayThing();
  25. Code:
  26. 0: aload_0
  27. 1: invokespecial #36; //Method java/lang/Object."<init>":()V
  28. 4: return
  29.  
  30. }
Add Comment
Please, Sign In to add comment