public static enum AndroidClassLoadingStrategy.Injecting.Dispatcher.ForLegacyVm extends Enum<AndroidClassLoadingStrategy.Injecting.Dispatcher.ForLegacyVm> implements AndroidClassLoadingStrategy.Injecting.Dispatcher
DexFile.loadDex(String, String, int).AndroidClassLoadingStrategy.Injecting.Dispatcher.ForAndroidPVm, AndroidClassLoadingStrategy.Injecting.Dispatcher.ForLegacyVm| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
loadClass(dalvik.system.DexFile dexFile,
ClassLoader classLoader,
TypeDescription typeDescription)
Loads a class.
|
dalvik.system.DexFile |
loadDex(File privateDirectory,
File jar,
ClassLoader classLoader,
RandomString randomString)
Loads a dex file.
|
static AndroidClassLoadingStrategy.Injecting.Dispatcher.ForLegacyVm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AndroidClassLoadingStrategy.Injecting.Dispatcher.ForLegacyVm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AndroidClassLoadingStrategy.Injecting.Dispatcher.ForLegacyVm INSTANCE
public static AndroidClassLoadingStrategy.Injecting.Dispatcher.ForLegacyVm[] values()
for (AndroidClassLoadingStrategy.Injecting.Dispatcher.ForLegacyVm c : AndroidClassLoadingStrategy.Injecting.Dispatcher.ForLegacyVm.values()) System.out.println(c);
public static AndroidClassLoadingStrategy.Injecting.Dispatcher.ForLegacyVm valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic dalvik.system.DexFile loadDex(File privateDirectory, File jar, ClassLoader classLoader, RandomString randomString) throws IOException
loadDex in interface AndroidClassLoadingStrategy.Injecting.DispatcherprivateDirectory - The private directory to use if required.jar - The jar to load.classLoader - The class loader to inject into.randomString - The random string to use.DexFile or null if no such file is created.IOException - If an I/O exception is thrown.public Class<?> loadClass(dalvik.system.DexFile dexFile, ClassLoader classLoader, TypeDescription typeDescription)
loadClass in interface AndroidClassLoadingStrategy.Injecting.DispatcherdexFile - The dex file to process if any was created.classLoader - The class loader to load the class from.typeDescription - The type to load.Copyright © 2014–2021. All rights reserved.