Class DexOptions
java.lang.Object
com.android.dx.dex.DexOptions
Container for options used to control details of dex file generation.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanDoes final processing of 64-bit alignment into output finisher to gets output asDalvInsnListwith 64-bit registers aligned at best.static final booleanEnable alignment support of 64-bit registers on Dalvik even registers.booleanEnable user override for default and static interface method invocation.final PrintStreamoutput stream for reporting warningsbooleanforce generation of jumbo opcodesintminimum SDK version targeted -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapiIsSupported(int apiLevel) Checks whether an API feature is supported.getMagic()Gets the dex file magic number corresponding to this instance.
-
Field Details
-
ALIGN_64BIT_REGS_SUPPORT
public static final boolean ALIGN_64BIT_REGS_SUPPORTEnable alignment support of 64-bit registers on Dalvik even registers. This is a temporary configuration flag allowing to quickly go back on the default behavior to face up to problem.- See Also:
-
ALIGN_64BIT_REGS_IN_OUTPUT_FINISHER
public boolean ALIGN_64BIT_REGS_IN_OUTPUT_FINISHERDoes final processing of 64-bit alignment into output finisher to gets output asDalvInsnListwith 64-bit registers aligned at best. Disabled the final processing is required for tools such as Dasm to avoid modifying user inputs. -
minSdkVersion
public int minSdkVersionminimum SDK version targeted -
forceJumbo
public boolean forceJumboforce generation of jumbo opcodes -
allowAllInterfaceMethodInvokes
public boolean allowAllInterfaceMethodInvokesEnable user override for default and static interface method invocation. -
err
output stream for reporting warnings
-
-
Constructor Details
-
DexOptions
public DexOptions() -
DexOptions
-
-
Method Details
-
getMagic
Gets the dex file magic number corresponding to this instance.- Returns:
- string representing the dex file magic number
-
apiIsSupported
public boolean apiIsSupported(int apiLevel) Checks whether an API feature is supported.- Parameters:
apiLevel- the API level to test- Returns:
- returns true if the current API level is at least sdkVersion
-