public class org.jf.baksmali.ListDexCommand extends org.jf.util.jcommander.Command
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jf.baksmali.ListDexCommand
super_class: org.jf.util.jcommander.Command
{
private boolean help;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
com.beust.jcommander.Parameter(names = {"-h", "-?", "--help"}, help = true, description = "Show usage information")
private java.util.List<java.lang.String> inputList;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljava/lang/String;>;
RuntimeVisibleAnnotations:
com.beust.jcommander.Parameter(description = "An apk or oat file.")
org.jf.util.jcommander.ExtendedParameter(argumentNames = {"file"})
public void <init>(java.util.List<com.beust.jcommander.JCommander>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.jf.util.jcommander.Command.<init>:(Ljava/util/List;)V
1: aload 0
invokestatic com.google.common.collect.Lists.newArrayList:()Ljava/util/ArrayList;
putfield org.jf.baksmali.ListDexCommand.inputList:Ljava/util/List;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jf/baksmali/ListDexCommand;
0 3 1 commandAncestors Ljava/util/List<Lcom/beust/jcommander/JCommander;>;
Signature: (Ljava/util/List<Lcom/beust/jcommander/JCommander;>;)V
RuntimeVisibleTypeAnnotations:
METHOD_FORMAL_PARAMETER
javax.annotation.Nonnull()
RuntimeVisibleParameterAnnotations:
0:
javax.annotation.Nonnull()
MethodParameters:
Name Flags
commandAncestors
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
getfield org.jf.baksmali.ListDexCommand.help:Z
ifne 1
aload 0
getfield org.jf.baksmali.ListDexCommand.inputList:Ljava/util/List;
ifnull 1
aload 0
getfield org.jf.baksmali.ListDexCommand.inputList:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 3
1: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jf.baksmali.ListDexCommand.usage:()V
2: return
3: StackMap locals:
StackMap stack:
aload 0
getfield org.jf.baksmali.ListDexCommand.inputList:Ljava/util/List;
invokeinterface java.util.List.size:()I
iconst_1
if_icmple 7
4: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "Too many files specified"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
5: aload 0
invokevirtual org.jf.baksmali.ListDexCommand.usage:()V
6: return
7: StackMap locals:
StackMap stack:
aload 0
getfield org.jf.baksmali.ListDexCommand.inputList:Ljava/util/List;
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 1
start local 1 8: new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
start local 2 9: aload 2
invokevirtual java.io.File.exists:()Z
ifne 12
10: getstatic java.lang.System.err:Ljava/io/PrintStream;
ldc "Could not find the file: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
11: iconst_m1
invokestatic java.lang.System.exit:(I)V
12: StackMap locals: java.lang.String java.io.File
StackMap stack:
aload 2
invokestatic org.jf.dexlib2.Opcodes.getDefault:()Lorg/jf/dexlib2/Opcodes;
invokestatic org.jf.dexlib2.DexFileFactory.loadDexContainer:(Ljava/io/File;Lorg/jf/dexlib2/Opcodes;)Lorg/jf/dexlib2/iface/MultiDexContainer;
13: astore 4
start local 4 14: aload 4
invokeinterface org.jf.dexlib2.iface.MultiDexContainer.getDexEntryNames:()Ljava/util/List;
astore 3
end local 4 start local 3 15: goto 18
end local 3 StackMap locals:
StackMap stack: java.io.IOException
16: astore 4
start local 4 17: new java.lang.RuntimeException
dup
aload 4
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 start local 3 18: StackMap locals: java.util.List
StackMap stack:
aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 21
StackMap locals: org.jf.baksmali.ListDexCommand java.lang.String java.io.File java.util.List top java.util.Iterator
StackMap stack:
19: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 20: getstatic java.lang.System.out:Ljava/io/PrintStream;
aload 4
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 4 21: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 19
22: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/jf/baksmali/ListDexCommand;
8 23 1 input Ljava/lang/String;
9 23 2 file Ljava/io/File;
15 16 3 entries Ljava/util/List<Ljava/lang/String;>;
18 23 3 entries Ljava/util/List<Ljava/lang/String;>;
14 15 4 container Lorg/jf/dexlib2/iface/MultiDexContainer<+Lorg/jf/dexlib2/dexbacked/DexBackedDexFile;>;
17 18 4 ex Ljava/io/IOException;
20 21 4 entry Ljava/lang/String;
Exception table:
from to target type
12 15 16 Class java.io.IOException
}
SourceFile: "ListDexCommand.java"
RuntimeVisibleAnnotations:
com.beust.jcommander.Parameters(commandDescription = "Lists the dex files in an apk/oat file.")
org.jf.util.jcommander.ExtendedParameters(commandName = "dex", commandAliases = {"d"})