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

/   143: invokevirtual 347	java/io/BufferedWriter:flush	()V
    //   146: goto +68 -> 214
    //   149: pop
    //   150: aload_1
    //   151: ifnull +75 -> 226
    //   154: aload_1
    //   155: invokevirtual 346	java/io/BufferedWriter:close	()V
    //   158: goto +68 -> 226
    //   161: pop
    //   162: goto +64 -> 226
    //   165: pop
    //   166: aload_1
    //   167: ifnull +59 -> 226
    //   170: aload_1
    //   171: invokevirtual 346	java/io/BufferedWriter:close	()V
    //   174: goto +52 -> 226
    //   177: pop
    //   178: goto +48 -> 226
    //   181: pop
    //   182: aload_1
    //   183: ifnull +43 -> 226
    //   186: aload_1
    //   187: invokevirtual 346	java/io/BufferedWriter:close	()V
    //   190: goto +36 -> 226
    //   193: pop
    //   194: goto +32 -> 226
    //   197: astore 6
    //   199: aload_1
    //   200: ifnull +11 -> 211
    //   203: aload_1
    //   204: invokevirtual 346	java/io/BufferedWriter:close	()V
    //   207: goto +4 -> 211
    //   210: pop
    //   211: aload 6
    //   213: athrow
    //   214: aload_1
    //   215: ifnull +11 -> 226
    //   218: aload_1
    //   219: invokevirtual 346	java/io/BufferedWriter:close	()V
    //   222: goto +4 -> 226
    //   225: pop
    //   226: return
    // Line number table:
    //   Java source line #233	-> byte code offset #0
    //   Java source line #236	-> byte code offset #2
    //   Java source line #237	-> byte code offset #14
    //   Java source line #238	-> byte code offset #21
    //   Java source line #240	-> byte code offset #26
    //   Java source line #241	-> byte code offset #38
    //   Java source line #242	-> byte code offset #45
    //   Java source line #244	-> byte code offset #50
    //   Java source line #245	-> byte code offset #55
    //   Java source line #246	-> byte code offset #67
    //   Java source line #247	-> byte code offset #77
    //   Java source line #248	-> byte code offset #92
    //   Java source line #249	-> byte code offset #107
    //   Java source line #250	-> byte code offset #133
    //   Java source line #251	-> byte code offset #142
    //   Java source line #253	-> byte code offset #149
    //   Java source line #257	-> byte code offset #150
    //   Java source line #259	-> byte code offset #154
    //   Java source line #260	-> byte code offset #161
    //   Java source line #254	-> byte code offset #165
    //   Java source line #257	-> byte code offset #166
    //   Java source line #259	-> byte code offset #170
    //   Java source line #260	-> byte code offset #177
    //   Java source line #255	-> byte code offset #181
    //   Java source line #257	-> byte code offset #182
    //   Java source line #259	-> byte code offset #186
    //   Java source line #260	-> byte code offset #193
    //   Java source line #256	-> byte code offset #197
    //   Java source line #257	-> byte code offset #199
    //   Java source line #259	-> byte code offset #203
    //   Java source line #260	-> byte code offset #210
    //   Java source line #262	-> byte code offset #211
    //   Java source line #257	-> byte code offset #214
    //   Java source line #259	-> byte code offset #218
    //   Java source line #260	-> byte code offset #225
    //   Java source line #263	-> byte code offset #226
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	227	0	this	ReferenceLookupVisitor
    //   1	218	1	writer	java.io.BufferedWriter
    //   13	18	2	rootfile	java.io.File
    //   37	83	3	file	java.io.File
    //   53	82	4	doc	Document
    //   65	38	5	root	Element
    //   197	15	6	localObject	Object
    //   149	1	7	localFileNotFoundException	java.io.FileNotFoundException
    //   161	1	8	localIOException1	java.io.IOException
    //   165	1	9	localIOException2	java.io.IOException
    //   177	1	10	localIOException3	java.io.IOException
    //   181	1	11	localCoreException	CoreException
    //   193	1	12	localIOException4	java.io.IOException
    //   210	1	13	localIOException5	java.io.IOException
    //   225	1	14	localIOException6	java.io.IOException
    // Exception table:
    //   from	to	target	type
    //   2	146	149	java/io/FileNotFoundException
    //   154	158	161	java/io/IOException
    //   2	146	165	java/io/IOException
    //   170	174	177	java/io/IOException
    //   2	146	181	org/eclipse/core/runtime/CoreException
    //   186	190	193	java/io/IOException
    //   2	150	197	finally
    //   165	166	197	finally
    //   181	182	197	finally
    //   203	207	210	java/io/IOException
    //   218	222	225	java/io/IOException
  }
  
  private void addMissingComponents(List missing, String details, Document doc, Element root)
  {
    Iterator iter = missing.iterator();
    while (iter.hasNext())
    {
      IComponentDescriptor component = (IComponentDescriptor)iter.next();
      Element comp = doc.createElement("component");
      comp.setAttribute("id", component.getId());
      comp.setAttribute("version", component.getVersion());
      comp.setAttribute("details", details);
      root.appendChild(comp);
    }
  }
  
  public void setAnalysisScope(String regex)
  {
    analysisScope = regex;
  }
  
  public void setTargetScope(String regex)
  {
    targetScope = regex;
  }
  
  public void setExcludedElements(FilteredElements excludedElements)
  {
    this.excludedElements = excludedElements;
  }
  
  public void setIncludedElements(FilteredElements includedElements)
  {
    this.includedElements = includedElements;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.search.ReferenceLookupVisitor
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.search;

import org.eclipse.osgi.util.NLS;

public class SearchMessages
  extends NLS
{
  private static final String BUNDLE_NAME = "org.eclipse.pde.api.tools.internal.search.searchmessages";
  public static String ApiSearchEngine_anonymous_type;
  public static String ApiSearchEngine_api;
  public static String ApiSearchEngine_api_and_illegal;
  public static String ApiSearchEngine_api_and_internal;
  public static String ApiSearchEngine_api_internal;
  public static String ApiSearchEngine_extracting_refs_from;
  public static String ApiSearchEngine_illegal;
  public static String ApiSearchEngine_internal;
  public static String ApiSearchEngine_internal_and_illegal;
  public static String ApiSearchEngine_searching_for_use_from;
  public static String ApiSearchEngine_searching_project;
  public static String ApiSearchEngine_searching_projects;
  public static String ConsumerReportConvertor_BackLinkToConsumer;
  public static String ConsumerReportConvertor_ConsumerListHeader;
  public static String ConsumerReportConvertor_ConsumerTitle;
  public static String ConsumerReportConvertor_IndexTitle;
  public static String ConsumerReportConvertor_ProducerListHeader;
  public static String ConsumerReportConvertor_ProducerTitle;
  public static String ConsumerReportConvertor_TypeListHeader;
  public static String ioexception_writing_html_file;
  public static String collecting_external_dependencies;
  public static String could_not_create_sax_parser;
  public static String could_not_create_file;
  public static String missing_xml_files_location;
  public static String invalid_directory_name;
  public static String load_external_dependencies;
  public static String MigrationReportConvertor_bundle_migration_information;
  public static String MigrationReportConvertor_bundles_have_references;
  public static String MigrationReportConvertor_click_table_entry;
  public static String MigrationReportConvertor_member_has_unresolved_refs;
  public static String MigrationReportConvertor_migration_details;
  public static String MigrationReportConvertor_no_reported_migration_problems;
  public static String MigrationReportConvertor_table_shows_unresolved;
  public static String MigrationReportConvertor_type_migration_information;
  public static String MigrationReportConvertor_type_with_unresolved_refs;
  public static String MissingRefMetadata_CoreExceptionInParsing;
  public static String MissingRefReportConverter_AddlBundleInfo;
  public static String MissingRefReportConverter_ApiUseScanLocations;
  public static String MissingRefReportConverter_BackToIndex;
  public static String MissingRefReportConverter_Field;
  public static String MissingRefReportConverter_IndexMetaTag;
  public static String MissingRefReportConverter_MetadataTableTitle;
  public static String MissingRefReportConverter_MetadataTitle;
  public static String MissingRefReportConverter_Method;
  public static String MissingRefReportConverter_NONE;
  public static String MissingRefReportConverter_NotSearched;
  public static String MissingRefReportConverter_ProblemDetails;
  public static String MissingRefReportConverter_ProblemSummary;
  public static String MissingRefReportConverter_ProblemSummaryTitle;
  public static String MissingRefReportConverter_ProblemTable_ColumnMissingFields;
  public static String MissingRefReportConverter_ProblemTable_ColumnMissingFieldsTooltip;
  public static String MissingRefReportConverter_ProblemTable_ColumnMissingMethods;
  public static String MissingRefReportConverter_ProblemTable_ColumnMissingMethodsTooltip;
  public static String MissingRefReportConverter_ProblemTable_ColumnMissingTypes;
  public static String MissingRefReportConverter_ProblemTable_ColumnMissingTypesTooltip;
  public static String MissingRefReportConverter_ProblemTable_ColumnBundle;
  public static String MissingRefReportConverter_ProblemTable_ColumnBundleTooltip;
  public static String MissingRefReportConverter_ProblemTable_ColumnTotal;
  public static String MissingRefReportConverter_ProblemTable_ColumnTotalTooltip;
  public static String MissingRefReportConverter_ProblemTable_ColumnVersion;
  public static String MissingRefReportConverter_ProblemTable_ColumnVersionTooltip;
  public static String MissingRefReportConverter_ProblemTableHeader;
  public static String MissingRefReportConverter_ProblemTitle;
  public static String MissingRefReportConverter_ProblemTypes;
  public static String MissingRefReportConverter_ProfileLocation;
  public static String MissingRefReportConverter_ReportDate;
  public static String MissingRefReportConverter_ReportLocation;
  public static String MissingRefReportConverter_ReportTitle;
  public static String MissingRefReportConverter_Summary;
  public static String MissingRefReportConverter_SummaryDesc;
  public static String MissingRefReportConverter_Type;
  public static String no_use_scan_ref_problems;
  public static String ReferenceLookupVisitor_0;
  public static String SkippedComponent_component_was_excluded;
  public static String UseReportConverter_xslt_file_not_valid;
  public static String UseReportConverter_collecting_dir_info;
  public static String UseReportConverter_core_exep_reading_metadata;
  public static String UseReportConverter_coreexception_writing_html_file;
  public static String UseReportConverter_te_applying_xslt_skipped;
  public static String UseReportConverter_no_additional_scan_info;
  public static String UseReportConverter_no_xstl_specified;
  public static String UseReportConverter_scan_date;
  public static String UseReportConverter_scan_details;
  public static String UseReportConverter_scope_pattern;
  public static String UseReportConverter_se_error_parser_handle;
  public static String UseReportConverter_pce_error_getting_parser;
  public static String UseReportConverter_preparing_html_root;
  public static String UseReportConverter_preparing_report_metadata;
  public static String UseReportConverter_preparing_xml_root;
  public static String UseReportConverter_preparing_xslt_file;
  public static String UseReportConverter_writing_not_searched;
  public static String UseReportConverter_writing_root_index;
  public static String UseReportConverter___has_total_refs;
  public static String UseReportConverter_api_pattern;
  public static String UseReportConverter_api_ref_description;
  public static String UseReportConverter_api_references;
  public static String UseReportConverter_archive_patterns;
  public static String UseReportConverter_back_to_bundle_index;
  public static String UseReportConverter_back_to_not_searched;
  public static String UseReportConverter_baseline_loc;
  public static String UseReportConverter_bundle;
  public static String UseReportConverter_bundle_usage_information;
  public static String UseReportConverter_bundles_that_were_not_searched;
  public static String UseReportConverter_click_an_entry_to_see_details;
  public static String UseReportConverter_description;
  public static String UseReportConverter_filter_pattern;
  public static String UseReportConverter_filter_pattern_not_valid;
  public static String UseReportConverter_following_bundles_have_refs;
  public static String UseReportConverter_fragment_permissible_references;
  public static String UseReportConverter_fragment_ref_description;
  public static String UseReportConverter_illegal;
  public static String UseReportConverter_illegal_ref_description;
  public static String UseReportConverter_includes_API_refs;
  public static String UseReportConverter_includes_illegal_use;
  public static String UseReportConverter_includes_internal_refs;
  public static String UseReportConverter_inlined_description;
  public static String UseReportConverter_internal_patterns;
  public static String UseReportConverter_internal_permissible_references;
  public static String UseReportConverter_internal_ref_description;
  public static String UseReportConverter_internal_references;
  public static String UseReportConverter_line_number;
  public static String UseReportConverter_list_of_all_refing_bundles;
  public static String UseReportConverter_marks_illegal_use_references;
  public static String UseReportConverter_marks_internal_references;
  public static String UseReportConverter_member;
  public static String UseReportConverter_missing_bundles_prevented_scan;
  public static String UseReportConverter_missing_required;
  public static String UseReportConverter_no_reported_usage;
  public static String UseReportConverter_no_required_missing;
  public static String UseReportConverter_none;
  public static String UseReportConverter_parsing_use_scan;
  public static String UseReportConverter_permissible_ref_description;
  public static String UseReportConverter_reference_count;
  public static String UseReportConverter_reference_details;
  public static String UseReportConverter_reference_kind;
  public static String UseReportConverter_reference_location;
  public static String UseReportConverter_reference_pattern;
  public static String UseReportConverter_referenced_type;
  public static String UseReportConverter_references;
  public static String UseReportConverter_referencing_bundles;
  public static String UseReportConverter_report_location;
  public static String UseReportConverter_reported_missing_bundles;
  public static String UseReportConverter_required_bundles;
  public static String UseReportConverter_root_index_description;
  public static String UseReportConverter_summary;
  public static String UseReportConverter_to_filter_patterns;
  public static String UseReportConverter_types_used_in;
  public static String UseReportConverter_usage_details;
  public static String UseReportConverter_use_scan_info;
  public static String UseReportConverter_version;
  public static String UseReportConverter_version_column_description;
  public static String UseReportConvertor_additional_infos_section;
  public static String UseScanManager_InvalidArchive;
  public static String UseScanManager_InvalidDir;
  public static String UseScanParser_analyzing_references;
  public static String UseScanParser_parsing;
  
  static
  {
    NLS.initializeMessages("org.eclipse.pde.api.tools.internal.search.searchmessages", SearchMessages.class);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.search.SearchMessages
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.search;

import java.util.Comparator;

class SkippedComponent$1
  implements Comparator
{
  final SkippedComponent this$0;
  
  SkippedComponent$1(SkippedComponent paramSkippedComponent)
  {
    this$0 = paramSkippedComponent;
  }
  
  public int compare(Object o1, Object o2)
  {
    return ((String)o1).compareTo(o2);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.search.SkippedComponent.1
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.search;

import java.util.Comparator;
import java.util.TreeSet;
import org.eclipse.osgi.service.resolver.BundleDescription;
import org.eclipse.osgi.service.resolver.ResolverError;
import org.eclipse.osgi.service.resolver.State;
import org.eclipse.osgi.service.resolver.StateHelper;
import org.eclipse.osgi.service.resolver.VersionConstraint;
import org.eclipse.pde.api.tools.internal.provisional.model.IApiComponent;
import org.eclipse.pde.api.tools.internal.provisional.model.IApiElement;

public class SkippedComponent
  implements IApiElement
{
  private String componentid;
  private String version;
  private ResolverError[] errors = null;
  
  public SkippedComponent(String componentid, String version, ResolverError[] errors)
  {
    this.componentid = componentid;
    this.version = version;
    this.errors = errors;
  }
  
  public boolean equals(Object obj)
  {
    if ((obj instanceof SkippedComponent)) {
      return componentid.equals(componentid);
    }
    return false;
  }
  
  public int hashCode()
  {
    return componentid.hashCode();
  }
  
  public String getComponentId()
  {
    return componentid;
  }
  
  public boolean wasExcluded()
  {
    return errors == null;
  }
  
  public boolean hasResolutionErrors()
  {
    return errors != null;
  }
  
  public IApiElement getAncestor(int ancestorType)
  {
    return null;
  }
  
  public String getVersion()
  {
    return version;
  }
  
  public IApiComponent getApiComponent()
  {
    return null;
  }
  
  public String getName()
  {
    return componentid;
  }
  
  public IApiElement getParent()
  {
    return null;
  }
  
  public int getType()
  {
    return 1;
  }
  
  public ResolverError[] getErrors()
  {
    return errors;
  }
  
  private String[] resolveRootErrors(ResolverError[] errors)
  {
    TreeSet collector = new TreeSet(new Comparator()
    {
      public int compare(Object o1, Object o2)
      {
        return ((String)o1).compareTo(o2);
      }
    });
    ResolverError error = null;
    VersionConstraint[] constraints = (VersionConstraint[])null;
    BundleDescription[] bundle = new BundleDescription[1];
    for (int i = 0; i < errors.length; i++)
    {
      error = errors[i];
      if (error.getType() != 2) {
        collector.add(error.toString());
      }
      bundle[0] = error.getBundle();
      constraints = bundle[0].getContainingState().getStateHelper().getUnsatisfiedLeaves(bundle);
      if (constraints.length == 0) {
        collector.add(error.toString());
      }
      for (int j = 0; j < constraints.length; j++) {
        collector.add(constraints[j].toString());
      }
    }
    return (String[])collector.toArray(new String[collector.size()]);
  }
  
  public String getErrorDetails()
  {
    if (errors != null)
    {
      StringBuffer buffer = new StringBuffer();
      String[] problems = resolveRootErrors(errors);
      for (int i = 0; i < problems.length; i++) {
        buffer.append(problems[i]).append("<br/>");
      }
      return buffer.toString();
    }
    return SearchMessages.SkippedComponent_component_was_excluded;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.search.SkippedComponent
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.search;

import org.eclipse.pde.api.tools.internal.provisional.search.IMetadata;

public class UseMetadata
  implements IMetadata
{
  public static final String RUNATDATE = "runatdate";
  public static final String FLAGS = "flags";
  public static final String BASELINELOCATION = "baselinelocation";
  public static final String REPORTLOCATION = "reportlocation";
  public static final String SCOPEPATTERN = "scopepattern";
  public static final String REFERENCEPATTERN = "referencepattern";
  public static final String APIPATTERNS = "apipatterns";
  public static final String INTERNALPATTERNS = "internalpatterns";
  public static final String ARCHIVEPATTERNS = "archivepatterns";
  public static final String PATTERN = "pattern";
  public static final String VALUE = "value";
  public static final String METADATA = "metadata";
  public static final String DESCRIPTION = "description";
  int searchflags = 0;
  String[] apipatterns = null;
  String[] intpatterns = null;
  String[] archivepatterns = null;
  String baselinelocation = null;
  String reportlocation = null;
  String scopepattern = null;
  String refpattern = null;
  String runatdate = null;
  String description = null;
  
  public UseMetadata() {}
  
  public UseMetadata(int searchflags, String scopepattern, String refpattern, String baselinelocation, String reportlocation, String[] apipatterns, String[] internalpatterns, String[] archivepatterns, String runatdate, String description)
  {
    this.searchflags = searchflags;
    this.scopepattern = scopepattern;
    this.refpattern = refpattern;
    this.baselinelocation = baselinelocation;
    this.reportlocation = reportlocation;
    this.apipatterns = apipatterns;
    intpatterns = internalpatterns;
    this.archivepatterns = archivepatterns;
    this.runatdate = runatdate;
    this.description = description;
  }
  
  /* Error */
  public void serializeToFile(java.io.File file)
    throws java.io.IOException, org.eclipse.core.runtime.CoreException
  {
    // Byte code:
    //   0: aconst_null
    //   1: astore_2
    //   2: invokestatic 179	org/eclipse/pde/api/tools/internal/util/Util:newDocument	()Lorg/w3c/dom/Document;
    //   5: astore_3
    //   6: aload_3
    //   7: ldc 8
    //   9: invokeinterface 181 2 0
    //   14: astore 4
    //   16: aload_3
    //   17: aload 4
    //   19: invokeinterface 182 2 0
    //   24: pop
    //   25: aload_3
    //   26: ldc 6
    //   28: invokeinterface 181 2 0
    //   33: astore 5
    //   35: aload 4
    //   37: aload 5
    //   39: invokeinterface 184 2 0
    //   44: pop
    //   45: aload 5
    //   47: ldc 14
    //   49: aload_0
    //   50: getfield 161	org/eclipse/pde/api/tools/internal/search/UseMetadata:searchflags	I
    //   53: invokestatic 177	java/lang/Integer:toString	(I)Ljava/lang/String;
    //   56: invokeinterface 183 3 0
    //   61: aload_3
    //   62: ldc 12
    //   64: invokeinterface 181 2 0
    //   69: astore 5
    //   71: aload 4
    //   73: aload 5
    //   75: invokeinterface 184 2 0
    //   80: pop
    //   81: aload 5
    //   83: ldc 14
    //   85: aload_0
    //   86: getfield 166	org/eclipse/pde/api/tools/internal/search/UseMetadata:runatdate	Ljava/lang/String;
    //   89: invokeinterface 183 3 0
    //   94: aload_3
    //   95: ldc 5
    //   97: invokeinterface 181 2 0
    //   102: astore 5
    //   104: aload 4
    //   106: aload 5
    //   108: invokeinterface 184 2 0
    //   113: pop
    //   114: aload 5
    //   116: ldc 14
    //   118: aload_0
    //   119: getfield 163	org/eclipse/pde/api/tools/internal/search/UseMetadata:description	Ljava/lang/String;
    //   122: invokeinterface 183 3 0
    //   127: aload_3
    //   128: ldc 4
    //   130: invokeinterface 181 2 0
    //   135: astore 5
    //   137: aload 4
    //   139: aload 5
    //   141: invokeinterface 184 2 0
    //   146: pop
    //   147: aload 5
    //   149: ldc 14
    //   151: aload_0
    //   152: getfield 162	org/eclipse/pde/api/tools/internal/search/UseMetadata:baselinelocation	Ljava/lang/String;
    //   155: invokeinterface 183 3 0
    //   160: aload_3
    //   161: ldc 11
    //   163: invokeinterface 181 2 0
    //   168: astore 5
    //   170: aload 4
    //   172: aload 5
    //   174: invokeinterface 184 2 0
    //   179: pop
    //   180: aload 5
    //   182: ldc 14
    //   184: aload_0
    //   185: getfield 165	org/eclipse/pde/api/tools/internal/search/UseMetadata:reportlocation	Ljava/lang/String;
    //   188: invokeinterface 183 3 0
    //   193: aload_3
    //   194: ldc 13
    //   196: invokeinterface 181 2 0
    //   201: astore 5
    //   203: aload 4
    //   205: aload 5
    //   207: invokeinterface 184 2 0
    //   212: pop
    //   213: aload 5
    //   215: ldc 14
    //   217: aload_0
    //   218: getfield 167	org/eclipse/pde/api/tools/internal/search/UseMetadata:scopepattern	Ljava/lang/String;
    //   221: invokeinterface 183 3 0
    //   226: aload_3
    //   227: ldc 10
    //   229: invokeinterface 181 2 0
    //   234: astore 5
    //   236: aload 4
    //   238: aload 5
    //   240: invokeinterface 184 2 0
    //   245: pop
    //   246: aload 5
    //   248: ldc 14
    //   250: aload_0
    //   251: getfield 164	org/eclipse/pde/api/tools/internal/search/UseMetadata:refpattern	Ljava/lang/String;
    //   254: invokeinterface 183 3 0
    //   259: aload_3
    //   260: ldc 2
    //   262: invokeinterface 181 2 0
    //   267: astore 5
    //   269: aload 4
    //   271: aload 5
    //   273: invokeinterface 184 2 0
    //   278: pop
    //   279: aconst_null
    //   280: astore 6
    //   282: aload_0
    //   283: getfield 168	org/eclipse/pde/api/tools/internal/search/UseMetadata:apipatterns	[Ljava/lang/String;
    //   286: ifnull +58 -> 344
    //   289: iconst_0
    //   290: istore 7
    //   292: goto +42 -> 334
    //   295: aload_3
    //   296: ldc 9
    //   298: invokeinterface 181 2 0
    //   303: astore 6
    //   305: aload 5
    //   307: aload 6
    //   309: invokeinterface 184 2 0
    //   314: pop
    //   315: aload 6
    //   317: ldc 14
    //   319: aload_0
    //   320: getfield 168	org/eclipse/pde/api/tools/internal/search/UseMetadata:apipatterns	[Ljava/lang/String;
    //   323: iload 7
    //   325: aaload
    //   326: invokeinterface 183 3 0
    //   331: iinc 7 1
    //   334: iload 7
    //   336: aload_0
    //   337: getfield 168	org/eclipse/pde/api/tools/internal/search/UseMetadata:apipatterns	[Ljava/lang/String;
    //   340: arraylength
    //   341: if_icmplt -46 -> 295
    //   344: aload_3
    //   345: ldc 7
    //   347: invokeinterface 181 2 0
    //   352: astore 5
    //   354: aload 4
    //   356: aload 5
    //   358: invokeinterface 184 2 0
    //   363: pop
    //   364: aload_0
    //   365: getfield 170	org/eclipse/pde/api/tools/internal/search/UseMetadata:intpatterns	[Ljava/lang/String;
    //   368: ifnull +58 -> 426
    //   371: iconst_0
    //   372: istore 7
    //   374: goto +42 -> 416
    //   377: aload_3
    //   378: ldc 9
    //   380: invokeinterface 181 2 0
    //   385: astore 6
    //   387: aload 5
    //   389: aload 6
    //   391: invokeinterface 184 2 0
    //   396: pop
    //   397: aload 6
    //   399: ldc 14
    //   401: aload_0
    //   402: getfield 170	org/eclipse/pde/api/tools/internal/search/UseMetadata:intpatterns	[Ljava/lang/String;
    //   405: iload 7
    //   407: aaload
    //   408: invokeinterface 183 3 0
    //   413: iinc 7 1
    //   416: iload 7
    //   418: aload_0
    //   419: getfield 170	org/eclipse/pde/api/tools/internal/search/UseMetadata:intpatterns	[Ljava/lang/String;
    //   422: arraylength
    //   423: if_icmplt -46 -> 377
    //   426: aload_3
    //   427: ldc 3
    //   429: invokeinterface 181 2 0
    //   434: astore 5
    //   436: aload 4
    //   438: aload 5
    //   440: invokeinterface 184 2 0
    //   445: pop
    //   446: aload_0
    //   447: getfield 169	org/eclipse/pde/api/tools/internal/search/UseMetadata:archivepatterns	[Ljava/lang/String;
    //   450: ifnull +58 -> 508
    //   453: iconst_0
    //   454: istore 7
    //   456: goto +42 -> 498
    //   459: aload_3
    //   460: ldc 9
    //   462: invokeinterface 181 2 0
    //   467: astore 6
    //   469: aload 5
    //   471: aload 6
    //   473: invokeinterface 184 2 0
    //   478: pop
    //   479: aload 6
    //   481: ldc 14
    //   483: aload_0
    //   484: getfield 169	org/eclipse/pde/api/tools/internal/search/UseMetadata:archivepatterns	[Ljava/lang/String;
    //   487: iload 7
    //   489: aaload
    //   490: invokeinterface 183 3 0
    //   495: iinc 7 1
    //   498: iload 7
    //   500: aload_0
    //   501: getfield 169	org/eclipse/pde/api/tools/internal/search/UseMetadata:archivepatterns	[Ljava/lang/String;
    //   504: arraylength
    //   505: if_icmplt -46 -> 459
    //   508: new 106	java/io/BufferedWriter
    //   511: dup
    //   512: new 109	java/io/OutputStreamWriter
    //   515: dup
    //   516: new 107	java/io/FileOutputStream
    //   519: dup
    //   520: aload_1
    //   521: invokespecial 175	java/io/FileOutputStream:<init>	(Ljava/io/File;)V
    //   524: ldc 1
    //   526: invokespecial 176	java/io/OutputStreamWriter:<init>	(Ljava/io/OutputStream;Ljava/lang/String;)V
    //   529: invokespecial 173	java/io/BufferedWriter:<init>	(Ljava/io/Writer;)V
    //   532: astore_2
    //   533: aload_2
    //   534: aload_3
    //   535: invokestatic 180	org/eclipse/pde/api/tools/internal/util/Util:serializeDocument	(Lorg/w3c/dom/Document;)Ljava/lang/String;
    //   538: invokevirtual 174	java/io/BufferedWriter:write	(Ljava/lang/String;)V
    //   541: aload_2
    //   542: invokevirtual 172	java/io/BufferedWriter:flush	()V
    //   545: goto +16 -> 561
    //   548: astore 8
    //   550: aload_2
    //   551: ifnull +7 -> 558
    //   554: aload_2
    //   555: invokevirtual 171	java/io/BufferedWriter:close	()V
    //   558: aload 8
    //   560: athrow
    //   561: aload_2
    //   562: ifnull +7 -> 569
    //   565: aload_2
    //   566: invokevirtual 171	java/io/BufferedWriter:close	()V
    //   569: return
    // Line number table:
    //   Java source line #135	-> byte code offset #0
    //   Java source line #137	-> byte code offset #2
    //   Java source line #138	-> byte code offset #6
    //   Java source line #139	-> byte code offset #16
    //   Java source line #140	-> byte code offset #25
    //   Java source line #141	-> byte code offset #35
    //   Java source line #142	-> byte code offset #45
    //   Java source line #143	-> byte code offset #61
    //   Java source line #144	-> byte code offset #71
    //   Java source line #145	-> byte code offset #81
    //   Java source line #146	-> byte code offset #94
    //   Java source line #147	-> byte code offset #104
    //   Java source line #148	-> byte code offset #114
    //   Java source line #149	-> byte code offset #127
    //   Java source line #150	-> byte code offset #137
    //   Java source line #151	-> byte code offset #147
    //   Java source line #152	-> byte code offset #160
    //   Java source line #153	-> byte code offset #170
    //   Java source line #154	-> byte code offset #180
    //   Java source line #155	-> byte code offset #193
    //   Java source line #156	-> byte code offset #203
    //   Java source line #157	-> byte code offset #213
    //   Java source line #158	-> byte code offset #226
    //   Java source line #159	-> byte code offset #236
    //   Java source line #160	-> byte code offset #246
    //   Java source line #161	-> byte code offset #259
    //   Java source line #162	-> byte code offset #269
    //   Java source line #163	-> byte code offset #279
    //   Java source line #164	-> byte code offset #282
    //   Java source line #165	-> byte code offset #289
    //   Java source line #166	-> byte code offset #295
    //   Java source line #167	-> byte code offset #305
    //   Java source line #168	-> byte code offset #315
    //   Java source line #165	-> byte code offset #331
    //   Java source line #171	-> byte code offset #344
    //   Java source line #172	-> byte code offset #354
    //   Java source line #173	-> byte code offset #364
    //   Java source line #174	-> byte code offset #371
    //   Java source line #175	-> byte code offset #377
    //   Java source line #176	-> byte code offset #387
    //   Java source line #177	-> byte code offset #397
    //   Java source line #174	-> byte code offset #413
    //   Java source line #180	-> byte code offset #426
    //   Java source line #181	-> byte code offset #436
    //   Java source line #182	-> byte code offset #446
    //   Java source line #183	-> byte code offset #453
    //   Java source line #184	-> byte code offset #459
    //   Java source line #185	-> byte code offset #469
    //   Java source line #186	-> byte code offset #479
    //   Java source line #183	-> byte code offset #495
    //   Java source line #189	-> byte code offset #508
    //   Java source line #190	-> byte code offset #533
    //   Java source line #191	-> byte code offset #541
    //   Java source line #193	-> byte code offset #548
    //   Java source line #194	-> byte code offset #550
    //   Java source line #195	-> byte code offset #554
    //   Java source line #197	-> byte code offset #558
    //   Java source line #194	-> byte code offset #561
    //   Java source line #195	-> byte code offset #565
    //   Java source line #198	-> byte code offset #569
    // Local variable table:
    //   start	length	slot	name	signature
    //   0	570	0	this	UseMetadata
    //   0	570	1	file	java.io.File
    //   1	565	2	writer	java.io.BufferedWriter
    //   5	530	3	doc	org.w3c.dom.Document
    //   14	423	4	root	org.w3c.dom.Element
    //   33	437	5	child	org.w3c.dom.Element
    //   280	200	6	sub	org.w3c.dom.Element
    //   290	45	7	i	int
    //   372	45	7	i	int
    //   454	45	7	i	int
    //   548	11	8	localObject	Object
    // Exception table:
    //   from	to	target	type
    //   2	548	548	finally
  }
  
  public boolean includesAPI()
  {
    return (searchflags & 0x1) != 0;
  }
  
  public boolean includesInternal()
  {
    return (searchflags & 0x2) != 0;
  }
  
  public boolean includesIllegalUse()
  {
    return (searchflags & 0x4) != 0;
  }
  
  public void setRunAtDate(String date)
  {
    runatdate = date;
  }
  
  public String getRunAtDate()
  {
    return runatdate;
  }
  
  public String getDescription()
  {
    return description;
  }
  
  public void setDescription(String description)
  {
    this.description = description;
  }
  
  public void setSearchflags(int flags)
  {
    searchflags = flags;
  }
  
  public String[] getApiPatterns()
  {
    return apipatterns;
  }
  
  public void setApiPatterns(String[] patterns)
  {
    apipatterns = patterns;
  }
  
  public String[] getInternalPatterns()
  {
    return intpatterns;
  }
  
  public void setInternalPatterns(String[] patterns)
  {
    intpatterns = patterns;
  }
  
  public String[] getArchivePatterns()
  {
    return archivepatterns;
  }
  
  public void setArchivePatterns(String[] patterns)
  {
    archivepatterns = patterns;
  }
  
  public String getBaselineLocation()
  {
    return baselinelocation;
  }
  
  public void setBaselineLocation(String location)
  {
    baselinelocation = location;
  }
  
  public String getReportLocation()
  {
    return reportlocation;
  }
  
  public void setReportLocation(String location)
  {
    reportlocation = location;
  }
  
  public void setReferencePattern(String pattern)
  {
    refpattern = pattern;
  }
  
  public String getReferencePattern()
  {
    return refpattern;
  }
  
  public void setScopePattern(String pattern)
  {
    scopepattern = pattern;
  }
  
  public String getScopePattern()
  {
    return scopepattern;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.search.UseMetadata
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.search;

import java.util.Comparator;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.pde.api.tools.internal.provisional.descriptors.IComponentDescriptor;
import org.eclipse.pde.api.tools.internal.provisional.descriptors.IFieldDescriptor;
import org.eclipse.pde.api.tools.internal.provisional.descriptors.IMethodDescriptor;
import org.eclipse.pde.api.tools.internal.provisional.descriptors.IReferenceTypeDescriptor;
import org.eclipse.pde.api.tools.internal.util.Signatures;

class UseReportConverter$1
  implements Comparator
{
  public int compare(Object o1, Object o2)
  {
    if (((o1 instanceof String)) && ((o2 instanceof String))) {
      return ((String)o1).compareTo((String)o2);
    }
    if (((o1 instanceof UseReportConverter.Type)) && ((o2 instanceof UseReportConverter.Type))) {
      return compare(desc, desc);
    }
    if (((o1 instanceof IReferenceTypeDescriptor)) && ((o2 instanceof IReferenceTypeDescriptor))) {
      return ((IReferenceTypeDescriptor)o1).getQualifiedName().compareTo(((IReferenceTypeDescriptor)o2).getQualifiedName());
    }
    if (((o1 instanceof IMethodDescriptor)) && ((o2 instanceof IMethodDescriptor))) {
      try
      {
        return Signatures.getQualifiedMethodSignature((IMethodDescriptor)o1).compareTo(Signatures.getQualifiedMethodSignature((IMethodDescriptor)o2));
      }
      catch (CoreException localCoreException1)
      {
        return -1;
      }
    }
    if (((o1 instanceof IFieldDescriptor)) && ((o2 instanceof IFieldDescriptor))) {
      try
      {
        return Signatures.getQualifiedFieldSignature((IFieldDescriptor)o1).compareTo(Signatures.getQualifiedFieldSignature((IFieldDescriptor)o2));
      }
      catch (CoreException localCoreException2)
      {
        return -1;
      }
    }
    if (((o1 instanceof IComponentDescriptor)) && ((o2 instanceof IComponentDescriptor))) {
      return ((IComponentDescriptor)o1).getId().compareTo(((IComponentDescriptor)o2).getId());
    }
    return -1;
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.search.UseReportConverter.1
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.search;

import java.util.Comparator;

class UseReportConverter$2
  implements Comparator
{
  final UseReportConverter this$0;
  
  UseReportConverter$2(UseReportConverter paramUseReportConverter)
  {
    this$0 = paramUseReportConverter;
  }
  
  public int compare(Object o1, Object o2)
  {
    return name.compareTo(name);
  }
}

/* Location:
 * Qualified Name:     org.eclipse.pde.api.tools.internal.search.UseReportConverter.2
 * Java Class Version: 1.2 (46.0)
 * JD-Core Version:    0.7.1
 */
package org.eclipse.pde.api.tools.internal.search;

final class UseReportConverter$CountGroup
{
  int total_api_field_count = 0;
  int total_private_field_count = 0;
  int total_permissable_field_count = 0;
  int total_fragment_permissible_field_count = 0;
  int total_illegal_field_count = 0;
  int total_api_method_count = 0;
  int total_private_method_count = 0;
  int total_permissable_method_count = 0;
  int total_fragment_permissible_method_count = 0;
  int total_illegal_method_count = 0;
  int total_api_type_count = 0;
  int total_private_type_count = 0;
  int total_permissable_type_count = 0;
  int total_fragment_permissible_type_count = 0;
  int total_illegal_type_count = 0;
  
  public int getTotalRefCount()
  {
    return total_api_field_count + 
      total_api_method_count + 
      total_api_type_count + 
      total_private_field_count + 
      total_private_method_count + 
      total_private_type_count + 
      total_permissable_field_count + 
      total_permissable_method_count + 
      total_permissable_type_count + 
      total_fragment_permissible_field_count + 
      total_fragment_permissible_method_count + 
      total_fragment_permissible_type_count + 
      total_illegal_field_count + 
      total_illegal_method_count + 
      total_illegal_type_count;
  }
 
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