public static class Main.Arguments
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
allowAllInterfaceMethodInvokes
whether default and static interface methods can be invoked at any API level.
|
CfOptions |
cfOptions
Options for class file transformation
|
DxContext |
context |
boolean |
coreLibrary
whether we are constructing a core library
|
boolean |
debug
whether to run in debug mode
|
DexOptions |
dexOptions
Options for dex file output
|
java.lang.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 |
java.lang.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.
|
java.lang.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
|
java.lang.String |
mainDexListFile
Optional file containing a list of class files containing classes to be forced in main
dex
|
int |
maxNumberOfIdxPerDex |
java.lang.String |
methodToDump
null-ok; particular method to dump |
boolean |
minimalMainDex
Produce the smallest possible main dex.
|
int |
minSdkVersion
what API level to target
|
boolean |
multiDex
generation of multiple dex is allowed
|
int |
numThreads
number of threads to run with
|
boolean |
optimize
whether to do SSA/register optimization
|
java.lang.String |
optimizeListFile
Filename containg list of methods to optimize
|
java.lang.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
|
boolean |
warnings
whether to emit warning messages
|
| Constructor and Description |
|---|
Arguments() |
Arguments(DxContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
makeOptionsObjects()
Copies relevant arguments over into CfOptions and DexOptions instances.
|
void |
parseFlags(java.lang.String[] flags)
Parses only command-line flags and updates the state of the
Arguments object
accordingly. |
public final DxContext context
public boolean debug
public boolean warnings
public boolean verbose
public boolean verboseDump
public boolean coreLibrary
public java.lang.String methodToDump
null-ok; particular method to dumppublic int dumpWidth
public java.lang.String outName
null-ok; output file name for binary filepublic java.lang.String humanOutName
null-ok; output file name for human-oriented dumppublic boolean strictNameCheck
public boolean emptyOk
.class files
to processpublic boolean jarOutput
.jar file
instead of a plain .dexpublic boolean keepClassesInJar
.jar file, whether to still
keep the .class filespublic int minSdkVersion
public int positionInfo
public boolean localInfo
public boolean incremental
public boolean forceJumbo
public boolean allowAllInterfaceMethodInvokes
public java.lang.String[] fileNames
non-null after parse(java.lang.String[]); file name argumentspublic boolean optimize
public java.lang.String optimizeListFile
public java.lang.String dontOptimizeListFile
public boolean statistics
public CfOptions cfOptions
public DexOptions dexOptions
public int numThreads
public boolean multiDex
public java.lang.String mainDexListFile
public boolean minimalMainDex
public int maxNumberOfIdxPerDex
public Arguments(DxContext context)
public Arguments()
public void parseFlags(java.lang.String[] flags)
Arguments object
accordingly.flags - non-null; the flagspublic void makeOptionsObjects()
Copyright © 2020. All Rights Reserved.