com.android.dx.command.dexer
Class Main.Arguments

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

public static class Main.Arguments
extends Object

Command-line argument parser and access.


Field Summary
 CfOptions cfOptions
          Options for class file transformation
 boolean coreLibrary
          whether we are constructing a core library
 boolean debug
          whether to run in debug mode
 DexOptions dexOptions
          Options for dex file output
 String dontOptimizeListFile
          Filename containing list of methods to NOT optimize
 int dumpWidth
          max width for columnar output
 boolean emptyOk
          whether it is okay for there to be no .class files to process
 String[] fileNames
          non-null after parse(java.lang.String[]); file name arguments
 boolean forceJumbo
          whether to force generation of const-string/jumbo for all indexes, to allow merges between dex files with many strings.
 String humanOutName
          null-ok; output file name for human-oriented dump
 boolean incremental
          whether to merge with the output dex file if it exists.
 boolean jarOutput
          whether the binary output is to be a .jar file instead of a plain .dex
 boolean keepClassesInJar
          when writing a .jar file, whether to still keep the .class files
 boolean localInfo
          whether to keep local variable information
 String mainDexListFile
          Optional file containing a list of class files containing classes to be forced in main dex
 String methodToDump
          null-ok; particular method to dump
 boolean minimalMainDex
          Produce the smallest possible main dex.
 boolean multiDex
          generation of multiple dex is allowed
 int numThreads
          number of threads to run with
 boolean optimize
          whether to do SSA/register optimization
 String optimizeListFile
          Filename containg list of methods to optimize
 String outName
          null-ok; output file name for binary file
 int positionInfo
          how much source position info to preserve
 boolean statistics
          Whether to print statistics to stdout at end of compile cycle
 boolean strictNameCheck
          whether strict file-name-vs-class-name checking should be done
 boolean verbose
          whether to emit high-level verbose human-oriented output
 boolean verboseDump
          whether to emit verbose human-oriented output in the dump file
 
Constructor Summary
Main.Arguments()
           
 
Method Summary
 void parse(String[] args)
          Parses the given command-line arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public boolean debug
whether to run in debug mode


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


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.


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.

Constructor Detail

Main.Arguments

public Main.Arguments()
Method Detail

parse

public void parse(String[] args)
Parses the given command-line arguments.

Parameters:
args - non-null; the arguments


Copyright © 2015. All rights reserved.