public class examples.cli.TypedCLIExamples
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: examples.cli.TypedCLIExamples
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 Lexamples/cli/TypedCLIExamples;
public void example1();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: ldc "copy"
invokestatic io.vertx.core.cli.CLI.create:(Ljava/lang/String;)Lio/vertx/core/cli/CLI;
1: ldc "A command line interface to copy files."
invokeinterface io.vertx.core.cli.CLI.setSummary:(Ljava/lang/String;)Lio/vertx/core/cli/CLI;
2: new io.vertx.core.cli.TypedOption
dup
invokespecial io.vertx.core.cli.TypedOption.<init>:()V
3: ldc Ljava/lang/Boolean;
invokevirtual io.vertx.core.cli.TypedOption.setType:(Ljava/lang/Class;)Lio/vertx/core/cli/TypedOption;
4: ldc "directory"
invokevirtual io.vertx.core.cli.TypedOption.setLongName:(Ljava/lang/String;)Lio/vertx/core/cli/TypedOption;
5: ldc "R"
invokevirtual io.vertx.core.cli.TypedOption.setShortName:(Ljava/lang/String;)Lio/vertx/core/cli/TypedOption;
6: ldc "enables directory support"
invokevirtual io.vertx.core.cli.TypedOption.setDescription:(Ljava/lang/String;)Lio/vertx/core/cli/TypedOption;
7: iconst_1
invokevirtual io.vertx.core.cli.TypedOption.setFlag:(Z)Lio/vertx/core/cli/TypedOption;
8: invokeinterface io.vertx.core.cli.CLI.addOption:(Lio/vertx/core/cli/Option;)Lio/vertx/core/cli/CLI;
9: new io.vertx.core.cli.TypedArgument
dup
invokespecial io.vertx.core.cli.TypedArgument.<init>:()V
10: ldc Ljava/io/File;
invokevirtual io.vertx.core.cli.TypedArgument.setType:(Ljava/lang/Class;)Lio/vertx/core/cli/TypedArgument;
11: iconst_0
invokevirtual io.vertx.core.cli.TypedArgument.setIndex:(I)Lio/vertx/core/cli/TypedArgument;
12: ldc "The source"
invokevirtual io.vertx.core.cli.TypedArgument.setDescription:(Ljava/lang/String;)Lio/vertx/core/cli/TypedArgument;
13: ldc "source"
invokevirtual io.vertx.core.cli.TypedArgument.setArgName:(Ljava/lang/String;)Lio/vertx/core/cli/TypedArgument;
14: invokeinterface io.vertx.core.cli.CLI.addArgument:(Lio/vertx/core/cli/Argument;)Lio/vertx/core/cli/CLI;
15: new io.vertx.core.cli.TypedArgument
dup
invokespecial io.vertx.core.cli.TypedArgument.<init>:()V
16: ldc Ljava/io/File;
invokevirtual io.vertx.core.cli.TypedArgument.setType:(Ljava/lang/Class;)Lio/vertx/core/cli/TypedArgument;
17: iconst_0
invokevirtual io.vertx.core.cli.TypedArgument.setIndex:(I)Lio/vertx/core/cli/TypedArgument;
18: ldc "The destination"
invokevirtual io.vertx.core.cli.TypedArgument.setDescription:(Ljava/lang/String;)Lio/vertx/core/cli/TypedArgument;
19: ldc "target"
invokevirtual io.vertx.core.cli.TypedArgument.setArgName:(Ljava/lang/String;)Lio/vertx/core/cli/TypedArgument;
20: invokeinterface io.vertx.core.cli.CLI.addArgument:(Lio/vertx/core/cli/Argument;)Lio/vertx/core/cli/CLI;
pop
21: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 this Lexamples/cli/TypedCLIExamples;
public void example2(io.vertx.core.cli.CLI, java.util.List<java.lang.String>);
descriptor: (Lio/vertx/core/cli/CLI;Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokeinterface io.vertx.core.cli.CLI.parse:(Ljava/util/List;)Lio/vertx/core/cli/CommandLine;
astore 3
start local 3 1: aload 3
ldc "R"
invokeinterface io.vertx.core.cli.CommandLine.getOptionValue:(Ljava/lang/String;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
pop
2: aload 3
ldc "source"
invokeinterface io.vertx.core.cli.CommandLine.getArgumentValue:(Ljava/lang/String;)Ljava/lang/Object;
checkcast java.io.File
pop
3: aload 3
ldc "target"
invokeinterface io.vertx.core.cli.CommandLine.getArgumentValue:(Ljava/lang/String;)Ljava/lang/Object;
checkcast java.io.File
pop
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lexamples/cli/TypedCLIExamples;
0 5 1 cli Lio/vertx/core/cli/CLI;
0 5 2 userCommandLineArguments Ljava/util/List<Ljava/lang/String;>;
1 5 3 commandLine Lio/vertx/core/cli/CommandLine;
Signature: (Lio/vertx/core/cli/CLI;Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
cli
userCommandLineArguments
public void example3();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: ldc "some-name"
invokestatic io.vertx.core.cli.CLI.create:(Ljava/lang/String;)Lio/vertx/core/cli/CLI;
1: new io.vertx.core.cli.TypedOption
dup
invokespecial io.vertx.core.cli.TypedOption.<init>:()V
2: ldc Lexamples/cli/TypedCLIExamples$Person;
invokevirtual io.vertx.core.cli.TypedOption.setType:(Ljava/lang/Class;)Lio/vertx/core/cli/TypedOption;
3: new examples.cli.TypedCLIExamples$PersonConverter
dup
aload 0
invokespecial examples.cli.TypedCLIExamples$PersonConverter.<init>:(Lexamples/cli/TypedCLIExamples;)V
invokevirtual io.vertx.core.cli.TypedOption.setConverter:(Lio/vertx/core/cli/converters/Converter;)Lio/vertx/core/cli/TypedOption;
4: ldc "person"
invokevirtual io.vertx.core.cli.TypedOption.setLongName:(Ljava/lang/String;)Lio/vertx/core/cli/TypedOption;
5: invokeinterface io.vertx.core.cli.CLI.addOption:(Lio/vertx/core/cli/Option;)Lio/vertx/core/cli/CLI;
pop
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lexamples/cli/TypedCLIExamples;
public void example4(java.util.List<java.lang.String>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: ldc Lexamples/cli/AnnotatedCli;
invokestatic io.vertx.core.cli.CLI.create:(Ljava/lang/Class;)Lio/vertx/core/cli/CLI;
astore 2
start local 2 1: aload 2
aload 1
invokeinterface io.vertx.core.cli.CLI.parse:(Ljava/util/List;)Lio/vertx/core/cli/CommandLine;
astore 3
start local 3 2: new examples.cli.AnnotatedCli
dup
invokespecial examples.cli.AnnotatedCli.<init>:()V
astore 4
start local 4 3: aload 3
aload 4
invokestatic io.vertx.core.cli.annotations.CLIConfigurator.inject:(Lio/vertx/core/cli/CommandLine;Ljava/lang/Object;)V
4: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lexamples/cli/TypedCLIExamples;
0 5 1 userCommandLineArguments Ljava/util/List<Ljava/lang/String;>;
1 5 2 cli Lio/vertx/core/cli/CLI;
2 5 3 commandLine Lio/vertx/core/cli/CommandLine;
3 5 4 instance Lexamples/cli/AnnotatedCli;
Signature: (Ljava/util/List<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
userCommandLineArguments
}
SourceFile: "TypedCLIExamples.java"
NestMembers:
examples.cli.TypedCLIExamples$Person examples.cli.TypedCLIExamples$PersonConverter
InnerClasses:
private Person = examples.cli.TypedCLIExamples$Person of examples.cli.TypedCLIExamples
private PersonConverter = examples.cli.TypedCLIExamples$PersonConverter of examples.cli.TypedCLIExamples
RuntimeInvisibleAnnotations:
io.vertx.docgen.Source(translate = false)