Class ClassPathOpener

java.lang.Object
com.android.dx.cf.direct.ClassPathOpener

public class ClassPathOpener extends Object
Opens all the class files found in a class path element. Path elements can point to class files, {jar,zip,apk} files, or directories containing class files.
  • Field Details

  • Constructor Details

    • ClassPathOpener

      public ClassPathOpener(String pathname, boolean sort, ClassPathOpener.Consumer consumer)
      Constructs an instance.
      Parameters:
      pathname - non-null; path element to process
      sort - if true, sort such that classes appear before their inner classes and "package-info" occurs before all other classes in that package.
      consumer - non-null; callback interface
    • ClassPathOpener

      public ClassPathOpener(String pathname, boolean sort, ClassPathOpener.FileNameFilter filter, ClassPathOpener.Consumer consumer)
      Constructs an instance.
      Parameters:
      pathname - non-null; path element to process
      sort - if true, sort such that classes appear before their inner classes and "package-info" occurs before all other classes in that package.
      consumer - non-null; callback interface
  • Method Details

    • process

      public boolean process()
      Processes a path element.
      Returns:
      the OR of all return values from Consumer.processFileBytes().