Package com.android.dx.command.dexer
Class Main.Arguments
java.lang.Object
com.android.dx.command.dexer.Main.Arguments
- Enclosing class:
Main
Command-line argument parser and access.
-
Field Summary
Modifier and TypeFieldDescriptionboolean
whether default and static interface methods can be invoked at any API level.Options for class file transformationfinal DxContext
boolean
whether we are constructing a core libraryboolean
whether to run in debug modeOptions for dex file outputFilename containing list of methods to NOT optimizeint
max width for columnar outputboolean
whether it is okay for there to be no.class
files to processString[]
non-null
afterparse(java.lang.String[])
; file name argumentsboolean
whether 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 dumpboolean
whether to merge with the output dex file if it exists.boolean
whether the binary output is to be a.jar
file instead of a plain.dex
boolean
when writing a.jar
file, whether to still keep the.class
filesboolean
whether to keep local variable informationOptional file containing a list of class files containing classes to be forced in main dexint
null-ok;
particular method to dumpboolean
Produce the smallest possible main dex.int
what API level to targetboolean
generation of multiple dex is allowedint
number of threads to run withboolean
whether to do SSA/register optimizationFilename containg list of methods to optimizenull-ok;
output file name for binary fileint
how much source position info to preserveboolean
Whether to print statistics to stdout at end of compile cycleboolean
whether strict file-name-vs-class-name checking should be doneboolean
whether to emit high-level verbose human-oriented outputboolean
whether to emit verbose human-oriented output in the dump fileboolean
whether to emit warning messages -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Copies relevant arguments over into CfOptions and DexOptions instances.void
parseFlags
(String[] flags) Parses only command-line flags and updates the state of theArguments
object 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.class
files to process -
jarOutput
public boolean jarOutputwhether the binary output is to be a.jar
file instead of a plain.dex
-
keepClassesInJar
public boolean keepClassesInJarwhen writing a.jar
file, whether to still keep the.class
files -
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-null
afterparse(java.lang.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 theArguments
object accordingly.- Parameters:
flags
-non-null;
the flags
-
makeOptionsObjects
public void makeOptionsObjects()Copies relevant arguments over into CfOptions and DexOptions instances.
-