public class ClassPath
extends java.lang.Object
| Constructor and Description |
|---|
ClassPath(DexFile... classPath)
Creates a new ClassPath instance that can load classes from the given dex files
|
ClassPath(java.lang.Iterable<DexFile> classPath,
boolean checkPackagePrivateAccess)
Creates a new ClassPath instance that can load classes from the given dex files
|
ClassPath(java.lang.Iterable<DexFile> classPath,
int api)
Creates a new ClassPath instance that can load classes from the given dex files
|
| Modifier and Type | Method and Description |
|---|---|
static ClassPath |
fromClassPath(java.lang.Iterable<java.lang.String> classPathDirs,
java.lang.Iterable<java.lang.String> classPath,
DexFile dexFile,
int api,
boolean experimental) |
static ClassPath |
fromClassPath(java.lang.Iterable<java.lang.String> classPathDirs,
java.lang.Iterable<java.lang.String> classPath,
DexFile dexFile,
int api,
boolean checkPackagePrivateAccess,
boolean experimental) |
TypeProto |
getClass(java.lang.CharSequence type) |
ClassDef |
getClassDef(java.lang.String type) |
TypeProto |
getUnknownClass() |
boolean |
shouldCheckPackagePrivateAccess() |
public ClassPath(DexFile... classPath) throws java.io.IOException
classPath - An array of DexFile objects. When loading a class, these dex files will be searched in orderjava.io.IOExceptionpublic ClassPath(@Nonnull
java.lang.Iterable<DexFile> classPath,
int api)
classPath - An iterable of DexFile objects. When loading a class, these dex files will be searched in orderapi - API levelpublic ClassPath(@Nonnull
java.lang.Iterable<DexFile> classPath,
boolean checkPackagePrivateAccess)
classPath - An iterable of DexFile objects. When loading a class, these dex files will be searched in ordercheckPackagePrivateAccess - Whether checkPackagePrivateAccess is needed, enabled for ONLY early API 17 by default@Nonnull public TypeProto getClass(java.lang.CharSequence type)
@Nonnull public ClassDef getClassDef(java.lang.String type)
@Nonnull public TypeProto getUnknownClass()
public boolean shouldCheckPackagePrivateAccess()
@Nonnull public static ClassPath fromClassPath(java.lang.Iterable<java.lang.String> classPathDirs, java.lang.Iterable<java.lang.String> classPath, DexFile dexFile, int api, boolean experimental)