class jdk.jpackage.main.CommandLine
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.jpackage.main.CommandLine
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/main/CommandLine;
public static java.lang.String[] parse(java.lang.String[]);
descriptor: ([Ljava/lang/String;)[Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokestatic jdk.jpackage.main.CommandLine.appendParsedCommandArgs:(Ljava/util/List;Ljava/util/List;)V
2: aload 1
aload 1
invokeinterface java.util.List.size:()I
anewarray java.lang.String
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 args [Ljava/lang/String;
1 3 1 newArgs Ljava/util/List<Ljava/lang/String;>;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
args
private static void appendParsedCommandArgs(java.util.List<java.lang.String>, java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;Ljava/util/List;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 10
StackMap locals: java.util.List java.util.List top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 2: aload 2
invokevirtual java.lang.String.length:()I
iconst_1
if_icmple 9
aload 2
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 64
if_icmpne 9
3: aload 2
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 2
4: aload 2
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 64
if_icmpne 7
5: aload 0
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: goto 10
7: StackMap locals: java.util.List java.util.List java.lang.String java.util.Iterator
StackMap stack:
aload 2
aload 0
invokestatic jdk.jpackage.main.CommandLine.loadCmdFile:(Ljava/lang/String;Ljava/util/List;)V
8: goto 10
9: StackMap locals:
StackMap stack:
aload 0
aload 2
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 2 10: StackMap locals: java.util.List java.util.List top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
11: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 newArgs Ljava/util/List<Ljava/lang/String;>;
0 12 1 args Ljava/util/List<Ljava/lang/String;>;
2 10 2 arg Ljava/lang/String;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/List<Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
newArgs
args
private static void loadCmdFile(java.lang.String, java.util.List<java.lang.String>);
descriptor: (Ljava/lang/String;Ljava/util/List;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Path.of:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokestatic java.nio.file.Files.isReadable:(Ljava/nio/file/Path;)Z
ifne 2
1: new java.io.FileNotFoundException
dup
aload 0
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aconst_null
astore 2
aconst_null
astore 3
3: aload 0
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
4: invokestatic java.nio.charset.Charset.defaultCharset:()Ljava/nio/charset/Charset;
5: invokestatic java.nio.file.Files.newBufferedReader:(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/io/BufferedReader;
astore 4
start local 4 6: new jdk.jpackage.main.CommandLine$Tokenizer
dup
aload 4
invokespecial jdk.jpackage.main.CommandLine$Tokenizer.<init>:(Ljava/io/Reader;)V
astore 5
start local 5 7: goto 9
start local 6 8: StackMap locals: java.lang.String java.util.List java.lang.Throwable java.lang.Throwable java.io.Reader jdk.jpackage.main.CommandLine$Tokenizer java.lang.String
StackMap stack:
aload 1
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 9: StackMap locals:
StackMap stack:
aload 5
invokevirtual jdk.jpackage.main.CommandLine$Tokenizer.nextToken:()Ljava/lang/String;
dup
astore 6
start local 6 10: ifnonnull 8
end local 6 end local 5 11: aload 4
ifnull 17
aload 4
invokevirtual java.io.Reader.close:()V
goto 17
StackMap locals: java.lang.String java.util.List java.lang.Throwable java.lang.Throwable java.io.Reader
StackMap stack: java.lang.Throwable
12: astore 2
aload 4
ifnull 13
aload 4
invokevirtual java.io.Reader.close:()V
end local 4 StackMap locals:
StackMap stack:
13: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
14: astore 3
aload 2
ifnonnull 15
aload 3
astore 2
goto 16
StackMap locals:
StackMap stack:
15: aload 2
aload 3
if_acmpeq 16
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
16: aload 2
athrow
17: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 name Ljava/lang/String;
0 18 1 args Ljava/util/List<Ljava/lang/String;>;
6 13 4 r Ljava/io/Reader;
7 11 5 t Ljdk/jpackage/main/CommandLine$Tokenizer;
8 9 6 s Ljava/lang/String;
10 11 6 s Ljava/lang/String;
Exception table:
from to target type
6 11 12 any
3 14 14 any
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
name
args
}
SourceFile: "CommandLine.java"
NestMembers:
jdk.jpackage.main.CommandLine$Tokenizer
InnerClasses:
public Tokenizer = jdk.jpackage.main.CommandLine$Tokenizer of jdk.jpackage.main.CommandLine