Class DexOptions

java.lang.Object
com.android.dx.dex.DexOptions

public final class DexOptions extends Object
Container for options used to control details of dex file generation.
  • Field Details

    • ALIGN_64BIT_REGS_SUPPORT

      public static final boolean ALIGN_64BIT_REGS_SUPPORT
      Enable 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_FINISHER
      Does final processing of 64-bit alignment into output finisher to gets output as DalvInsnList 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 minSdkVersion
      minimum SDK version targeted
    • forceJumbo

      public boolean forceJumbo
      force generation of jumbo opcodes
    • allowAllInterfaceMethodInvokes

      public boolean allowAllInterfaceMethodInvokes
      Enable user override for default and static interface method invocation.
    • err

      public final PrintStream err
      output stream for reporting warnings
  • Constructor Details

    • DexOptions

      public DexOptions()
    • DexOptions

      public DexOptions(PrintStream stream)
  • Method Details

    • getMagic

      public String 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