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.

PatternWeaveFancyHelloWorld.txt 2.7KB

21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
21 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. public abstract class FancyHelloWorld extends java.lang.Object:
  2. public void <init>():
  3. ALOAD_0 // FancyHelloWorld this (line 7)
  4. INVOKESPECIAL java.lang.Object.<init> ()V
  5. constructor-execution(void FancyHelloWorld.<init>())
  6. | RETURN
  7. constructor-execution(void FancyHelloWorld.<init>())
  8. end public void <init>()
  9. public static void main(String[]):
  10. method-execution(void FancyHelloWorld.main(java.lang.String[]))
  11. | GETSTATIC java.lang.System.out Ljava/io/PrintStream; (line 9)
  12. | ASTORE_1
  13. | finally -> E1
  14. | | catch java.lang.Exception -> E0
  15. | | | ALOAD_1 // java.io.PrintStream out (line 11)
  16. | | | LDC "bye"
  17. | | | INVOKEVIRTUAL java.io.PrintStream.println (Ljava/lang/String;)V
  18. | | | GOTO L0
  19. | | catch java.lang.Exception -> E0
  20. | | E0: ASTORE_2 (line 12)
  21. | | ALOAD_1 // java.io.PrintStream out (line 13)
  22. | | ALOAD_2 // java.lang.Exception e
  23. | | INVOKEVIRTUAL java.io.PrintStream.println (Ljava/lang/Object;)V
  24. | finally -> E1
  25. | GOTO L0
  26. | E1: ASTORE 4 (line 14)
  27. | JSR L1
  28. | ALOAD 4
  29. | ATHROW
  30. | L0: JSR L1
  31. | GOTO L2
  32. | L1: ASTORE_3
  33. | ALOAD_1 // java.io.PrintStream out (line 15)
  34. | LDC "finally"
  35. | INVOKEVIRTUAL java.io.PrintStream.println (Ljava/lang/String;)V
  36. | RET 3 (line 10)
  37. | L2: RETURN (line 17)
  38. method-execution(void FancyHelloWorld.main(java.lang.String[]))
  39. end public static void main(String[])
  40. public static String getName():
  41. method-execution(java.lang.String FancyHelloWorld.getName())
  42. | ICONST_0 (line 20)
  43. | ISTORE_0
  44. | ILOAD_0 // int x (line 21)
  45. | LDC "name"
  46. | INVOKEVIRTUAL java.lang.String.hashCode ()I
  47. | IADD
  48. | ISTORE_0 // int x
  49. | NEW java.lang.StringBuffer (line 22)
  50. | DUP
  51. | LDC "name"
  52. | INVOKESPECIAL java.lang.StringBuffer.<init> (Ljava/lang/String;)V
  53. | ILOAD_0 // int x
  54. | INVOKEVIRTUAL java.lang.StringBuffer.append (I)Ljava/lang/StringBuffer;
  55. | INVOKEVIRTUAL java.lang.StringBuffer.toString ()Ljava/lang/String;
  56. | ARETURN
  57. method-execution(java.lang.String FancyHelloWorld.getName())
  58. end public static String getName()
  59. end public abstract class FancyHelloWorld