public class io.vertx.core.cli.impl.DefaultParser
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.cli.impl.DefaultParser
super_class: java.lang.Object
{
protected java.lang.String token;
descriptor: Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
protected io.vertx.core.cli.Option current;
descriptor: Lio/vertx/core/cli/Option;
flags: (0x0004) ACC_PROTECTED
protected java.util.List<io.vertx.core.cli.Option> expectedOpts;
descriptor: Ljava/util/List;
flags: (0x0004) ACC_PROTECTED
Signature: Ljava/util/List<Lio/vertx/core/cli/Option;>;
private io.vertx.core.cli.impl.DefaultCommandLine commandLine;
descriptor: Lio/vertx/core/cli/impl/DefaultCommandLine;
flags: (0x0002) ACC_PRIVATE
private boolean skipParsing;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private io.vertx.core.cli.CLI cli;
descriptor: Lio/vertx/core/cli/CLI;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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 Lio/vertx/core/cli/impl/DefaultParser;
static java.lang.String stripLeadingHyphens(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
ldc "--"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
3: aload 0
iconst_2
aload 0
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
aload 0
ldc "-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
5: aload 0
iconst_1
aload 0
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
areturn
6: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 str Ljava/lang/String;
MethodParameters:
Name Flags
str
static java.lang.String stripLeadingAndTrailingQuotes(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
istore 1
start local 1 1: iload 1
iconst_1
if_icmple 3
aload 0
ldc "\""
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 3
aload 0
ldc "\""
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 3
aload 0
iconst_1
iload 1
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
bipush 34
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpne 3
2: aload 0
iconst_1
iload 1
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 0
3: StackMap locals: int
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 str Ljava/lang/String;
1 4 1 length I
MethodParameters:
Name Flags
str
public io.vertx.core.cli.CommandLine parse(io.vertx.core.cli.CLI, java.util.List<java.lang.String>);
descriptor: (Lio/vertx/core/cli/CLI;Ljava/util/List;)Lio/vertx/core/cli/CommandLine;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_1
invokevirtual io.vertx.core.cli.impl.DefaultParser.parse:(Lio/vertx/core/cli/CLI;Ljava/util/List;Z)Lio/vertx/core/cli/CommandLine;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 1 1 cli Lio/vertx/core/cli/CLI;
0 1 2 cla Ljava/util/List<Ljava/lang/String;>;
Exceptions:
throws io.vertx.core.cli.CLIException
Signature: (Lio/vertx/core/cli/CLI;Ljava/util/List<Ljava/lang/String;>;)Lio/vertx/core/cli/CommandLine;
MethodParameters:
Name Flags
cli
cla
public io.vertx.core.cli.CommandLine parse(io.vertx.core.cli.CLI, java.util.List<java.lang.String>, boolean);
descriptor: (Lio/vertx/core/cli/CLI;Ljava/util/List;Z)Lio/vertx/core/cli/CommandLine;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokestatic io.vertx.core.cli.CommandLine.create:(Lio/vertx/core/cli/CLI;)Lio/vertx/core/cli/CommandLine;
checkcast io.vertx.core.cli.impl.DefaultCommandLine
putfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
1: aload 0
aconst_null
putfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
2: aload 0
iconst_0
putfield io.vertx.core.cli.impl.DefaultParser.skipParsing:Z
3: aload 0
aload 1
putfield io.vertx.core.cli.impl.DefaultParser.cli:Lio/vertx/core/cli/CLI;
4: iconst_0
istore 4
start local 4 5: aload 1
invokeinterface io.vertx.core.cli.CLI.getArguments:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 12
StackMap locals: io.vertx.core.cli.impl.DefaultParser io.vertx.core.cli.CLI java.util.List int int top java.util.Iterator
StackMap stack:
6: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.core.cli.Argument
astore 5
start local 5 7: aload 5
invokevirtual io.vertx.core.cli.Argument.getIndex:()I
iconst_m1
if_icmpne 11
8: aload 5
iload 4
invokevirtual io.vertx.core.cli.Argument.setIndex:(I)Lio/vertx/core/cli/Argument;
pop
9: iinc 4 1
10: goto 12
11: StackMap locals: io.vertx.core.cli.impl.DefaultParser io.vertx.core.cli.CLI java.util.List int int io.vertx.core.cli.Argument java.util.Iterator
StackMap stack:
aload 5
invokevirtual io.vertx.core.cli.Argument.getIndex:()I
iconst_1
iadd
istore 4
end local 5 12: StackMap locals: io.vertx.core.cli.impl.DefaultParser io.vertx.core.cli.CLI java.util.List int int top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
13: aload 1
invokeinterface io.vertx.core.cli.CLI.getArguments:()Ljava/util/List;
invokedynamic compare()Ljava/util/Comparator;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)I
io/vertx/core/cli/impl/DefaultParser.lambda$0(Lio/vertx/core/cli/Argument;Lio/vertx/core/cli/Argument;)I (6)
(Lio/vertx/core/cli/Argument;Lio/vertx/core/cli/Argument;)I
invokeinterface java.util.List.sort:(Ljava/util/Comparator;)V
14: aload 1
invokeinterface io.vertx.core.cli.CLI.getOptions:()Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic accept()Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
io/vertx/core/cli/Option.ensureValidity()V (5)
(Lio/vertx/core/cli/Option;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
15: aload 1
invokeinterface io.vertx.core.cli.CLI.getArguments:()Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic accept()Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
io/vertx/core/cli/Argument.ensureValidity()V (5)
(Lio/vertx/core/cli/Argument;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
16: aload 0
aload 0
invokevirtual io.vertx.core.cli.impl.DefaultParser.getRequiredOptions:()Ljava/util/List;
putfield io.vertx.core.cli.impl.DefaultParser.expectedOpts:Ljava/util/List;
17: aload 2
ifnull 19
18: aload 2
aload 0
invokedynamic accept(Lio/vertx/core/cli/impl/DefaultParser;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
io/vertx/core/cli/impl/DefaultParser.visit(Ljava/lang/String;)V (7)
(Ljava/lang/String;)V
invokeinterface java.util.List.forEach:(Ljava/util/function/Consumer;)V
19: StackMap locals: io.vertx.core.cli.impl.DefaultParser io.vertx.core.cli.CLI java.util.List int int
StackMap stack:
aload 0
invokevirtual io.vertx.core.cli.impl.DefaultParser.checkRequiredValues:()V
20: aload 0
invokevirtual io.vertx.core.cli.impl.DefaultParser.checkRequiredOptions:()V
21: aload 0
invokevirtual io.vertx.core.cli.impl.DefaultParser.validate:()V
22: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
iconst_1
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.setValidity:(Z)V
23: goto 28
StackMap locals:
StackMap stack: io.vertx.core.cli.CLIException
24: astore 6
start local 6 25: iload 3
ifeq 27
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.isAskingForHelp:()Z
ifne 27
26: aload 6
athrow
27: StackMap locals: io.vertx.core.cli.impl.DefaultParser io.vertx.core.cli.CLI java.util.List int int top io.vertx.core.cli.CLIException
StackMap stack:
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
iconst_0
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.setValidity:(Z)V
end local 6 28: StackMap locals: io.vertx.core.cli.impl.DefaultParser io.vertx.core.cli.CLI java.util.List int int
StackMap stack:
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 29 1 cli Lio/vertx/core/cli/CLI;
0 29 2 cla Ljava/util/List<Ljava/lang/String;>;
0 29 3 validate Z
5 29 4 current I
7 12 5 argument Lio/vertx/core/cli/Argument;
25 28 6 e Lio/vertx/core/cli/CLIException;
Exception table:
from to target type
19 23 24 Class io.vertx.core.cli.CLIException
Exceptions:
throws io.vertx.core.cli.CLIException
Signature: (Lio/vertx/core/cli/CLI;Ljava/util/List<Ljava/lang/String;>;Z)Lio/vertx/core/cli/CommandLine;
MethodParameters:
Name Flags
cli
cla
validate
protected void validate();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=7, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 2: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.cli:Lio/vertx/core/cli/CLI;
invokeinterface io.vertx.core.cli.CLI.getArguments:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 10
StackMap locals: io.vertx.core.cli.impl.DefaultParser int java.util.List top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.core.cli.Argument
astore 3
start local 3 4: aload 2
aload 3
invokevirtual io.vertx.core.cli.Argument.getIndex:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifeq 6
5: new io.vertx.core.cli.CLIException
dup
new java.lang.StringBuilder
dup
ldc "Only one argument can use the index "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual io.vertx.core.cli.Argument.getIndex:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.vertx.core.cli.CLIException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: io.vertx.core.cli.impl.DefaultParser int java.util.List io.vertx.core.cli.Argument java.util.Iterator
StackMap stack:
aload 2
aload 3
invokevirtual io.vertx.core.cli.Argument.getIndex:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: iload 1
ifeq 9
8: new io.vertx.core.cli.CLIException
dup
ldc "Only the last argument can be multi-valued"
invokespecial io.vertx.core.cli.CLIException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 3
invokevirtual io.vertx.core.cli.Argument.isMultiValued:()Z
istore 1
end local 3 10: StackMap locals: io.vertx.core.cli.impl.DefaultParser int java.util.List top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
11: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.cli:Lio/vertx/core/cli/CLI;
invokeinterface io.vertx.core.cli.CLI.getArguments:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
start local 3 12: aconst_null
astore 4
start local 4 13: aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 15
14: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.core.cli.Argument
astore 4
15: StackMap locals: io.vertx.core.cli.impl.DefaultParser int java.util.List java.util.Iterator io.vertx.core.cli.Argument
StackMap stack:
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.allArguments:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 24
StackMap locals: io.vertx.core.cli.impl.DefaultParser int java.util.List java.util.Iterator io.vertx.core.cli.Argument top java.util.Iterator
StackMap stack:
16: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 17: aload 4
ifnull 24
18: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 4
aload 5
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.setRawValue:(Lio/vertx/core/cli/Argument;Ljava/lang/String;)Lio/vertx/core/cli/impl/DefaultCommandLine;
pop
19: aload 4
invokevirtual io.vertx.core.cli.Argument.isMultiValued:()Z
ifne 24
20: aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 23
21: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.core.cli.Argument
astore 4
22: goto 24
23: StackMap locals: io.vertx.core.cli.impl.DefaultParser int java.util.List java.util.Iterator io.vertx.core.cli.Argument java.lang.String java.util.Iterator
StackMap stack:
aconst_null
astore 4
end local 5 24: StackMap locals: io.vertx.core.cli.impl.DefaultParser int java.util.List java.util.Iterator io.vertx.core.cli.Argument top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 16
25: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.cli:Lio/vertx/core/cli/CLI;
invokeinterface io.vertx.core.cli.CLI.getArguments:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 29
StackMap locals:
StackMap stack:
26: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.core.cli.Argument
astore 5
start local 5 27: aload 5
invokevirtual io.vertx.core.cli.Argument.isRequired:()Z
ifeq 29
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 5
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.isArgumentAssigned:(Lio/vertx/core/cli/Argument;)Z
ifne 29
28: new io.vertx.core.cli.MissingValueException
dup
aload 5
invokespecial io.vertx.core.cli.MissingValueException.<init>:(Lio/vertx/core/cli/Argument;)V
athrow
end local 5 29: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 26
30: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lio/vertx/core/cli/impl/DefaultParser;
1 31 1 multiValue Z
2 31 2 usedIndexes Ljava/util/List<Ljava/lang/Integer;>;
4 10 3 argument Lio/vertx/core/cli/Argument;
12 31 3 iterator Ljava/util/Iterator<Lio/vertx/core/cli/Argument;>;
13 31 4 current Lio/vertx/core/cli/Argument;
17 24 5 v Ljava/lang/String;
27 29 5 arg Lio/vertx/core/cli/Argument;
Exceptions:
throws io.vertx.core.cli.CLIException
private java.util.List<io.vertx.core.cli.Option> getRequiredOptions();
descriptor: ()Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.cli:Lio/vertx/core/cli/CLI;
invokeinterface io.vertx.core.cli.CLI.getOptions:()Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
io/vertx/core/cli/Option.isRequired()Z (5)
(Lio/vertx/core/cli/Option;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/cli/impl/DefaultParser;
Signature: ()Ljava/util/List<Lio/vertx/core/cli/Option;>;
private void checkRequiredOptions();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.expectedOpts:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 2
1: new io.vertx.core.cli.MissingOptionException
dup
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.expectedOpts:Ljava/util/List;
invokespecial io.vertx.core.cli.MissingOptionException.<init>:(Ljava/util/Collection;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/cli/impl/DefaultParser;
Exceptions:
throws io.vertx.core.cli.MissingOptionException
private void checkRequiredValues();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
ifnull 3
1: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
invokevirtual io.vertx.core.cli.Option.acceptValue:()Z
ifeq 3
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.isOptionAssigned:(Lio/vertx/core/cli/Option;)Z
ifne 3
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
invokevirtual io.vertx.core.cli.Option.isFlag:()Z
ifne 3
2: new io.vertx.core.cli.MissingValueException
dup
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
invokespecial io.vertx.core.cli.MissingValueException.<init>:(Lio/vertx/core/cli/Option;)V
athrow
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/cli/impl/DefaultParser;
Exceptions:
throws io.vertx.core.cli.MissingValueException
private void visit(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield io.vertx.core.cli.impl.DefaultParser.token:Ljava/lang/String;
1: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.skipParsing:Z
ifeq 4
2: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.addArgumentValue:(Ljava/lang/String;)Lio/vertx/core/cli/CommandLine;
pop
3: goto 17
StackMap locals:
StackMap stack:
4: aload 1
ldc "--"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
5: aload 0
iconst_1
putfield io.vertx.core.cli.impl.DefaultParser.skipParsing:Z
6: goto 17
StackMap locals:
StackMap stack:
7: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
ifnull 10
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
invokevirtual io.vertx.core.cli.Option.acceptValue:()Z
ifeq 10
aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.isValue:(Ljava/lang/String;)Z
ifeq 10
8: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
aload 1
invokestatic io.vertx.core.cli.impl.DefaultParser.stripLeadingAndTrailingQuotes:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.addRawValue:(Lio/vertx/core/cli/Option;Ljava/lang/String;)Lio/vertx/core/cli/impl/DefaultCommandLine;
pop
9: goto 17
StackMap locals:
StackMap stack:
10: aload 1
ldc "--"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 13
11: aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleLongOption:(Ljava/lang/String;)V
12: goto 17
StackMap locals:
StackMap stack:
13: aload 1
ldc "-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 16
ldc "-"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 16
14: aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleShortAndLongOption:(Ljava/lang/String;)V
15: goto 17
16: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleArgument:(Ljava/lang/String;)V
17: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
ifnull 19
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.acceptMoreValues:(Lio/vertx/core/cli/Option;)Z
ifne 19
18: aload 0
aconst_null
putfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
19: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 20 1 token Ljava/lang/String;
Exceptions:
throws io.vertx.core.cli.CLIException
MethodParameters:
Name Flags
token
private boolean isValue(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.isOption:(Ljava/lang/String;)Z
ifeq 1
aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.isNegativeNumber:(Ljava/lang/String;)Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 2 1 token Ljava/lang/String;
MethodParameters:
Name Flags
token
private boolean isNegativeNumber(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.lang.Double.parseDouble:(Ljava/lang/String;)D
pop2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack: java.lang.NumberFormatException
pop
3: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 4 1 token Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
token
private boolean isOption(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.isLongOption:(Ljava/lang/String;)Z
ifne 1
aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.isShortOption:(Ljava/lang/String;)Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 2 1 token Ljava/lang/String;
MethodParameters:
Name Flags
token
private boolean isShortOption(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 1
aload 1
invokevirtual java.lang.String.length:()I
iconst_2
if_icmplt 1
aload 0
aload 1
iconst_1
iconst_2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual io.vertx.core.cli.impl.DefaultParser.hasOptionWithShortName:(Ljava/lang/String;)Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 2 1 token Ljava/lang/String;
MethodParameters:
Name Flags
token
private boolean isLongOption(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
ldc "-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 1
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
if_icmpne 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ldc "="
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 2
start local 2 3: iload 2
iconst_m1
if_icmpne 4
aload 1
goto 5
StackMap locals: int
StackMap stack:
4: aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
5: astore 3
start local 3 6: aload 0
aload 3
invokevirtual io.vertx.core.cli.impl.DefaultParser.getMatchingOptions:(Ljava/lang/String;)Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 8
7: iconst_1
ireturn
8: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.getLongPrefix:(Ljava/lang/String;)Ljava/lang/String;
ifnull 10
aload 1
ldc "--"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 10
9: iconst_1
ireturn
10: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 11 1 token Ljava/lang/String;
3 11 2 pos I
6 11 3 t Ljava/lang/String;
MethodParameters:
Name Flags
token
private void handleArgument(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.addArgumentValue:(Ljava/lang/String;)Lio/vertx/core/cli/CommandLine;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 2 1 token Ljava/lang/String;
MethodParameters:
Name Flags
token
private void handleLongOption(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
bipush 61
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpne 3
1: aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleLongOptionWithoutEqual:(Ljava/lang/String;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleLongOptionWithEqual:(Ljava/lang/String;)V
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 5 1 token Ljava/lang/String;
Exceptions:
throws io.vertx.core.cli.CLIException
MethodParameters:
Name Flags
token
private void handleLongOptionWithoutEqual(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.getMatchingOptions:(Ljava/lang/String;)Ljava/util/List;
astore 2
start local 2 1: aload 2
invokeinterface java.util.List.isEmpty:()Z
ifeq 4
2: aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleArgument:(Ljava/lang/String;)V
3: goto 8
StackMap locals: java.util.List
StackMap stack:
4: aload 2
invokeinterface java.util.List.size:()I
iconst_1
if_icmple 6
5: new io.vertx.core.cli.AmbiguousOptionException
dup
aload 1
aload 2
invokespecial io.vertx.core.cli.AmbiguousOptionException.<init>:(Ljava/lang/String;Ljava/util/List;)V
athrow
6: StackMap locals:
StackMap stack:
aload 2
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast io.vertx.core.cli.Option
astore 3
start local 3 7: aload 0
aload 3
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleOption:(Lio/vertx/core/cli/Option;)V
end local 3 8: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 9 1 token Ljava/lang/String;
1 9 2 matchingOpts Ljava/util/List<Lio/vertx/core/cli/Option;>;
7 8 3 option Lio/vertx/core/cli/Option;
Exceptions:
throws io.vertx.core.cli.CLIException
MethodParameters:
Name Flags
token
private void handleLongOptionWithEqual(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 1
bipush 61
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 1: aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
start local 3 2: aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
start local 4 3: aload 0
aload 4
invokevirtual io.vertx.core.cli.impl.DefaultParser.getMatchingOptions:(Ljava/lang/String;)Ljava/util/List;
astore 5
start local 5 4: aload 5
invokeinterface java.util.List.isEmpty:()Z
ifeq 7
5: aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleArgument:(Ljava/lang/String;)V
6: goto 16
StackMap locals: io.vertx.core.cli.impl.DefaultParser java.lang.String int java.lang.String java.lang.String java.util.List
StackMap stack:
7: aload 5
invokeinterface java.util.List.size:()I
iconst_1
if_icmple 9
8: new io.vertx.core.cli.AmbiguousOptionException
dup
aload 4
aload 5
invokespecial io.vertx.core.cli.AmbiguousOptionException.<init>:(Ljava/lang/String;Ljava/util/List;)V
athrow
9: StackMap locals:
StackMap stack:
aload 5
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast io.vertx.core.cli.Option
astore 6
start local 6 10: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 6
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.acceptMoreValues:(Lio/vertx/core/cli/Option;)Z
ifeq 15
11: aload 0
aload 6
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleOption:(Lio/vertx/core/cli/Option;)V
12: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 6
aload 3
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.addRawValue:(Lio/vertx/core/cli/Option;Ljava/lang/String;)Lio/vertx/core/cli/impl/DefaultCommandLine;
pop
13: aload 0
aconst_null
putfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
14: goto 16
15: StackMap locals: io.vertx.core.cli.Option
StackMap stack:
new io.vertx.core.cli.InvalidValueException
dup
aload 6
aload 3
invokespecial io.vertx.core.cli.InvalidValueException.<init>:(Lio/vertx/core/cli/Option;Ljava/lang/String;)V
athrow
end local 6 16: StackMap locals:
StackMap stack:
return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 17 1 token Ljava/lang/String;
1 17 2 pos I
2 17 3 value Ljava/lang/String;
3 17 4 opt Ljava/lang/String;
4 17 5 matchingOpts Ljava/util/List<Lio/vertx/core/cli/Option;>;
10 16 6 option Lio/vertx/core/cli/Option;
Exceptions:
throws io.vertx.core.cli.CLIException
MethodParameters:
Name Flags
token
private void handleShortAndLongOption(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokestatic io.vertx.core.cli.impl.DefaultParser.stripLeadingHyphens:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: aload 2
bipush 61
invokevirtual java.lang.String.indexOf:(I)I
istore 3
start local 3 2: aload 2
invokevirtual java.lang.String.length:()I
iconst_1
if_icmpne 8
3: aload 0
aload 2
invokevirtual io.vertx.core.cli.impl.DefaultParser.hasOptionWithShortName:(Ljava/lang/String;)Z
ifeq 6
4: aload 0
aload 0
aload 2
invokevirtual io.vertx.core.cli.impl.DefaultParser.getOption:(Ljava/lang/String;)Lio/vertx/core/cli/Option;
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleOption:(Lio/vertx/core/cli/Option;)V
5: goto 51
6: StackMap locals: java.lang.String int
StackMap stack:
aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleArgument:(Ljava/lang/String;)V
7: goto 51
StackMap locals:
StackMap stack:
8: iload 3
iconst_m1
if_icmpne 32
9: aload 0
aload 2
invokevirtual io.vertx.core.cli.impl.DefaultParser.hasOptionWithShortName:(Ljava/lang/String;)Z
ifeq 12
10: aload 0
aload 0
aload 2
invokevirtual io.vertx.core.cli.impl.DefaultParser.getOption:(Ljava/lang/String;)Lio/vertx/core/cli/Option;
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleOption:(Lio/vertx/core/cli/Option;)V
11: goto 51
StackMap locals:
StackMap stack:
12: aload 0
aload 2
invokevirtual io.vertx.core.cli.impl.DefaultParser.getMatchingOptions:(Ljava/lang/String;)Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 15
13: aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleLongOptionWithoutEqual:(Ljava/lang/String;)V
14: goto 51
15: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual io.vertx.core.cli.impl.DefaultParser.getLongPrefix:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 16: aload 4
ifnull 23
17: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 0
aload 4
invokevirtual io.vertx.core.cli.impl.DefaultParser.getOption:(Ljava/lang/String;)Lio/vertx/core/cli/Option;
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.acceptMoreValues:(Lio/vertx/core/cli/Option;)Z
ifeq 22
18: aload 0
aload 0
aload 4
invokevirtual io.vertx.core.cli.impl.DefaultParser.getOption:(Ljava/lang/String;)Lio/vertx/core/cli/Option;
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleOption:(Lio/vertx/core/cli/Option;)V
19: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 0
aload 4
invokevirtual io.vertx.core.cli.impl.DefaultParser.getOption:(Ljava/lang/String;)Lio/vertx/core/cli/Option;
aload 2
aload 4
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.addRawValue:(Lio/vertx/core/cli/Option;Ljava/lang/String;)Lio/vertx/core/cli/impl/DefaultCommandLine;
pop
20: aload 0
aconst_null
putfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
21: goto 51
22: StackMap locals: java.lang.String
StackMap stack:
new io.vertx.core.cli.InvalidValueException
dup
aload 0
aload 4
invokevirtual io.vertx.core.cli.impl.DefaultParser.getOption:(Ljava/lang/String;)Lio/vertx/core/cli/Option;
aload 2
aload 4
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokespecial io.vertx.core.cli.InvalidValueException.<init>:(Lio/vertx/core/cli/Option;Ljava/lang/String;)V
athrow
23: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual io.vertx.core.cli.impl.DefaultParser.isAValidShortOption:(Ljava/lang/String;)Z
ifeq 30
24: aload 2
iconst_0
iconst_1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 5
start local 5 25: aload 0
aload 5
invokevirtual io.vertx.core.cli.impl.DefaultParser.getOption:(Ljava/lang/String;)Lio/vertx/core/cli/Option;
astore 6
start local 6 26: aload 0
aload 6
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleOption:(Lio/vertx/core/cli/Option;)V
27: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
aload 2
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.addRawValue:(Lio/vertx/core/cli/Option;Ljava/lang/String;)Lio/vertx/core/cli/impl/DefaultCommandLine;
pop
28: aload 0
aconst_null
putfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
end local 6 end local 5 29: goto 51
30: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleConcatenatedOptions:(Ljava/lang/String;)V
end local 4 31: goto 51
32: StackMap locals:
StackMap stack:
aload 2
iconst_0
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
start local 4 33: aload 2
iload 3
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 5
start local 5 34: aload 4
invokevirtual java.lang.String.length:()I
iconst_1
if_icmpne 45
35: aload 0
aload 4
invokevirtual io.vertx.core.cli.impl.DefaultParser.getOption:(Ljava/lang/String;)Lio/vertx/core/cli/Option;
astore 6
start local 6 36: aload 6
ifnull 43
37: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 6
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.acceptMoreValues:(Lio/vertx/core/cli/Option;)Z
ifeq 42
38: aload 0
aload 6
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleOption:(Lio/vertx/core/cli/Option;)V
39: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 6
aload 5
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.addRawValue:(Lio/vertx/core/cli/Option;Ljava/lang/String;)Lio/vertx/core/cli/impl/DefaultCommandLine;
pop
40: aload 0
aconst_null
putfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
41: goto 51
42: StackMap locals: java.lang.String java.lang.String io.vertx.core.cli.Option
StackMap stack:
new io.vertx.core.cli.InvalidValueException
dup
aload 6
aload 5
invokespecial io.vertx.core.cli.InvalidValueException.<init>:(Lio/vertx/core/cli/Option;Ljava/lang/String;)V
athrow
43: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleArgument:(Ljava/lang/String;)V
end local 6 44: goto 51
StackMap locals:
StackMap stack:
45: aload 0
aload 4
invokevirtual io.vertx.core.cli.impl.DefaultParser.isAValidShortOption:(Ljava/lang/String;)Z
ifeq 50
aload 0
aload 4
invokevirtual io.vertx.core.cli.impl.DefaultParser.hasOptionWithLongName:(Ljava/lang/String;)Z
ifne 50
46: aload 0
aload 0
aload 4
iconst_0
iconst_1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual io.vertx.core.cli.impl.DefaultParser.getOption:(Ljava/lang/String;)Lio/vertx/core/cli/Option;
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleOption:(Lio/vertx/core/cli/Option;)V
47: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
new java.lang.StringBuilder
dup
aload 4
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.addRawValue:(Lio/vertx/core/cli/Option;Ljava/lang/String;)Lio/vertx/core/cli/impl/DefaultCommandLine;
pop
48: aload 0
aconst_null
putfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
49: goto 51
50: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleLongOptionWithEqual:(Ljava/lang/String;)V
end local 5 end local 4 51: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 52 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 52 1 token Ljava/lang/String;
1 52 2 t Ljava/lang/String;
2 52 3 pos I
16 31 4 opt Ljava/lang/String;
25 29 5 strip Ljava/lang/String;
26 29 6 option Lio/vertx/core/cli/Option;
33 51 4 opt Ljava/lang/String;
34 51 5 value Ljava/lang/String;
36 44 6 option Lio/vertx/core/cli/Option;
Exceptions:
throws io.vertx.core.cli.CLIException
MethodParameters:
Name Flags
token
private java.lang.String getLongPrefix(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokestatic io.vertx.core.cli.impl.DefaultParser.stripLeadingHyphens:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: aconst_null
astore 4
start local 4 2: aload 2
invokevirtual java.lang.String.length:()I
iconst_2
isub
istore 3
start local 3 3: goto 9
4: StackMap locals: java.lang.String int java.lang.String
StackMap stack:
aload 2
iconst_0
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 5
start local 5 5: aload 0
aload 5
invokevirtual io.vertx.core.cli.impl.DefaultParser.hasOptionWithLongName:(Ljava/lang/String;)Z
ifeq 8
6: aload 5
astore 4
7: goto 10
end local 5 8: StackMap locals:
StackMap stack:
iinc 3 -1
StackMap locals:
StackMap stack:
9: iload 3
iconst_1
if_icmpgt 4
10: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 11 1 token Ljava/lang/String;
1 11 2 t Ljava/lang/String;
3 11 3 i I
2 11 4 opt Ljava/lang/String;
5 8 5 prefix Ljava/lang/String;
MethodParameters:
Name Flags
token
private boolean hasOptionWithLongName(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.cli:Lio/vertx/core/cli/CLI;
invokeinterface io.vertx.core.cli.CLI.getOptions:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: io.vertx.core.cli.impl.DefaultParser java.lang.String top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.core.cli.Option
astore 2
start local 2 2: aload 1
aload 2
invokevirtual io.vertx.core.cli.Option.getLongName:()Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
3: iconst_1
ireturn
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 6 1 name Ljava/lang/String;
2 4 2 option Lio/vertx/core/cli/Option;
MethodParameters:
Name Flags
name
private boolean hasOptionWithShortName(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.cli:Lio/vertx/core/cli/CLI;
invokeinterface io.vertx.core.cli.CLI.getOptions:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: io.vertx.core.cli.impl.DefaultParser java.lang.String top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.core.cli.Option
astore 2
start local 2 2: aload 1
aload 2
invokevirtual io.vertx.core.cli.Option.getShortName:()Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
3: iconst_1
ireturn
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 6 1 name Ljava/lang/String;
2 4 2 option Lio/vertx/core/cli/Option;
MethodParameters:
Name Flags
name
private void handleOption(io.vertx.core.cli.Option);
descriptor: (Lio/vertx/core/cli/Option;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.vertx.core.cli.impl.DefaultParser.checkRequiredValues:()V
1: aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.updateRequiredOptions:(Lio/vertx/core/cli/Option;)V
2: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.setSeenInCommandLine:(Lio/vertx/core/cli/Option;)Lio/vertx/core/cli/impl/DefaultCommandLine;
pop
3: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.acceptMoreValues:(Lio/vertx/core/cli/Option;)Z
ifeq 6
4: aload 0
aload 1
putfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
5: goto 7
6: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 8 1 option Lio/vertx/core/cli/Option;
Exceptions:
throws io.vertx.core.cli.CLIException
MethodParameters:
Name Flags
option
private void updateRequiredOptions(io.vertx.core.cli.Option);
descriptor: (Lio/vertx/core/cli/Option;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual io.vertx.core.cli.Option.isRequired:()Z
ifeq 2
1: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.expectedOpts:Ljava/util/List;
aload 1
invokeinterface java.util.List.remove:(Ljava/lang/Object;)Z
pop
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 3 1 option Lio/vertx/core/cli/Option;
MethodParameters:
Name Flags
option
public io.vertx.core.cli.Option getOption(java.lang.String);
descriptor: (Ljava/lang/String;)Lio/vertx/core/cli/Option;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic io.vertx.core.cli.impl.DefaultParser.stripLeadingHyphens:(Ljava/lang/String;)Ljava/lang/String;
astore 1
1: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.cli:Lio/vertx/core/cli/CLI;
invokeinterface io.vertx.core.cli.CLI.getOptions:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: io.vertx.core.cli.impl.DefaultParser java.lang.String top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.core.cli.Option
astore 2
start local 2 3: aload 1
aload 2
invokevirtual io.vertx.core.cli.Option.getShortName:()Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 4
aload 1
aload 2
invokevirtual io.vertx.core.cli.Option.getLongName:()Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 5
4: StackMap locals: io.vertx.core.cli.impl.DefaultParser java.lang.String io.vertx.core.cli.Option java.util.Iterator
StackMap stack:
aload 2
areturn
end local 2 5: StackMap locals: io.vertx.core.cli.impl.DefaultParser java.lang.String top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 7 1 opt Ljava/lang/String;
3 5 2 option Lio/vertx/core/cli/Option;
MethodParameters:
Name Flags
opt
private boolean isAValidShortOption(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
iconst_0
iconst_1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 2
start local 2 1: aload 0
aload 2
invokevirtual io.vertx.core.cli.impl.DefaultParser.getOption:(Ljava/lang/String;)Lio/vertx/core/cli/Option;
astore 3
start local 3 2: aload 3
ifnull 3
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 3
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.acceptMoreValues:(Lio/vertx/core/cli/Option;)Z
ifeq 3
iconst_1
ireturn
StackMap locals: java.lang.String io.vertx.core.cli.Option
StackMap stack:
3: iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 4 1 token Ljava/lang/String;
1 4 2 opt Ljava/lang/String;
2 4 3 option Lio/vertx/core/cli/Option;
MethodParameters:
Name Flags
token
public java.util.List<io.vertx.core.cli.Option> getMatchingOptions(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokestatic io.vertx.core.cli.impl.DefaultParser.stripLeadingHyphens:(Ljava/lang/String;)Ljava/lang/String;
astore 1
1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 2: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.cli:Lio/vertx/core/cli/CLI;
invokeinterface io.vertx.core.cli.CLI.getOptions:()Ljava/util/List;
astore 3
start local 3 3: aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 7
StackMap locals: io.vertx.core.cli.impl.DefaultParser java.lang.String java.util.List java.util.List top java.util.Iterator
StackMap stack:
4: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.core.cli.Option
astore 4
start local 4 5: aload 1
aload 4
invokevirtual io.vertx.core.cli.Option.getLongName:()Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 7
6: aload 4
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
areturn
end local 4 7: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 12
StackMap locals:
StackMap stack:
9: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.core.cli.Option
astore 4
start local 4 10: aload 4
invokevirtual io.vertx.core.cli.Option.getLongName:()Ljava/lang/String;
ifnull 12
aload 4
invokevirtual io.vertx.core.cli.Option.getLongName:()Ljava/lang/String;
aload 1
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 12
11: aload 2
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 12: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
13: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 14 1 opt Ljava/lang/String;
2 14 2 matching Ljava/util/List<Lio/vertx/core/cli/Option;>;
3 14 3 options Ljava/util/List<Lio/vertx/core/cli/Option;>;
5 7 4 option Lio/vertx/core/cli/Option;
10 12 4 option Lio/vertx/core/cli/Option;
Signature: (Ljava/lang/String;)Ljava/util/List<Lio/vertx/core/cli/Option;>;
MethodParameters:
Name Flags
opt
protected void handleConcatenatedOptions(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: iconst_1
istore 2
start local 2 1: goto 11
2: StackMap locals: int
StackMap stack:
aload 1
iload 2
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.String.valueOf:(C)Ljava/lang/String;
astore 3
start local 3 3: aload 0
aload 3
invokevirtual io.vertx.core.cli.impl.DefaultParser.hasOptionWithShortName:(Ljava/lang/String;)Z
ifeq 8
4: aload 0
aload 0
aload 3
invokevirtual io.vertx.core.cli.impl.DefaultParser.getOption:(Ljava/lang/String;)Lio/vertx/core/cli/Option;
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleOption:(Lio/vertx/core/cli/Option;)V
5: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
ifnull 10
aload 1
invokevirtual java.lang.String.length:()I
iload 2
iconst_1
iadd
if_icmpeq 10
6: aload 0
getfield io.vertx.core.cli.impl.DefaultParser.commandLine:Lio/vertx/core/cli/impl/DefaultCommandLine;
aload 0
getfield io.vertx.core.cli.impl.DefaultParser.current:Lio/vertx/core/cli/Option;
aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual io.vertx.core.cli.impl.DefaultCommandLine.addRawValue:(Lio/vertx/core/cli/Option;Ljava/lang/String;)Lio/vertx/core/cli/impl/DefaultCommandLine;
pop
7: goto 12
8: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 1
invokevirtual io.vertx.core.cli.impl.DefaultParser.handleArgument:(Ljava/lang/String;)V
9: goto 12
end local 3 10: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
11: iload 2
aload 1
invokevirtual java.lang.String.length:()I
if_icmplt 2
end local 2 12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/vertx/core/cli/impl/DefaultParser;
0 13 1 token Ljava/lang/String;
1 12 2 i I
3 10 3 ch Ljava/lang/String;
Exceptions:
throws io.vertx.core.cli.CLIException
MethodParameters:
Name Flags
token
private static int lambda$0(io.vertx.core.cli.Argument, io.vertx.core.cli.Argument);
descriptor: (Lio/vertx/core/cli/Argument;Lio/vertx/core/cli/Argument;)I
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.vertx.core.cli.Argument.getIndex:()I
aload 1
invokevirtual io.vertx.core.cli.Argument.getIndex:()I
if_icmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.vertx.core.cli.Argument.getIndex:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aload 1
invokevirtual io.vertx.core.cli.Argument.getIndex:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.compareTo:(Ljava/lang/Integer;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 o1 Lio/vertx/core/cli/Argument;
0 3 1 o2 Lio/vertx/core/cli/Argument;
}
SourceFile: "DefaultParser.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles