;; Produced by JasminVisitor (JavaClass package) ;; http://www.inf.fu-berlin.de/~dahm/JavaClass/ ;; Thu May 27 16:32:34 CEST 1999 .source listclass.java .class public listclass .super java/lang/Object .method public static main([Ljava/lang/String;)V .limit stack 5 .limit locals 8 .var 0 is argv [Ljava/lang/String; from Label17 to Label17 .var 6 is i I from Label19 to Label17 .var 7 is java_class Lde/fub/bytecode/classfile/JavaClass; from Label21 to Label17 .var 6 is i I from Label23 to Label17 .var 6 is e Ljava/lang/Exception; from Label25 to Label17 .var 1 is file_name [Ljava/lang/String; from Label15 to Label17 .var 2 is files I from Label15 to Label17 .var 3 is code Z from Label15 to Label17 .var 4 is constants Z from Label15 to Label17 .var 5 is name Ljava/lang/String; from Label15 to Label17 .line 14 aload_0 arraylength anewarray java/lang/String astore_1 .line 15 iconst_0 istore_2 .line 16 iconst_0 istore_3 iconst_0 istore 4 .line 17 aconst_null astore 5 .line 21 iconst_0 istore 6 goto Label0 Label7: .line 22 aload_0 iload 6 aaload iconst_0 invokevirtual java/lang/String/charAt(I)C bipush 45 if_icmpne Label1 .line 23 aload_0 iload 6 aaload ldc "-constants" invokevirtual java/lang/String/equals(Ljava/lang/Object;)Z ifeq Label2 .line 24 iconst_1 istore 4 goto Label3 Label2: .line 25 aload_0 iload 6 aaload ldc "-code" invokevirtual java/lang/String/equals(Ljava/lang/Object;)Z ifeq Label4 .line 26 iconst_1 istore_3 goto Label3 Label4: .line 28 getstatic java.lang.System.err Ljava/io/PrintStream; new java/lang/StringBuffer dup invokespecial java/lang/StringBuffer/()V ldc "Unknown switch " invokevirtual java/lang/StringBuffer/append(Ljava/lang/String;)Ljava/lang/StringBuffer; aload_0 iload 6 aaload invokevirtual java/lang/StringBuffer/append(Ljava/lang/String;)Ljava/lang/StringBuffer; ldc " ignored." invokevirtual java/lang/StringBuffer/append(Ljava/lang/String;)Ljava/lang/StringBuffer; invokevirtual java/lang/StringBuffer/toString()Ljava/lang/String; invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V Label3: goto Label6 Label1: .line 31 aload_1 iload_2 iinc 2 1 aload_0 iload 6 aaload aastore Label6: .line 21 iinc 6 1 Label0: iload 6 aload_0 arraylength Label19: if_icmplt Label7 Label37: .line 35 .line 36 iload_2 ifne Label8 .line 37 getstatic java.lang.System.err Ljava/io/PrintStream; ldc "list: No input files specified" invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V goto Label9 Label8: .line 39 iconst_0 istore 6 goto Label10 Label14: .line 40 .line 42 aload_1 iload 6 aaload astore 5 .line 44 aload 5 invokestatic de/fub/bytecode/Repository/lookupClass(Ljava/lang/String;)Lde/fub/bytecode/classfile/JavaClass; dup astore 7 ifnonnull Label11 .line 45 new de/fub/bytecode/classfile/ClassParser dup aload 5 invokespecial de/fub/bytecode/classfile/ClassParser/(Ljava/lang/String;)V invokevirtual de/fub/bytecode/classfile/ClassParser/parse()Lde/fub/bytecode/classfile/JavaClass; astore 7 Label11: .line 47 getstatic java.lang.System.out Ljava/io/PrintStream; aload 7 invokevirtual java/io/PrintStream/println(Ljava/lang/Object;)V .line 49 iload 4 ifeq Label12 .line 50 getstatic java.lang.System.out Ljava/io/PrintStream; aload 7 invokevirtual de/fub/bytecode/classfile/JavaClass/getConstantPool()Lde/fub/bytecode/classfile/ConstantPool; invokevirtual java/io/PrintStream/println(Ljava/lang/Object;)V Label12: .line 52 iload_3 ifeq Label13 .line 53 aload 7 invokevirtual de/fub/bytecode/classfile/JavaClass/getMethods()[Lde/fub/bytecode/classfile/Method; Label21: invokestatic listclass/printCode([Lde/fub/bytecode/classfile/Method;)V Label13: .line 39 iinc 6 1 Label10: iload 6 iload_2 Label23: if_icmplt Label14 Label9: goto Label15 Label38: nop Label39: astore 6 .line 57 getstatic java.lang.System.err Ljava/io/PrintStream; new java/lang/StringBuffer dup invokespecial java/lang/StringBuffer/()V ldc "Couldn't find class " invokevirtual java/lang/StringBuffer/append(Ljava/lang/String;)Ljava/lang/StringBuffer; aload 5 invokevirtual java/lang/StringBuffer/append(Ljava/lang/String;)Ljava/lang/StringBuffer; invokevirtual java/lang/StringBuffer/toString()Ljava/lang/String; Label25: invokevirtual java/io/PrintStream/println(Ljava/lang/String;)V goto Label15 Label15: nop Label17: .line 59 return .catch java/lang/Exception from Label37 to Label38 using Label39 .end method .method public static printCode([Lde/fub/bytecode/classfile/Method;)V .limit stack 3 .limit locals 3 .var 0 is methods [Lde/fub/bytecode/classfile/Method; from Label3 to Label3 .var 2 is code Lde/fub/bytecode/classfile/Code; from Label5 to Label3 .var 1 is i I from Label7 to Label3 .line 64 iconst_0 istore_1 goto Label0 Label2: .line 65 getstatic java.lang.System.out Ljava/io/PrintStream; aload_0 iload_1 aaload invokevirtual java/io/PrintStream/println(Ljava/lang/Object;)V .line 67 aload_0 iload_1 aaload invokevirtual de/fub/bytecode/classfile/Method/getCode()Lde/fub/bytecode/classfile/Code; astore_2 .line 68 aload_2 ifnull Label1 .line 69 getstatic java.lang.System.out Ljava/io/PrintStream; aload_2 Label5: invokevirtual java/io/PrintStream/println(Ljava/lang/Object;)V Label1: .line 64 iinc 1 1 Label0: iload_1 aload_0 arraylength Label7: if_icmplt Label2 Label3: .line 71 return .end method .method public ()V .limit stack 1 .limit locals 1 .var 0 is this Llistclass; from Label0 to Label0 .line 12 aload_0 invokespecial java/lang/Object/()V Label0: .line 12 return .end method