public class io.vertx.core.cli.annotations.CLIConfigurator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.cli.annotations.CLIConfigurator
super_class: java.lang.Object
{
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/annotations/CLIConfigurator;
public static io.vertx.core.cli.CLI define(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Lio/vertx/core/cli/CLI;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=11, args_size=1
start local 0 0: new io.vertx.core.cli.impl.DefaultCLI
dup
invokespecial io.vertx.core.cli.impl.DefaultCLI.<init>:()V
astore 1
start local 1 1: aload 0
ldc Lio/vertx/core/cli/annotations/Summary;
invokevirtual java.lang.Class.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.Summary
astore 2
start local 2 2: aload 0
ldc Lio/vertx/core/cli/annotations/Description;
invokevirtual java.lang.Class.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.Description
astore 3
start local 3 3: aload 0
ldc Lio/vertx/core/cli/annotations/Hidden;
invokevirtual java.lang.Class.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.Hidden
astore 4
start local 4 4: aload 0
ldc Lio/vertx/core/cli/annotations/Name;
invokevirtual java.lang.Class.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.Name
astore 5
start local 5 5: aload 5
ifnonnull 7
6: new java.lang.IllegalArgumentException
dup
ldc "The command cannot be defined, the @Name annotation is missing."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: java.lang.Class io.vertx.core.cli.CLI io.vertx.core.cli.annotations.Summary io.vertx.core.cli.annotations.Description io.vertx.core.cli.annotations.Hidden io.vertx.core.cli.annotations.Name
StackMap stack:
aload 5
invokeinterface io.vertx.core.cli.annotations.Name.value:()Ljava/lang/String;
invokevirtual java.lang.String.isEmpty:()Z
ifeq 9
8: new java.lang.IllegalArgumentException
dup
ldc "The command cannot be defined, the @Name value is empty or null."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 1
aload 5
invokeinterface io.vertx.core.cli.annotations.Name.value:()Ljava/lang/String;
invokeinterface io.vertx.core.cli.CLI.setName:(Ljava/lang/String;)Lio/vertx/core/cli/CLI;
pop
10: aload 1
aload 5
invokeinterface io.vertx.core.cli.annotations.Name.priority:()I
invokeinterface io.vertx.core.cli.CLI.setPriority:(I)Lio/vertx/core/cli/CLI;
pop
11: aload 2
ifnull 13
12: aload 1
aload 2
invokeinterface io.vertx.core.cli.annotations.Summary.value:()Ljava/lang/String;
invokeinterface io.vertx.core.cli.CLI.setSummary:(Ljava/lang/String;)Lio/vertx/core/cli/CLI;
pop
13: StackMap locals:
StackMap stack:
aload 3
ifnull 15
14: aload 1
aload 3
invokeinterface io.vertx.core.cli.annotations.Description.value:()Ljava/lang/String;
invokeinterface io.vertx.core.cli.CLI.setDescription:(Ljava/lang/String;)Lio/vertx/core/cli/CLI;
pop
15: StackMap locals:
StackMap stack:
aload 4
ifnull 17
16: aload 1
iconst_1
invokeinterface io.vertx.core.cli.CLI.setHidden:(Z)Lio/vertx/core/cli/CLI;
pop
17: StackMap locals:
StackMap stack:
aload 0
invokestatic io.vertx.core.cli.impl.ReflectionUtils.getSetterMethods:(Ljava/lang/Class;)Ljava/util/List;
astore 6
start local 6 18: aload 6
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 26
StackMap locals: java.lang.Class io.vertx.core.cli.CLI io.vertx.core.cli.annotations.Summary io.vertx.core.cli.annotations.Description io.vertx.core.cli.annotations.Hidden io.vertx.core.cli.annotations.Name java.util.List top java.util.Iterator
StackMap stack:
19: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.reflect.Method
astore 7
start local 7 20: aload 7
ldc Lio/vertx/core/cli/annotations/Option;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.Option
astore 9
start local 9 21: aload 7
ldc Lio/vertx/core/cli/annotations/Argument;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.Argument
astore 10
start local 10 22: aload 9
ifnull 24
23: aload 1
aload 7
invokestatic io.vertx.core.cli.annotations.CLIConfigurator.createOption:(Ljava/lang/reflect/Method;)Lio/vertx/core/cli/Option;
invokeinterface io.vertx.core.cli.CLI.addOption:(Lio/vertx/core/cli/Option;)Lio/vertx/core/cli/CLI;
pop
24: StackMap locals: java.lang.Class io.vertx.core.cli.CLI io.vertx.core.cli.annotations.Summary io.vertx.core.cli.annotations.Description io.vertx.core.cli.annotations.Hidden io.vertx.core.cli.annotations.Name java.util.List java.lang.reflect.Method java.util.Iterator io.vertx.core.cli.annotations.Option io.vertx.core.cli.annotations.Argument
StackMap stack:
aload 10
ifnull 26
25: aload 1
aload 7
invokestatic io.vertx.core.cli.annotations.CLIConfigurator.createArgument:(Ljava/lang/reflect/Method;)Lio/vertx/core/cli/Argument;
invokeinterface io.vertx.core.cli.CLI.addArgument:(Lio/vertx/core/cli/Argument;)Lio/vertx/core/cli/CLI;
pop
end local 10 end local 9 end local 7 26: StackMap locals: java.lang.Class io.vertx.core.cli.CLI io.vertx.core.cli.annotations.Summary io.vertx.core.cli.annotations.Description io.vertx.core.cli.annotations.Hidden io.vertx.core.cli.annotations.Name java.util.List top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 19
27: aload 1
areturn
end local 6 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 28 0 clazz Ljava/lang/Class<*>;
1 28 1 cli Lio/vertx/core/cli/CLI;
2 28 2 summary Lio/vertx/core/cli/annotations/Summary;
3 28 3 desc Lio/vertx/core/cli/annotations/Description;
4 28 4 hidden Lio/vertx/core/cli/annotations/Hidden;
5 28 5 name Lio/vertx/core/cli/annotations/Name;
18 28 6 methods Ljava/util/List<Ljava/lang/reflect/Method;>;
20 26 7 method Ljava/lang/reflect/Method;
21 26 9 option Lio/vertx/core/cli/annotations/Option;
22 26 10 argument Lio/vertx/core/cli/annotations/Argument;
Signature: (Ljava/lang/Class<*>;)Lio/vertx/core/cli/CLI;
MethodParameters:
Name Flags
clazz
private static io.vertx.core.cli.Option createOption(java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;)Lio/vertx/core/cli/Option;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=8, args_size=1
start local 0 0: new io.vertx.core.cli.TypedOption
dup
invokespecial io.vertx.core.cli.TypedOption.<init>:()V
astore 1
start local 1 1: aload 0
ldc Lio/vertx/core/cli/annotations/Option;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.Option
astore 2
start local 2 2: aload 1
aload 2
invokeinterface io.vertx.core.cli.annotations.Option.longName:()Ljava/lang/String;
invokevirtual io.vertx.core.cli.TypedOption.setLongName:(Ljava/lang/String;)Lio/vertx/core/cli/TypedOption;
3: aload 2
invokeinterface io.vertx.core.cli.annotations.Option.shortName:()Ljava/lang/String;
invokevirtual io.vertx.core.cli.TypedOption.setShortName:(Ljava/lang/String;)Lio/vertx/core/cli/TypedOption;
4: aload 2
invokeinterface io.vertx.core.cli.annotations.Option.acceptMultipleValues:()Z
invokevirtual io.vertx.core.cli.TypedOption.setMultiValued:(Z)Lio/vertx/core/cli/TypedOption;
5: aload 2
invokeinterface io.vertx.core.cli.annotations.Option.acceptValue:()Z
invokevirtual io.vertx.core.cli.TypedOption.setSingleValued:(Z)Lio/vertx/core/cli/TypedOption;
6: aload 2
invokeinterface io.vertx.core.cli.annotations.Option.argName:()Ljava/lang/String;
invokevirtual io.vertx.core.cli.TypedOption.setArgName:(Ljava/lang/String;)Lio/vertx/core/cli/TypedOption;
7: aload 2
invokeinterface io.vertx.core.cli.annotations.Option.flag:()Z
invokevirtual io.vertx.core.cli.TypedOption.setFlag:(Z)Lio/vertx/core/cli/TypedOption;
8: aload 2
invokeinterface io.vertx.core.cli.annotations.Option.help:()Z
invokevirtual io.vertx.core.cli.TypedOption.setHelp:(Z)Lio/vertx/core/cli/Option;
9: aload 2
invokeinterface io.vertx.core.cli.annotations.Option.required:()Z
invokevirtual io.vertx.core.cli.Option.setRequired:(Z)Lio/vertx/core/cli/Option;
pop
10: aload 0
ldc Lio/vertx/core/cli/annotations/Description;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.Description
astore 3
start local 3 11: aload 3
ifnull 13
12: aload 1
aload 3
invokeinterface io.vertx.core.cli.annotations.Description.value:()Ljava/lang/String;
invokevirtual io.vertx.core.cli.TypedOption.setDescription:(Ljava/lang/String;)Lio/vertx/core/cli/TypedOption;
pop
13: StackMap locals: io.vertx.core.cli.TypedOption io.vertx.core.cli.annotations.Option io.vertx.core.cli.annotations.Description
StackMap stack:
aload 0
ldc Lio/vertx/core/cli/annotations/Hidden;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.Hidden
astore 4
start local 4 14: aload 4
ifnull 16
15: aload 1
iconst_1
invokevirtual io.vertx.core.cli.TypedOption.setHidden:(Z)Lio/vertx/core/cli/TypedOption;
pop
16: StackMap locals: io.vertx.core.cli.annotations.Hidden
StackMap stack:
aload 0
invokestatic io.vertx.core.cli.impl.ReflectionUtils.isMultiple:(Ljava/lang/reflect/Method;)Z
ifeq 21
17: aload 1
18: aload 0
invokevirtual java.lang.reflect.Method.getParameters:()[Ljava/lang/reflect/Parameter;
iconst_0
aaload
invokestatic io.vertx.core.cli.impl.ReflectionUtils.getComponentType:(Ljava/lang/reflect/Parameter;)Ljava/lang/Class;
invokevirtual io.vertx.core.cli.TypedOption.setType:(Ljava/lang/Class;)Lio/vertx/core/cli/TypedOption;
19: iconst_1
invokevirtual io.vertx.core.cli.TypedOption.setMultiValued:(Z)Lio/vertx/core/cli/TypedOption;
pop
20: goto 25
21: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.reflect.Method.getParameters:()[Ljava/lang/reflect/Parameter;
iconst_0
aaload
invokevirtual java.lang.reflect.Parameter.getType:()Ljava/lang/Class;
astore 5
start local 5 22: aload 1
aload 5
invokevirtual io.vertx.core.cli.TypedOption.setType:(Ljava/lang/Class;)Lio/vertx/core/cli/TypedOption;
pop
23: aload 5
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
if_acmpeq 25
aload 5
ldc Ljava/lang/Boolean;
if_acmpeq 25
24: aload 1
iconst_1
invokevirtual io.vertx.core.cli.TypedOption.setSingleValued:(Z)Lio/vertx/core/cli/TypedOption;
pop
end local 5 25: StackMap locals:
StackMap stack:
aload 0
ldc Lio/vertx/core/cli/annotations/ConvertedBy;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.ConvertedBy
astore 5
start local 5 26: aload 5
ifnull 28
27: aload 1
aload 5
invokeinterface io.vertx.core.cli.annotations.ConvertedBy.value:()Ljava/lang/Class;
invokestatic io.vertx.core.cli.impl.ReflectionUtils.newInstance:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast io.vertx.core.cli.converters.Converter
invokevirtual io.vertx.core.cli.TypedOption.setConverter:(Lio/vertx/core/cli/converters/Converter;)Lio/vertx/core/cli/TypedOption;
pop
28: StackMap locals: io.vertx.core.cli.annotations.ConvertedBy
StackMap stack:
aload 0
ldc Lio/vertx/core/cli/annotations/ParsedAsList;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.ParsedAsList
astore 6
start local 6 29: aload 6
ifnull 31
30: aload 1
iconst_1
invokevirtual io.vertx.core.cli.TypedOption.setParsedAsList:(Z)Lio/vertx/core/cli/TypedOption;
aload 6
invokeinterface io.vertx.core.cli.annotations.ParsedAsList.separator:()Ljava/lang/String;
invokevirtual io.vertx.core.cli.TypedOption.setListSeparator:(Ljava/lang/String;)Lio/vertx/core/cli/TypedOption;
pop
31: StackMap locals: io.vertx.core.cli.annotations.ParsedAsList
StackMap stack:
aload 0
ldc Lio/vertx/core/cli/annotations/DefaultValue;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.DefaultValue
astore 7
start local 7 32: aload 7
ifnull 34
33: aload 1
aload 7
invokeinterface io.vertx.core.cli.annotations.DefaultValue.value:()Ljava/lang/String;
invokevirtual io.vertx.core.cli.TypedOption.setDefaultValue:(Ljava/lang/String;)Lio/vertx/core/cli/TypedOption;
pop
34: StackMap locals: io.vertx.core.cli.annotations.DefaultValue
StackMap stack:
aload 1
invokevirtual io.vertx.core.cli.TypedOption.ensureValidity:()V
35: aload 1
areturn
end local 7 end local 6 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 36 0 method Ljava/lang/reflect/Method;
1 36 1 opt Lio/vertx/core/cli/TypedOption;
2 36 2 option Lio/vertx/core/cli/annotations/Option;
11 36 3 description Lio/vertx/core/cli/annotations/Description;
14 36 4 hidden Lio/vertx/core/cli/annotations/Hidden;
22 25 5 type Ljava/lang/Class<*>;
26 36 5 convertedBy Lio/vertx/core/cli/annotations/ConvertedBy;
29 36 6 parsedAsList Lio/vertx/core/cli/annotations/ParsedAsList;
32 36 7 defaultValue Lio/vertx/core/cli/annotations/DefaultValue;
MethodParameters:
Name Flags
method
private static io.vertx.core.cli.Argument createArgument(java.lang.reflect.Method);
descriptor: (Ljava/lang/reflect/Method;)Lio/vertx/core/cli/Argument;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=7, args_size=1
start local 0 0: new io.vertx.core.cli.TypedArgument
dup
invokespecial io.vertx.core.cli.TypedArgument.<init>:()V
astore 1
start local 1 1: aload 0
ldc Lio/vertx/core/cli/annotations/Argument;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.Argument
astore 2
start local 2 2: aload 1
aload 2
invokeinterface io.vertx.core.cli.annotations.Argument.index:()I
invokevirtual io.vertx.core.cli.TypedArgument.setIndex:(I)Lio/vertx/core/cli/TypedArgument;
pop
3: aload 1
aload 2
invokeinterface io.vertx.core.cli.annotations.Argument.argName:()Ljava/lang/String;
invokevirtual io.vertx.core.cli.TypedArgument.setArgName:(Ljava/lang/String;)Lio/vertx/core/cli/TypedArgument;
pop
4: aload 1
aload 2
invokeinterface io.vertx.core.cli.annotations.Argument.required:()Z
invokevirtual io.vertx.core.cli.TypedArgument.setRequired:(Z)Lio/vertx/core/cli/TypedArgument;
pop
5: aload 0
ldc Lio/vertx/core/cli/annotations/Description;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.Description
astore 3
start local 3 6: aload 3
ifnull 8
7: aload 1
aload 3
invokeinterface io.vertx.core.cli.annotations.Description.value:()Ljava/lang/String;
invokevirtual io.vertx.core.cli.TypedArgument.setDescription:(Ljava/lang/String;)Lio/vertx/core/cli/TypedArgument;
pop
8: StackMap locals: io.vertx.core.cli.TypedArgument io.vertx.core.cli.annotations.Argument io.vertx.core.cli.annotations.Description
StackMap stack:
aload 0
invokestatic io.vertx.core.cli.impl.ReflectionUtils.isMultiple:(Ljava/lang/reflect/Method;)Z
ifeq 13
9: aload 1
10: aload 0
invokevirtual java.lang.reflect.Method.getParameters:()[Ljava/lang/reflect/Parameter;
iconst_0
aaload
invokestatic io.vertx.core.cli.impl.ReflectionUtils.getComponentType:(Ljava/lang/reflect/Parameter;)Ljava/lang/Class;
invokevirtual io.vertx.core.cli.TypedArgument.setType:(Ljava/lang/Class;)Lio/vertx/core/cli/TypedArgument;
11: iconst_1
invokevirtual io.vertx.core.cli.TypedArgument.setMultiValued:(Z)Lio/vertx/core/cli/TypedArgument;
pop
12: goto 15
13: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.reflect.Method.getParameters:()[Ljava/lang/reflect/Parameter;
iconst_0
aaload
invokevirtual java.lang.reflect.Parameter.getType:()Ljava/lang/Class;
astore 4
start local 4 14: aload 1
aload 4
invokevirtual io.vertx.core.cli.TypedArgument.setType:(Ljava/lang/Class;)Lio/vertx/core/cli/TypedArgument;
pop
end local 4 15: StackMap locals:
StackMap stack:
aload 0
ldc Lio/vertx/core/cli/annotations/Hidden;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.Hidden
astore 4
start local 4 16: aload 4
ifnull 18
17: aload 1
iconst_1
invokevirtual io.vertx.core.cli.TypedArgument.setHidden:(Z)Lio/vertx/core/cli/TypedArgument;
pop
18: StackMap locals: io.vertx.core.cli.annotations.Hidden
StackMap stack:
aload 0
ldc Lio/vertx/core/cli/annotations/ConvertedBy;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.ConvertedBy
astore 5
start local 5 19: aload 5
ifnull 21
20: aload 1
aload 5
invokeinterface io.vertx.core.cli.annotations.ConvertedBy.value:()Ljava/lang/Class;
invokestatic io.vertx.core.cli.impl.ReflectionUtils.newInstance:(Ljava/lang/Class;)Ljava/lang/Object;
checkcast io.vertx.core.cli.converters.Converter
invokevirtual io.vertx.core.cli.TypedArgument.setConverter:(Lio/vertx/core/cli/converters/Converter;)Lio/vertx/core/cli/TypedArgument;
pop
21: StackMap locals: io.vertx.core.cli.annotations.ConvertedBy
StackMap stack:
aload 0
ldc Lio/vertx/core/cli/annotations/DefaultValue;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.DefaultValue
astore 6
start local 6 22: aload 6
ifnull 24
23: aload 1
aload 6
invokeinterface io.vertx.core.cli.annotations.DefaultValue.value:()Ljava/lang/String;
invokevirtual io.vertx.core.cli.TypedArgument.setDefaultValue:(Ljava/lang/String;)Lio/vertx/core/cli/TypedArgument;
pop
24: StackMap locals: io.vertx.core.cli.annotations.DefaultValue
StackMap stack:
aload 1
areturn
end local 6 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 25 0 method Ljava/lang/reflect/Method;
1 25 1 arg Lio/vertx/core/cli/TypedArgument;
2 25 2 argument Lio/vertx/core/cli/annotations/Argument;
6 25 3 description Lio/vertx/core/cli/annotations/Description;
14 15 4 type Ljava/lang/Class<*>;
16 25 4 hidden Lio/vertx/core/cli/annotations/Hidden;
19 25 5 convertedBy Lio/vertx/core/cli/annotations/ConvertedBy;
22 25 6 defaultValue Lio/vertx/core/cli/annotations/DefaultValue;
MethodParameters:
Name Flags
method
private static java.lang.Object getOptionValue(java.lang.reflect.Method, java.lang.String, io.vertx.core.cli.CommandLine);
descriptor: (Ljava/lang/reflect/Method;Ljava/lang/String;Lio/vertx/core/cli/CommandLine;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface io.vertx.core.cli.CommandLine.cli:()Lio/vertx/core/cli/CLI;
aload 1
invokeinterface io.vertx.core.cli.CLI.getOption:(Ljava/lang/String;)Lio/vertx/core/cli/Option;
astore 3
start local 3 1: aload 3
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: io.vertx.core.cli.Option
StackMap stack:
aload 0
invokestatic io.vertx.core.cli.impl.ReflectionUtils.isMultiple:(Ljava/lang/reflect/Method;)Z
istore 4
start local 4 4: iload 4
ifeq 6
5: aload 0
aload 2
aload 1
invokeinterface io.vertx.core.cli.CommandLine.getOptionValues:(Ljava/lang/String;)Ljava/util/List;
invokestatic io.vertx.core.cli.annotations.CLIConfigurator.createMultiValueContainer:(Ljava/lang/reflect/Method;Ljava/util/List;)Ljava/lang/Object;
areturn
6: StackMap locals: int
StackMap stack:
aload 2
aload 1
invokeinterface io.vertx.core.cli.CommandLine.getOptionValue:(Ljava/lang/String;)Ljava/lang/Object;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 method Ljava/lang/reflect/Method;
0 7 1 name Ljava/lang/String;
0 7 2 commandLine Lio/vertx/core/cli/CommandLine;
1 7 3 option Lio/vertx/core/cli/Option;
4 7 4 multiple Z
MethodParameters:
Name Flags
method
name
commandLine
private static java.lang.Object getArgumentValue(java.lang.reflect.Method, int, io.vertx.core.cli.CommandLine);
descriptor: (Ljava/lang/reflect/Method;ILio/vertx/core/cli/CommandLine;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface io.vertx.core.cli.CommandLine.cli:()Lio/vertx/core/cli/CLI;
iload 1
invokeinterface io.vertx.core.cli.CLI.getArgument:(I)Lio/vertx/core/cli/Argument;
astore 3
start local 3 1: aload 3
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: io.vertx.core.cli.Argument
StackMap stack:
aload 0
invokestatic io.vertx.core.cli.impl.ReflectionUtils.isMultiple:(Ljava/lang/reflect/Method;)Z
istore 4
start local 4 4: iload 4
ifeq 6
5: aload 0
aload 2
aload 3
invokevirtual io.vertx.core.cli.Argument.getIndex:()I
invokeinterface io.vertx.core.cli.CommandLine.getArgumentValues:(I)Ljava/util/List;
invokestatic io.vertx.core.cli.annotations.CLIConfigurator.createMultiValueContainer:(Ljava/lang/reflect/Method;Ljava/util/List;)Ljava/lang/Object;
areturn
6: StackMap locals: int
StackMap stack:
aload 2
aload 3
invokevirtual io.vertx.core.cli.Argument.getIndex:()I
invokeinterface io.vertx.core.cli.CommandLine.getArgumentValue:(I)Ljava/lang/Object;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 method Ljava/lang/reflect/Method;
0 7 1 index I
0 7 2 commandLine Lio/vertx/core/cli/CommandLine;
1 7 3 argument Lio/vertx/core/cli/Argument;
4 7 4 multiple Z
MethodParameters:
Name Flags
method
index
commandLine
public static void inject(io.vertx.core.cli.CommandLine, java.lang.Object);
descriptor: (Lio/vertx/core/cli/CommandLine;Ljava/lang/Object;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokestatic io.vertx.core.cli.impl.ReflectionUtils.getSetterMethods:(Ljava/lang/Class;)Ljava/util/List;
astore 2
start local 2 1: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 25
StackMap locals: io.vertx.core.cli.CommandLine java.lang.Object java.util.List top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.reflect.Method
astore 3
start local 3 3: aload 3
ldc Lio/vertx/core/cli/annotations/Option;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.Option
astore 5
start local 5 4: aload 3
ldc Lio/vertx/core/cli/annotations/Argument;
invokevirtual java.lang.reflect.Method.getAnnotation:(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;
checkcast io.vertx.core.cli.annotations.Argument
astore 6
start local 6 5: aload 5
ifnull 16
6: aload 5
invokeinterface io.vertx.core.cli.annotations.Option.longName:()Ljava/lang/String;
astore 7
start local 7 7: aload 7
ifnonnull 9
8: aload 5
invokeinterface io.vertx.core.cli.annotations.Option.shortName:()Ljava/lang/String;
astore 7
9: StackMap locals: io.vertx.core.cli.CommandLine java.lang.Object java.util.List java.lang.reflect.Method java.util.Iterator io.vertx.core.cli.annotations.Option io.vertx.core.cli.annotations.Argument java.lang.String
StackMap stack:
aload 3
aload 7
aload 0
invokestatic io.vertx.core.cli.annotations.CLIConfigurator.getOptionValue:(Ljava/lang/reflect/Method;Ljava/lang/String;Lio/vertx/core/cli/CommandLine;)Ljava/lang/Object;
astore 8
start local 8 10: aload 8
ifnull 16
11: aload 3
iconst_1
invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
12: aload 3
aload 1
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 8
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 8 13: goto 16
StackMap locals:
StackMap stack: java.lang.Exception
14: astore 8
start local 8 15: new io.vertx.core.cli.CLIException
dup
new java.lang.StringBuilder
dup
ldc "Cannot inject value for option '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 8
invokespecial io.vertx.core.cli.CLIException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 8 end local 7 16: StackMap locals:
StackMap stack:
aload 6
ifnull 25
17: aload 6
invokeinterface io.vertx.core.cli.annotations.Argument.index:()I
istore 7
start local 7 18: aload 3
iload 7
aload 0
invokestatic io.vertx.core.cli.annotations.CLIConfigurator.getArgumentValue:(Ljava/lang/reflect/Method;ILio/vertx/core/cli/CommandLine;)Ljava/lang/Object;
astore 8
start local 8 19: aload 8
ifnull 25
20: aload 3
iconst_1
invokevirtual java.lang.reflect.Method.setAccessible:(Z)V
21: aload 3
aload 1
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 8
aastore
invokevirtual java.lang.reflect.Method.invoke:(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 8 22: goto 25
StackMap locals: io.vertx.core.cli.CommandLine java.lang.Object java.util.List java.lang.reflect.Method java.util.Iterator io.vertx.core.cli.annotations.Option io.vertx.core.cli.annotations.Argument int
StackMap stack: java.lang.Exception
23: astore 8
start local 8 24: new io.vertx.core.cli.CLIException
dup
new java.lang.StringBuilder
dup
ldc "Cannot inject value for argument '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 7
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 8
invokespecial io.vertx.core.cli.CLIException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 8 end local 7 end local 6 end local 5 end local 3 25: StackMap locals: io.vertx.core.cli.CommandLine java.lang.Object java.util.List top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
26: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 cli Lio/vertx/core/cli/CommandLine;
0 27 1 object Ljava/lang/Object;
1 27 2 methods Ljava/util/List<Ljava/lang/reflect/Method;>;
3 25 3 method Ljava/lang/reflect/Method;
4 25 5 option Lio/vertx/core/cli/annotations/Option;
5 25 6 argument Lio/vertx/core/cli/annotations/Argument;
7 16 7 name Ljava/lang/String;
10 13 8 injected Ljava/lang/Object;
15 16 8 e Ljava/lang/Exception;
18 25 7 index I
19 22 8 injected Ljava/lang/Object;
24 25 8 e Ljava/lang/Exception;
Exception table:
from to target type
9 13 14 Class java.lang.Exception
18 22 23 Class java.lang.Exception
Exceptions:
throws io.vertx.core.cli.CLIException
MethodParameters:
Name Flags
cli
object
private static <T> createMultiValueContainer(java.lang.reflect.Method, java.util.List<T>);
descriptor: (Ljava/lang/reflect/Method;Ljava/util/List;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.lang.reflect.Method.getParameterTypes:()[Ljava/lang/Class;
iconst_0
aaload
astore 2
start local 2 1: aload 2
invokevirtual java.lang.Class.isArray:()Z
ifeq 9
2: aload 2
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
aload 1
invokeinterface java.util.List.size:()I
invokestatic java.lang.reflect.Array.newInstance:(Ljava/lang/Class;I)Ljava/lang/Object;
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 7
5: StackMap locals: java.lang.Class java.lang.Object int
StackMap stack:
aload 3
iload 4
aload 1
iload 4
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokestatic java.lang.reflect.Array.set:(Ljava/lang/Object;ILjava/lang/Object;)V
6: iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 5
end local 4 8: aload 3
areturn
end local 3 9: StackMap locals:
StackMap stack:
ldc Ljava/util/Set;
aload 2
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 11
10: new java.util.LinkedHashSet
dup
aload 1
invokespecial java.util.LinkedHashSet.<init>:(Ljava/util/Collection;)V
areturn
11: StackMap locals:
StackMap stack:
ldc Ljava/util/List;
aload 2
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 12
ldc Ljava/util/Collection;
aload 2
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 13
12: StackMap locals:
StackMap stack:
aload 1
areturn
13: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 setter Ljava/lang/reflect/Method;
0 14 1 values Ljava/util/List<TT;>;
1 14 2 type Ljava/lang/Class<*>;
3 9 3 array Ljava/lang/Object;
4 8 4 i I
Signature: <T:Ljava/lang/Object;>(Ljava/lang/reflect/Method;Ljava/util/List<TT;>;)Ljava/lang/Object;
MethodParameters:
Name Flags
setter
values
}
SourceFile: "CLIConfigurator.java"