Package com.android.dx.cf.direct
Class ClassPathOpener
java.lang.Object
com.android.dx.cf.direct.ClassPathOpener
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Callback interface forClassOpener
.static interface
Filter interface forClassOpener
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final ClassPathOpener.FileNameFilter
An accept all filter. -
Constructor Summary
ConstructorDescriptionClassPathOpener
(String pathname, boolean sort, ClassPathOpener.Consumer consumer) Constructs an instance.ClassPathOpener
(String pathname, boolean sort, ClassPathOpener.FileNameFilter filter, ClassPathOpener.Consumer consumer) Constructs an instance. -
Method Summary
-
Field Details
-
acceptAll
An accept all filter.
-
-
Constructor Details
-
ClassPathOpener
Constructs an instance.- Parameters:
pathname
-non-null;
path element to processsort
- 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 processsort
- 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()
.
-