Package com.android.dx.dex
Class DexOptions
java.lang.Object
com.android.dx.dex.DexOptions
Container for options used to control details of dex file generation.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
Does final processing of 64-bit alignment into output finisher to gets output asDalvInsnList
with 64-bit registers aligned at best.static final boolean
Enable alignment support of 64-bit registers on Dalvik even registers.boolean
Enable user override for default and static interface method invocation.final PrintStream
output stream for reporting warningsboolean
force generation of jumbo opcodesint
minimum SDK version targeted -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
apiIsSupported
(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 asDalvInsnList
with 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
-