Class Main.Arguments

java.lang.Object
com.android.dx.command.dexer.Main.Arguments
Enclosing class:
Main

public static class Main.Arguments extends Object
Command-line argument parser and access.
  • Field Details

    • context

      public final DxContext context
    • debug

      public boolean debug
      whether to run in debug mode
    • warnings

      public boolean warnings
      whether to emit warning messages
    • verbose

      public boolean verbose
      whether to emit high-level verbose human-oriented output
    • verboseDump

      public boolean verboseDump
      whether to emit verbose human-oriented output in the dump file
    • coreLibrary

      public boolean coreLibrary
      whether we are constructing a core library
    • methodToDump

      public String methodToDump
      null-ok; particular method to dump
    • dumpWidth

      public int dumpWidth
      max width for columnar output
    • outName

      public String outName
      null-ok; output file name for binary file
    • humanOutName

      public String humanOutName
      null-ok; output file name for human-oriented dump
    • strictNameCheck

      public boolean strictNameCheck
      whether strict file-name-vs-class-name checking should be done
    • emptyOk

      public boolean emptyOk
      whether it is okay for there to be no .class files to process
    • jarOutput

      public boolean jarOutput
      whether the binary output is to be a .jar file instead of a plain .dex
    • keepClassesInJar

      public boolean keepClassesInJar
      when writing a .jar file, whether to still keep the .class files
    • minSdkVersion

      public int minSdkVersion
      what API level to target
    • positionInfo

      public int positionInfo
      how much source position info to preserve
    • localInfo

      public boolean localInfo
      whether to keep local variable information
    • incremental

      public boolean incremental
      whether to merge with the output dex file if it exists.
    • forceJumbo

      public boolean forceJumbo
      whether to force generation of const-string/jumbo for all indexes, to allow merges between dex files with many strings.
    • allowAllInterfaceMethodInvokes

      public boolean allowAllInterfaceMethodInvokes
      whether default and static interface methods can be invoked at any API level.
    • fileNames

      public String[] fileNames
      non-null after parse(java.lang.String[]); file name arguments
    • optimize

      public boolean optimize
      whether to do SSA/register optimization
    • optimizeListFile

      public String optimizeListFile
      Filename containg list of methods to optimize
    • dontOptimizeListFile

      public String dontOptimizeListFile
      Filename containing list of methods to NOT optimize
    • statistics

      public boolean statistics
      Whether to print statistics to stdout at end of compile cycle
    • cfOptions

      public CfOptions cfOptions
      Options for class file transformation
    • dexOptions

      public DexOptions dexOptions
      Options for dex file output
    • numThreads

      public int numThreads
      number of threads to run with
    • multiDex

      public boolean multiDex
      generation of multiple dex is allowed
    • mainDexListFile

      public String mainDexListFile
      Optional file containing a list of class files containing classes to be forced in main dex
    • minimalMainDex

      public boolean minimalMainDex
      Produce the smallest possible main dex. Ignored unless multiDex is true and mainDexListFile is specified and non empty.
    • maxNumberOfIdxPerDex

      public int maxNumberOfIdxPerDex
  • Constructor Details

    • Arguments

      public Arguments(DxContext context)
    • Arguments

      public Arguments()
  • Method Details

    • parseFlags

      public void parseFlags(String[] flags)
      Parses only command-line flags and updates the state of the Arguments object accordingly.
      Parameters:
      flags - non-null; the flags
    • makeOptionsObjects

      public void makeOptionsObjects()
      Copies relevant arguments over into CfOptions and DexOptions instances.