public class ClassPathResolver
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ClassPathResolver.ResolveException
An error that occurred while resolving the classpath
|
| Constructor and Description |
|---|
ClassPathResolver(java.util.List<java.lang.String> bootClassPathDirs,
java.util.List<java.lang.String> bootClassPathEntries,
java.util.List<java.lang.String> extraClassPathEntries,
MultiDexContainer.DexEntry<?> dexEntry)
Constructs a new ClassPathResolver using a specified list of bootclasspath entries
|
ClassPathResolver(java.util.List<java.lang.String> bootClassPathDirs,
java.util.List<java.lang.String> extraClassPathEntries,
MultiDexContainer.DexEntry<?> dexEntry)
Constructs a new ClassPathResolver using a default list of bootclasspath entries
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ClassProvider> |
getResolvedClassProviders() |
public ClassPathResolver(@Nonnull
java.util.List<java.lang.String> bootClassPathDirs,
@Nullable
java.util.List<java.lang.String> bootClassPathEntries,
@Nonnull
java.util.List<java.lang.String> extraClassPathEntries,
@Nonnull
MultiDexContainer.DexEntry<?> dexEntry)
throws java.io.IOException
bootClassPathDirs - A list of directories to search for boot classpath entries. Can be empty if all boot
classpath entries are specified as local pathsbootClassPathEntries - A list of boot classpath entries to load. These can either be local paths, or
device paths (e.g. "/system/framework/framework.jar"). The entry will be interpreted
first as a local path. If not found as a local path, it will be interpreted as a
partial or absolute device path, and will be searched for in bootClassPathDirsextraClassPathEntries - A list of additional classpath entries to load. Can be empty. All entries must be
local paths. Device paths are not supported.dexEntry - The dex entry containing the dex file that the classpath will be used to analyzejava.io.IOException - If any IOException occursClassPathResolver.ResolveException - If any classpath entries cannot be loaded for some reason
If null, a default bootclasspath is used,
depending on the the file type of dexFile and the api level. If empty, no boot
classpath entries will be loadedpublic ClassPathResolver(@Nonnull
java.util.List<java.lang.String> bootClassPathDirs,
@Nonnull
java.util.List<java.lang.String> extraClassPathEntries,
@Nonnull
MultiDexContainer.DexEntry<?> dexEntry)
throws java.io.IOException
bootClassPathDirs - A list of directories to search for boot classpath entriesextraClassPathEntries - A list of additional classpath entries to load. Can be empty. All entries must be
local paths. Device paths are not supported.dexEntry - The dex entry containing the dex file that the classpath will be used to analyzejava.io.IOException - If any IOException occursClassPathResolver.ResolveException - If any classpath entries cannot be loaded for some reason
If null, a default bootclasspath is used,
depending on the the file type of dexFile and the api level. If empty, no boot
classpath entries will be loaded@Nonnull public java.util.List<ClassProvider> getResolvedClassProviders()