public static class AndroidClassLoadingStrategy.DexProcessor.ForSdkCompiler.Dispatcher.ForApi26LevelCompatibleVm extends Object implements AndroidClassLoadingStrategy.DexProcessor.ForSdkCompiler.Dispatcher
AndroidClassLoadingStrategy.DexProcessor.ForSdkCompiler.Dispatcher.ForApi26LevelCompatibleVm, AndroidClassLoadingStrategy.DexProcessor.ForSdkCompiler.Dispatcher.ForLegacyVm, AndroidClassLoadingStrategy.DexProcessor.ForSdkCompiler.Dispatcher.Unavailable| Modifier | Constructor and Description |
|---|---|
protected |
ForApi26LevelCompatibleVm(Method translate,
Constructor<?> dxContext)
Creates a new dispatcher.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setTargetApi(com.android.dx.dex.DexOptions dexOptions,
int targetApiLevel)
Sets the target API level if available.
|
com.android.dx.dex.file.ClassDefItem |
translate(com.android.dx.cf.direct.DirectClassFile directClassFile,
byte[] binaryRepresentation,
com.android.dx.dex.cf.CfOptions dexCompilerOptions,
com.android.dx.dex.DexOptions dexFileOptions,
com.android.dx.dex.file.DexFile dexFile)
Creates a new class file definition.
|
protected ForApi26LevelCompatibleVm(Method translate, Constructor<?> dxContext)
translate - The CfTranslator#translate(DxContext, DirectClassFile, byte[], CfOptions, DexOptions, DexFile) method.dxContext - The com.android.dx.command.dexer.DxContext#DxContext() constructor.public com.android.dx.dex.file.ClassDefItem translate(com.android.dx.cf.direct.DirectClassFile directClassFile,
byte[] binaryRepresentation,
com.android.dx.dex.cf.CfOptions dexCompilerOptions,
com.android.dx.dex.DexOptions dexFileOptions,
com.android.dx.dex.file.DexFile dexFile)
translate in interface AndroidClassLoadingStrategy.DexProcessor.ForSdkCompiler.DispatcherdirectClassFile - The direct class file to translate.binaryRepresentation - The file's binary representation.dexCompilerOptions - The dex compiler options.dexFileOptions - The dex file options.dexFile - The dex file.public void setTargetApi(com.android.dx.dex.DexOptions dexOptions,
int targetApiLevel)
setTargetApi in interface AndroidClassLoadingStrategy.DexProcessor.ForSdkCompiler.DispatcherdexOptions - The dex options to set the api version fortargetApiLevel - The target API level.Copyright © 2014–2021. All rights reserved.