Class Main.Arguments
java.lang.Object
com.android.dx.command.dexer.Main.Arguments
- Enclosing class:
Main
Command-line argument parser and access.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanwhether default and static interface methods can be invoked at any API level.Options for class file transformationfinal DxContextbooleanwhether we are constructing a core librarybooleanwhether to run in debug modeOptions for dex file outputFilename containing list of methods to NOT optimizeintmax width for columnar outputbooleanwhether it is okay for there to be no.classfiles to processString[]non-nullafterparse(String[]); file name argumentsbooleanwhether to force generation of const-string/jumbo for all indexes, to allow merges between dex files with many strings.null-ok;output file name for human-oriented dumpbooleanwhether to merge with the output dex file if it exists.booleanwhether the binary output is to be a.jarfile instead of a plain.dexbooleanwhen writing a.jarfile, whether to still keep the.classfilesbooleanwhether to keep local variable informationOptional file containing a list of class files containing classes to be forced in main dexintnull-ok;particular method to dumpbooleanProduce the smallest possible main dex.intwhat API level to targetbooleangeneration of multiple dex is allowedintnumber of threads to run withbooleanwhether to do SSA/register optimizationFilename containg list of methods to optimizenull-ok;output file name for binary fileinthow much source position info to preservebooleanWhether to print statistics to stdout at end of compile cyclebooleanwhether strict file-name-vs-class-name checking should be donebooleanwhether to emit high-level verbose human-oriented outputbooleanwhether to emit verbose human-oriented output in the dump filebooleanwhether to emit warning messages -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCopies relevant arguments over into CfOptions and DexOptions instances.voidparseFlags(String[] flags) Parses only command-line flags and updates the state of theArgumentsobject accordingly.
-
Field Details
-
context
-
debug
public boolean debugwhether to run in debug mode -
warnings
public boolean warningswhether to emit warning messages -
verbose
public boolean verbosewhether to emit high-level verbose human-oriented output -
verboseDump
public boolean verboseDumpwhether to emit verbose human-oriented output in the dump file -
coreLibrary
public boolean coreLibrarywhether we are constructing a core library -
methodToDump
null-ok;particular method to dump -
dumpWidth
public int dumpWidthmax width for columnar output -
outName
null-ok;output file name for binary file -
humanOutName
null-ok;output file name for human-oriented dump -
strictNameCheck
public boolean strictNameCheckwhether strict file-name-vs-class-name checking should be done -
emptyOk
public boolean emptyOkwhether it is okay for there to be no.classfiles to process -
jarOutput
public boolean jarOutputwhether the binary output is to be a.jarfile instead of a plain.dex -
keepClassesInJar
public boolean keepClassesInJarwhen writing a.jarfile, whether to still keep the.classfiles -
minSdkVersion
public int minSdkVersionwhat API level to target -
positionInfo
public int positionInfohow much source position info to preserve -
localInfo
public boolean localInfowhether to keep local variable information -
incremental
public boolean incrementalwhether to merge with the output dex file if it exists. -
forceJumbo
public boolean forceJumbowhether to force generation of const-string/jumbo for all indexes, to allow merges between dex files with many strings. -
allowAllInterfaceMethodInvokes
public boolean allowAllInterfaceMethodInvokeswhether default and static interface methods can be invoked at any API level. -
fileNames
non-nullafterparse(String[]); file name arguments -
optimize
public boolean optimizewhether to do SSA/register optimization -
optimizeListFile
Filename containg list of methods to optimize -
dontOptimizeListFile
Filename containing list of methods to NOT optimize -
statistics
public boolean statisticsWhether to print statistics to stdout at end of compile cycle -
cfOptions
Options for class file transformation -
dexOptions
Options for dex file output -
numThreads
public int numThreadsnumber of threads to run with -
multiDex
public boolean multiDexgeneration of multiple dex is allowed -
mainDexListFile
Optional file containing a list of class files containing classes to be forced in main dex -
minimalMainDex
public boolean minimalMainDexProduce the smallest possible main dex. Ignored unless multiDex is true and mainDexListFile is specified and non empty. -
maxNumberOfIdxPerDex
public int maxNumberOfIdxPerDex
-
-
Constructor Details
-
Arguments
-
Arguments
public Arguments()
-
-
Method Details
-
parseFlags
Parses only command-line flags and updates the state of theArgumentsobject accordingly.- Parameters:
flags-non-null;the flags
-
makeOptionsObjects
public void makeOptionsObjects()Copies relevant arguments over into CfOptions and DexOptions instances.
-