org.eclipse.pde.api.tools_1.0.301.v20111129-2053

ava/lang/StringBuffer
    //   6: dup
    //   7: invokespecial 1341	java/lang/StringBuffer:<init>	()V
    //   10: astore 6
    //   12: aload 6
    //   14: ldc_w 621
    //   17: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   20: pop
    //   21: aload 6
    //   23: ldc_w 654
    //   26: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   29: ldc_w 653
    //   32: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   35: ldc_w 655
    //   38: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   41: pop
    //   42: aload 6
    //   44: getstatic 1281	org/eclipse/pde/api/tools/internal/search/UseReportConverter:REF_STYLE	Ljava/lang/String;
    //   47: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   50: pop
    //   51: aload 6
    //   53: getstatic 1280	org/eclipse/pde/api/tools/internal/search/UseReportConverter:REF_SCRIPT	Ljava/lang/String;
    //   56: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   59: pop
    //   60: aload 6
    //   62: ldc_w 675
    //   65: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   68: aload_0
    //   69: aload 4
    //   71: invokevirtual 1440	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getTypeTitle	(Ljava/lang/String;)Ljava/lang/String;
    //   74: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   77: ldc_w 637
    //   80: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   83: pop
    //   84: aload 6
    //   86: ldc_w 631
    //   89: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   92: pop
    //   93: aload 6
    //   95: ldc_w 647
    //   98: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   101: pop
    //   102: aload 6
    //   104: ldc_w 651
    //   107: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   110: aload_0
    //   111: aload 4
    //   113: invokevirtual 1440	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getTypeTitle	(Ljava/lang/String;)Ljava/lang/String;
    //   116: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   119: ldc_w 629
    //   122: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   125: pop
    //   126: aload 6
    //   128: aload_0
    //   129: aload 4
    //   131: aload_2
    //   132: getfield 1299	org/eclipse/pde/api/tools/internal/search/UseReportConverter$Type:counts	Lorg/eclipse/pde/api/tools/internal/search/UseReportConverter$CountGroup;
    //   135: aload_1
    //   136: invokeinterface 1483 1 0
    //   141: invokevirtual 1452	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getTypeCountSummary	(Ljava/lang/String;Lorg/eclipse/pde/api/tools/internal/search/UseReportConverter$CountGroup;I)Ljava/lang/String;
    //   144: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   147: pop
    //   148: aload 6
    //   150: ldc_w 652
    //   153: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   156: aload_0
    //   157: invokevirtual 1426	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getTypeDetailsHeader	()Ljava/lang/String;
    //   160: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   163: ldc_w 630
    //   166: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   169: pop
    //   170: aload 6
    //   172: ldc_w 657
    //   175: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   178: aload_0
    //   179: invokevirtual 1425	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getTypeDetails	()Ljava/lang/String;
    //   182: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   185: ldc_w 633
    //   188: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   191: pop
    //   192: aload 6
    //   194: ldc_w 649
    //   197: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   200: pop
    //   201: aload 6
    //   203: ldc_w 663
    //   206: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   209: pop
    //   210: aload 6
    //   212: ldc_w 678
    //   215: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   218: pop
    //   219: aload 6
    //   221: ldc_w 670
    //   224: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   227: ldc 8
    //   229: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   232: ldc_w 611
    //   235: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   238: ldc_w 646
    //   241: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   244: getstatic 1227	org/eclipse/pde/api/tools/internal/search/SearchMessages:UseReportConverter_member	Ljava/lang/String;
    //   247: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   250: ldc_w 626
    //   253: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   256: pop
    //   257: aload 6
    //   259: ldc_w 638
    //   262: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   265: pop
    //   266: aconst_null
    //   267: astore 7
    //   269: aconst_null
    //   270: astore 8
    //   272: aconst_null
    //   273: astore 9
    //   275: aload_1
    //   276: invokeinterface 1484 1 0
    //   281: invokeinterface 1487 1 0
    //   286: astore 10
    //   288: goto +181 -> 469
    //   291: aload 10
    //   293: invokeinterface 1478 1 0
    //   298: checkcast 729	java/util/Map$Entry
    //   301: astore 7
    //   303: aload 7
    //   305: invokeinterface 1485 1 0
    //   310: checkcast 752	org/eclipse/pde/api/tools/internal/provisional/descriptors/IElementDescriptor
    //   313: astore 8
    //   315: aload 7
    //   317: invokeinterface 1486 1 0
    //   322: checkcast 763	org/eclipse/pde/api/tools/internal/search/UseReportConverter$Member
    //   325: astore 9
    //   327: aload 6
    //   329: ldc_w 678
    //   332: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   335: pop
    //   336: aload 6
    //   338: ldc_w 669
    //   341: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   344: pop
    //   345: aload 6
    //   347: ldc_w 646
    //   350: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   353: pop
    //   354: aload 6
    //   356: ldc_w 643
    //   359: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   362: pop
    //   363: aload 6
    //   365: aload_0
    //   366: aload 8
    //   368: iconst_1
    //   369: iconst_1
    //   370: invokevirtual 1442	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getDisplayName	(Lorg/eclipse/pde/api/tools/internal/provisional/descriptors/IElementDescriptor;ZZ)Ljava/lang/String;
    //   373: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   376: ldc_w 612
    //   379: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   382: pop
    //   383: aload 6
    //   385: ldc_w 660
    //   388: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   391: aload_0
    //   392: aload 8
    //   394: iconst_1
    //   395: iconst_0
    //   396: invokevirtual 1442	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getDisplayName	(Lorg/eclipse/pde/api/tools/internal/provisional/descriptors/IElementDescriptor;ZZ)Ljava/lang/String;
    //   399: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   402: ldc_w 596
    //   405: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   408: pop
    //   409: aload 6
    //   411: ldc_w 623
    //   414: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   417: ldc_w 625
    //   420: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   423: pop
    //   424: aload 6
    //   426: ldc_w 650
    //   429: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   432: pop
    //   433: aload 6
    //   435: aload_0
    //   436: aload 9
    //   438: invokevirtual 1444	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getReferencesTable	(Lorg/eclipse/pde/api/tools/internal/search/UseReportConverter$Member;)Ljava/lang/String;
    //   441: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   444: ldc_w 596
    //   447: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   450: pop
    //   451: aload 6
    //   453: ldc_w 628
    //   456: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   459: pop
    //   460: aload 6
    //   462: ldc_w 638
    //   465: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   468: pop
    //   469: aload 10
    //   471: invokeinterface 1477 1 0
    //   476: ifne -185 -> 291
    //   479: aload 6
    //   481: ldc_w 635
    //   484: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   487: pop
    //   488: aload 6
    //   490: ldc_w 628
    //   493: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   496: pop
    //   497: aload 6
    //   499: ldc_w 657
    //   502: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   505: ldc_w 642
    //   508: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   511: getstatic 1198	org/eclipse/pde/api/tools/internal/search/SearchMessages:UseReportConverter_back_to_bundle_index	Ljava/lang/String;
    //   514: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   517: ldc_w 623
    //   520: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   523: ldc_w 633
    //   526: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   529: pop
    //   530: aload 6
    //   532: ldc_w 658
    //   535: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   538: pop
    //   539: new 712	java/io/PrintWriter
    //   542: dup
    //   543: new 710	java/io/OutputStreamWriter
    //   546: dup
    //   547: new 708	java/io/FileOutputStream
    //   550: dup
    //   551: aload_3
    //   552: invokespecial 1315	java/io/FileOutputStream:<init>	(Ljava/io/File;)V
    //   555: ldc_w 682
    //   558: invokespecial 1316	java/io/OutputStreamWriter:<init>	(Ljava/io/OutputStream;Ljava/lang/String;)V
    //   561: invokespecial 1320	java/io/PrintWriter:<init>	(Ljava/io/Writer;)V
    //   564: astore 5
    //   566: aload 5
    //   568: aload 6
    //   570: invokevirtual 1343	java/lang/StringBuffer:toString	()Ljava/lang/String;
    //   573: invokevirtual 1321	java/io/PrintWriter:print	(Ljava/lang/String;)V
    //   576: aload 5
    //   578: invokevirtual 1319	java/io/PrintWriter:flush	()V
    //   581: goto +37 -> 618
    //   584: pop
    //   585: new 715	java/lang/Exception
    //   588: dup
    //   589: getstatic 1273	org/eclipse/pde/api/tools/internal/search/SearchMessages:ioexception_writing_html_file	Ljava/lang/String;
    //   592: aload_3
    //   593: invokevirtual 1310	java/io/File:getAbsolutePath	()Ljava/lang/String;
    //   596: invokestatic 1383	org/eclipse/osgi/util/NLS:bind	(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;
    //   599: invokespecial 1325	java/lang/Exception:<init>	(Ljava/lang/String;)V
    //   602: athrow
    //   603: astore 11
    //   605: aload 5
    //   607: ifnull +8 -> 615
    //   610: aload 5
    //   612: invokevirtual 1318	java/io/PrintWriter:close	()V
    //   615: aload 11
    //   617: athrow
    //   618: aload 5
    //   620: ifnull +8 -> 628
    //   623: aload 5
    //   625: invokevirtual 1318	java/io/PrintWriter:close	()V
    //   628: return
    // Line number table:
    //   Java source line #1256	-> byte code offset #0
    //   Java source line #1258	-> byte code offset #3
    //   Java source line #1259	-> byte code offset #12
    //   Java source line #1260	-> byte code offset #21
    //   Java source line #1261	-> byte code offset #42
    //   Java source line #1262	-> byte code offset #51
    //   Java source line #1263	-> byte code offset #60
    //   Java source line #1264	-> byte code offset #84
    //   Java source line #1265	-> byte code offset #93
    //   Java source line #1266	-> byte code offset #102
    //   Java source line #1267	-> byte code offset #126
    //   Java source line #1268	-> byte code offset #148
    //   Java source line #1269	-> byte code offset #170
    //   Java source line #1270	-> byte code offset #192
    //   Java source line #1271	-> byte code offset #201
    //   Java source line #1272	-> byte code offset #210
    //   Java source line #1273	-> byte code offset #219
    //   Java source line #1274	-> byte code offset #257
    //   Java source line #1275	-> byte code offset #266
    //   Java source line #1276	-> byte code offset #269
    //   Java source line #1277	-> byte code offset #272
    //   Java source line #1278	-> byte code offset #275
    //   Java source line #1279	-> byte code offset #291
    //   Java source line #1280	-> byte code offset #303
    //   Java source line #1281	-> byte code offset #315
    //   Java source line #1282	-> byte code offset #327
    //   Java source line #1283	-> byte code offset #336
    //   Java source line #1284	-> byte code offset #345
    //   Java source line #1285	-> byte code offset #354
    //   Java source line #1286	-> byte code offset #363
    //   Java source line #1287	-> byte code offset #383
    //   Java source line #1288	-> byte code offset #409
    //   Java source line #1289	-> byte code offset #424
    //   Java source line #1290	-> byte code offset #433
    //   Java source line #1291	-> byte code offset #451
    //   Java source line #1292	-> byte code offset #460
    //   Java source line #1278	-> byte code offset #469
    //   Java source line #1294	-> byte code offset #479
    //   Java source line #1295	-> byte code offset #488
    //   Java source line #1296	-> byte code offset #497
    //   Java source line #1297	-> byte code offset #530
    //   Java source line #1300	-> byte code offset #539
    //   Java source line #1301	-> byte code offset #566
    //   Java source line #1302	-> byte code offset #576
    //   Java source line #1304	-> byte code offset #584
    //   Java source line #1305	-> byte code offset #585
    //   Java source line #1307	-> byte code offset #603
    //   Java source line #1308	-> byte code offset #605
    //   Java source line #1309	-> byte code offset #610
    //   Java source line #1311	-> byte code offset #615
    //   Java source line #1308	-> byte code offset #618
    //   Java source line #1309	-> byte code offset #623
    //   Java source line #1312	-> byte code offset #628
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	629	0	this	UseReportConverter
    //   0	629	1	map	java.util.Map
    //   0	629	2	type	Type
    //   0	629	3	typefile	File
    //   0	629	4	typename	String
    //   1	623	5	writer	PrintWriter
    //   10	559	6	buffer	StringBuffer
    //   267	49	7	entry	Map.Entry
    //   270	123	8	desc	IElementDescriptor
    //   273	164	9	mem	Member
    //   286	184	10	iter	Iterator
    //   603	13	11	localObject	Object
    //   584	1	12	localIOException	IOException
    // Exception table:
    //   from	to	target	type
    //   3	581	584	java/io/IOException
    //   3	603	603	finally
  }
  
  protected String getTypeDetailsHeader()
  {
    return SearchMessages.UseReportConverter_reference_details;
  }
  
  protected String getTypeDetails()
  {
    return SearchMessages.UseReportConverter_click_an_entry_to_see_details;
  }
  
  protected String getTypeTitle(String typename)
  {
    return NLS.bind(SearchMessages.UseReportConverter_usage_details, Signature.getSimpleName(typename));
  }
  
  String getReferencesTable(Member member)
  {
    StringBuffer buffer = new StringBuffer();
    Map.Entry entry = null;
    buffer.append("<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"6\">\n");
    ArrayList refs = null;
    Reference ref = null;
    Iterator iter2;
    for (Iterator iter = children.entrySet().iterator(); iter.hasNext(); iter2.hasNext())
    {
      entry = (Map.Entry)iter.next();
      buffer.append("<tr align=\"left\"> \n");
      buffer.append("<td colspan=\"3\" bgcolor=\"#CCCCCC\">").append("<b>").append(entry.getKey()).append("</b>").append("</td>\n");
      buffer.append("</tr>\n");
      buffer.append("<tr bgcolor=\"").append("#E0C040").append("\">");
      buffer.append("<td align=\"left\" width=\"84%\">").append("<b>").append(SearchMessages.UseReportConverter_reference_location).append("</b>").append("</td>\n");
      buffer.append("<td align=\"center\" width=\"8%\">").append("<b>").append(SearchMessages.UseReportConverter_line_number).append("</b>").append("</td>\n");
      buffer.append("<td align=\"center\" width=\"8%\">").append("<b>").append(SearchMessages.UseReportConverter_reference_kind).append("</b>").append("</td>\n");
      buffer.append("</tr>\n");
      refs = (ArrayList)entry.getValue();
      Collections.sort(refs, compare);
      iter2 = refs.iterator(); continue;
      ref = (Reference)iter2.next();
      try
      {
        String name = getDisplayName(desc, false, true);
        buffer.append("<tr>\n");
        buffer.append("<td>").append(name).append("</td>\n");
        buffer.append("<td align=\"center\">").append(line).append("</td>\n");
        buffer.append("<td align=\"center\">").append("<span class=\"typeslnk\"");
        if (message != null) {
          buffer.append(" title=\"").append(message).append("\"");
        }
        buffer.append(">").append(VisibilityModifiers.getVisibilityName(vis)).append("</span>");
        buffer.append("</td>\n").append("</tr>\n");
      }
      catch (CoreException ce)
      {
        ApiPlugin.log(ce);
      }
    }
    buffer.append("</table>\n");
    return buffer.toString();
  }
  
  String getDisplayName(IElementDescriptor desc, boolean qualifiedparams, boolean qualified)
    throws CoreException
  {
    String displayname = null;
    switch (desc.getElementType())
    {
    case 2: 
      IReferenceTypeDescriptor rtype = (IReferenceTypeDescriptor)desc;
      displayname = Signatures.getTypeSignature(rtype.getSignature(), rtype.getGenericSignature(), qualified);
      break;
    case 6: 
      IMethodDescriptor method = (IMethodDescriptor)desc;
      if (qualified) {
        displayname = Signatures.getQualifiedMethodSignature(method, qualifiedparams, qualifiedparams);
      } else {
        displayname = Signatures.getMethodSignature(method, qualifiedparams);
      }
      break;
    case 5: 
      IFieldDescriptor field = (IFieldDescriptor)desc;
      if (qualified) {
        displayname = Signatures.getQualifiedFieldSignature(field);
      } else {
        displayname = field.getName();
      }
      break;
    }
    return displayname;
  }
  
  String extractLinkFrom(File root, String fileName)
  {
    StringBuffer buffer = new StringBuffer();
    String substring = fileName.substring(root.getAbsolutePath().length()).replace('\\', '/');
    buffer.append('.');
    if (substring.charAt(0) != '/') {
      buffer.append('/');
    }
    buffer.append(substring);
    return String.valueOf(buffer);
  }
  
  protected String getIndexTitle()
  {
    return SearchMessages.UseReportConverter_bundle_usage_information;
  }
  
  /* Error */
  void writeIndexPage(List scanResult)
    throws Exception
  {
    // Byte code:
    //   0: aload_1
    //   1: new 761	org/eclipse/pde/api/tools/internal/search/UseReportConverter$2
    //   4: dup
    //   5: aload_0
    //   6: invokespecial 1456	org/eclipse/pde/api/tools/internal/search/UseReportConverter$2:<init>	(Lorg/eclipse/pde/api/tools/internal/search/UseReportConverter;)V
    //   9: invokestatic 1359	java/util/Collections:sort	(Ljava/util/List;Ljava/util/Comparator;)V
    //   12: aconst_null
    //   13: astore_2
    //   14: new 707	java/io/File
    //   17: dup
    //   18: aload_0
    //   19: invokevirtual 1420	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getHtmlLocation	()Ljava/lang/String;
    //   22: ldc_w 689
    //   25: invokespecial 1314	java/io/File:<init>	(Ljava/lang/String;Ljava/lang/String;)V
    //   28: astore_3
    //   29: aload_3
    //   30: invokevirtual 1306	java/io/File:exists	()Z
    //   33: ifne +8 -> 41
    //   36: aload_3
    //   37: invokevirtual 1305	java/io/File:createNewFile	()Z
    //   40: pop
    //   41: aload_0
    //   42: aload_3
    //   43: invokevirtual 1414	org/eclipse/pde/api/tools/internal/search/UseReportConverter:setReportIndex	(Ljava/io/File;)V
    //   46: new 721	java/lang/StringBuffer
    //   49: dup
    //   50: invokespecial 1341	java/lang/StringBuffer:<init>	()V
    //   53: astore 4
    //   55: aload 4
    //   57: ldc_w 621
    //   60: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   63: pop
    //   64: aload 4
    //   66: ldc_w 654
    //   69: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   72: ldc_w 653
    //   75: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   78: ldc_w 655
    //   81: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   84: pop
    //   85: aload_0
    //   86: aload 4
    //   88: invokevirtual 1430	org/eclipse/pde/api/tools/internal/search/UseReportConverter:writeMetadataHeaders	(Ljava/lang/StringBuffer;)V
    //   91: aload 4
    //   93: ldc_w 675
    //   96: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   99: aload_0
    //   100: invokevirtual 1421	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getIndexTitle	()Ljava/lang/String;
    //   103: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   106: ldc_w 637
    //   109: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   112: pop
    //   113: aload 4
    //   115: ldc_w 631
    //   118: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   121: pop
    //   122: aload 4
    //   124: ldc_w 647
    //   127: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   130: pop
    //   131: aload 4
    //   133: ldc_w 651
    //   136: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   139: aload_0
    //   140: invokevirtual 1421	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getIndexTitle	()Ljava/lang/String;
    //   143: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   146: ldc_w 629
    //   149: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   152: pop
    //   153: aload_0
    //   154: invokevirtual 1434	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getMetadata	()Lorg/eclipse/pde/api/tools/internal/provisional/search/IMetadata;
    //   157: pop
    //   158: aload_0
    //   159: aload 4
    //   161: invokevirtual 1431	org/eclipse/pde/api/tools/internal/search/UseReportConverter:writeMetadataSummary	(Ljava/lang/StringBuffer;)V
    //   164: goto +4 -> 168
    //   167: pop
    //   168: aload 4
    //   170: ldc_w 652
    //   173: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   176: getstatic 1269	org/eclipse/pde/api/tools/internal/search/SearchMessages:UseReportConvertor_additional_infos_section	Ljava/lang/String;
    //   179: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   182: ldc_w 630
    //   185: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   188: pop
    //   189: aload_0
    //   190: invokevirtual 1411	org/eclipse/pde/api/tools/internal/search/UseReportConverter:hasMissing	()Z
    //   193: ifeq +49 -> 242
    //   196: aload 4
    //   198: ldc_w 657
    //   201: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   204: pop
    //   205: aload 4
    //   207: getstatic 1228	org/eclipse/pde/api/tools/internal/search/SearchMessages:UseReportConverter_missing_bundles_prevented_scan	Ljava/lang/String;
    //   210: iconst_2
    //   211: anewarray 720	java/lang/String
    //   214: dup
    //   215: iconst_0
    //   216: ldc_w 598
    //   219: aastore
    //   220: dup
    //   221: iconst_1
    //   222: ldc_w 622
    //   225: aastore
    //   226: invokestatic 1384	org/eclipse/osgi/util/NLS:bind	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    //   229: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   232: pop
    //   233: aload 4
    //   235: ldc_w 633
    //   238: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   241: pop
    //   242: aload 4
    //   244: ldc_w 657
    //   247: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   250: pop
    //   251: aload 4
    //   253: getstatic 1203	org/eclipse/pde/api/tools/internal/search/SearchMessages:UseReportConverter_bundles_that_were_not_searched	Ljava/lang/String;
    //   256: iconst_2
    //   257: anewarray 720	java/lang/String
    //   260: dup
    //   261: iconst_0
    //   262: ldc_w 641
    //   265: aastore
    //   266: dup
    //   267: iconst_1
    //   268: ldc_w 624
    //   271: aastore
    //   272: invokestatic 1384	org/eclipse/osgi/util/NLS:bind	(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
    //   275: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   278: pop
    //   279: aload_0
    //   280: aload_1
    //   281: invokeinterface 1479 1 0
    //   286: ifle +7 -> 293
    //   289: iconst_1
    //   290: goto +4 -> 294
    //   293: iconst_0
    //   294: invokevirtual 1429	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getAdditionalIndexInfo	(Z)Ljava/lang/String;
    //   297: astore 5
    //   299: aload 5
    //   301: ifnull +11 -> 312
    //   304: aload 4
    //   306: aload 5
    //   308: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   311: pop
    //   312: aload_1
    //   313: invokeinterface 1479 1 0
    //   318: ifle +200 -> 518
    //   321: aload 4
    //   323: ldc_w 657
    //   326: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   329: getstatic 1218	org/eclipse/pde/api/tools/internal/search/SearchMessages:UseReportConverter_inlined_description	Ljava/lang/String;
    //   332: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   335: ldc_w 633
    //   338: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   341: pop
    //   342: aload 4
    //   344: aload_0
    //   345: invokevirtual 1419	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getColourLegend	()Ljava/lang/String;
    //   348: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   351: pop
    //   352: aload 4
    //   354: aload_0
    //   355: getstatic 1248	org/eclipse/pde/api/tools/internal/search/SearchMessages:UseReportConverter_references	Ljava/lang/String;
    //   358: getstatic 1201	org/eclipse/pde/api/tools/internal/search/SearchMessages:UseReportConverter_bundle	Ljava/lang/String;
    //   361: iconst_1
    //   362: invokevirtual 1450	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getReferencesTableHeader	(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;
    //   365: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   368: pop
    //   369: aload_1
    //   370: invokeinterface 1479 1 0
    //   375: ifle +153 -> 528
    //   378: aconst_null
    //   379: astore 6
    //   381: aconst_null
    //   382: astore 7
    //   384: aconst_null
    //   385: astore 8
    //   387: aload_1
    //   388: invokeinterface 1481 1 0
    //   393: astore 9
    //   395: goto +101 -> 496
    //   398: aload 9
    //   400: invokeinterface 1478 1 0
    //   405: checkcast 766	org/eclipse/pde/api/tools/internal/search/UseReportConverter$Report
    //   408: astore 6
    //   410: aload 6
    //   412: ifnull +84 -> 496
    //   415: new 707	java/io/File
    //   418: dup
    //   419: aload_0
    //   420: invokevirtual 1413	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getReportsRoot	()Ljava/io/File;
    //   423: new 721	java/lang/StringBuffer
    //   426: dup
    //   427: aload 6
    //   429: getfield 1295	org/eclipse/pde/api/tools/internal/search/UseReportConverter$Report:name	Ljava/lang/String;
    //   432: invokestatic 1340	java/lang/String:valueOf	(Ljava/lang/Object;)Ljava/lang/String;
    //   435: invokespecial 1344	java/lang/StringBuffer:<init>	(Ljava/lang/String;)V
    //   438: getstatic 1191	java/io/File:separator	Ljava/lang/String;
    //   441: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   444: ldc_w 689
    //   447: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   450: invokevirtual 1343	java/lang/StringBuffer:toString	()Ljava/lang/String;
    //   453: invokespecial 1313	java/io/File:<init>	(Ljava/io/File;Ljava/lang/String;)V
    //   456: astore 7
    //   458: aload_0
    //   459: aload_0
    //   460: invokevirtual 1413	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getReportsRoot	()Ljava/io/File;
    //   463: aload 7
    //   465: invokevirtual 1310	java/io/File:getAbsolutePath	()Ljava/lang/String;
    //   468: invokevirtual 1449	org/eclipse/pde/api/tools/internal/search/UseReportConverter:extractLinkFrom	(Ljava/io/File;Ljava/lang/String;)Ljava/lang/String;
    //   471: astore 8
    //   473: aload 4
    //   475: aload_0
    //   476: aload 6
    //   478: getfield 1297	org/eclipse/pde/api/tools/internal/search/UseReportConverter$Report:counts	Lorg/eclipse/pde/api/tools/internal/search/UseReportConverter$CountGroup;
    //   481: aload 8
    //   483: aload 6
    //   485: getfield 1295	org/eclipse/pde/api/tools/internal/search/UseReportConverter$Report:name	Ljava/lang/String;
    //   488: iconst_1
    //   489: invokevirtual 1454	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getReferenceTableEntry	(Lorg/eclipse/pde/api/tools/internal/search/UseReportConverter$CountGroup;Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;
    //   492: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   495: pop
    //   496: aload 9
    //   498: invokeinterface 1477 1 0
    //   503: ifne -105 -> 398
    //   506: aload 4
    //   508: ldc_w 635
    //   511: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   514: pop
    //   515: goto +13 -> 528
    //   518: aload 4
    //   520: aload_0
    //   521: invokevirtual 1423	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getNoReportsInformation	()Ljava/lang/String;
    //   524: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   527: pop
    //   528: aload 4
    //   530: ldc_w 658
    //   533: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   536: pop
    //   537: aload 4
    //   539: ldc_w 627
    //   542: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   545: ldc_w 632
    //   548: invokevirtual 1350	java/lang/StringBuffer:append	(Ljava/lang/String;)Ljava/lang/StringBuffer;
    //   551: pop
    //   552: new 712	java/io/PrintWriter
    //   555: dup
    //   556: new 710	java/io/OutputStreamWriter
    //   559: dup
    //   560: new 708	java/io/FileOutputStream
    //   563: dup
    //   564: aload_3
    //   565: invokespecial 1315	java/io/FileOutputStream:<init>	(Ljava/io/File;)V
    //   568: ldc_w 682
    //   571: invokespecial 1316	java/io/OutputStreamWriter:<init>	(Ljava/io/OutputStream;Ljava/lang/String;)V
    //   574: invokespecial 1320	java/io/PrintWriter:<init>	(Ljava/io/Writer;)V
    //   577: astore_2
    //   578: aload_2
    //   579: aload 4
    //   581: invokevirtual 1343	java/lang/StringBuffer:toString	()Ljava/lang/String;
    //   584: invokevirtual 1321	java/io/PrintWriter:print	(Ljava/lang/String;)V
    //   587: aload_2
    //   588: invokevirtual 1319	java/io/PrintWriter:flush	()V
    //   591: goto +38 -> 629
    //   594: pop
    //   595: new 715	java/lang/Exception
    //   598: dup
    //   599: getstatic 1273	org/eclipse/pde/api/tools/internal/search/SearchMessages:ioexception_writing_html_file	Ljava/lang/String;
    //   602: aload_0
    //   603: invokevirtual 1412	org/eclipse/pde/api/tools/internal/search/UseReportConverter:getReportIndex	()Ljava/io/File;
    //   606: invokevirtual 1310	java/io/File:getAbsolutePath	()Ljava/lang/String;
    //   609: invokestatic 1383	org/eclipse/osgi/util/NLS:bind	(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;
    //   612: invokespecial 1325	java/lang/Exception:<init>	(Ljava/lang/String;)V
    //   615: athrow
    //   616: astore 10
    //   618: aload_2
    //   619: ifnull +7 -> 626
    //   622: aload_2
    //   623: invokevirtual 1318	java/io/PrintWriter:close	()V
    //   626: aload 10
    //   628: athrow
    //   629: aload_2
    //   630: ifnull +7 -> 637
    //   633: aload_2
    //   634: invokevirtual 1318	java/io/PrintWriter:close	()V
    //   637: return
    // Line number table:
    //   Java source line #1456	-> byte code offset #0
    //   Java source line #1462	-> byte code offset #12
    //   Java source line #1464	-> byte code offset #14
    //   Java source line #1465	-> byte code offset #29
    //   Java source line #1466	-> byte code offset #36
    //   Java source line #1468	-> byte code offset #41
    //   Java source line #1470	-> byte code offset #46
    //   Java source line #1471	-> byte code offset #55
    //   Java source line #1472	-> byte code offset #64
    //   Java source line #1473	-> byte code offset #85
    //   Java source line #1474	-> byte code offset #91
    //   Java source line #1475	-> byte code offset #113
    //   Java source line #1476	-> byte code offset #122
    //   Java source line #1477	-> byte code offset #131
    //   Java source line #1479	-> byte code offset #153
    //   Java source line #1480	-> byte code offset #158
    //   Java source line #1482	-> byte code offset #167
    //   Java source line #1485	-> byte code offset #168
    //   Java source line #1486	-> byte code offset #189
    //   Java source line #1487	-> byte code offset #196
    //   Java source line #1488	-> byte code offset #205
    //   Java source line #1489	-> byte code offset #210
    //   Java source line #1488	-> byte code offset #226
    //   Java source line #1490	-> byte code offset #233
    //   Java source line #1492	-> byte code offset #242
    //   Java source line #1493	-> byte code offset #251
    //   Java source line #1494	-> byte code offset #279
    //   Java source line #1495	-> byte code offset #299
    //   Java source line #1496	-> byte code offset #304
    //   Java source line #1498	-> byte code offset #312
    //   Java source line #1499	-> byte code offset #321
    //   Java source line #1500	-> byte code offset #342
    //   Java source line #1501	-> byte code offset #352
    //   Java source line #1502	-> byte code offset #369
    //   Java source line #1503	-> byte code offset #378
    //   Java source line #1504	-> byte code offset #381
    //   Java source line #1505	-> byte code offset #384
    //   Java source line #1506	-> byte code offset #387
    //   Java source line #1507	-> byte code offset #398
    //   Java source line #1508	-> byte code offset #410
    //   Java source line #1509	-> byte code offset #415
    //   Java source line #1510	-> byte code offset #458
    //   Java source line #1511	-> byte code offset #473
    //   Java source line #1506	-> byte code offset #496
    //   Java source line #1514	-> byte code offset #506
    //   Java source line #1518	-> byte code offset #518
    //   Java source line #1520	-> byte code offset #528
    //   Java source line #1521	-> byte code offset #537
    //   Java source line #1524	-> byte code offset #552
    //   Java source line #1525	-> byte code offset #578
    //   Java source line #1526	-> byte code offset #587
    //   Java source line #1527	-> byte code offset #594
    //   Java source line #1528	-> byte code offset #595
    //   Java source line #1529	-> byte code offset #616
    //   Java source line #1530	-> byte code offset #618
    //   Java source line #1531	-> byte code offset #622
    //   Java source line #1533	-> byte code offset #626
    //   Java source line #1530	-> byte code offset #629
    //   Java source line #1531	-> byte code offset #633
    //   Java source line #1534	-> byte code offset #637
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	638	0	this	UseReportConverter
    //   0	638	1	scanResult	List
    //   13	621	2	writer	PrintWriter
    //   28	537	3	reportIndex	File
    //   53	527	4	buffer	StringBuffer
    //   297	10	5	additional	String
    //   379	105	6	report	Report
    //   382	82	7	refereehtml	File
    //   385	97	8	link	String
    //   393	104	9	iter	Iterator
    //   616	11	10	localObject	Object
    //   167	1	11	localException	Exception
    //   594	1	12	localIOException	IOException
    // Exceptio
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55

Further reading...

For more information on Java 1.5 Tiger, you may find Java 1.5 Tiger, A developer's Notebook by D. Flanagan and B. McLaughlin from O'Reilly of interest.

New!JAR listings


Copyright 2006-2017. Infinite Loop Ltd