public class io.vertx.core.impl.launcher.VertxCommandLauncher extends io.vertx.core.cli.UsageMessageFormatter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.impl.launcher.VertxCommandLauncher
super_class: io.vertx.core.cli.UsageMessageFormatter
{
protected static java.util.List<java.lang.String> PROCESS_ARGS;
descriptor: Ljava/util/List;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Signature: Ljava/util/List<Ljava/lang/String;>;
protected final java.util.List<io.vertx.core.spi.launcher.CommandFactoryLookup> lookups;
descriptor: Ljava/util/List;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/List<Lio/vertx/core/spi/launcher/CommandFactoryLookup;>;
protected final java.util.Map<java.lang.String, io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration> commandByName;
descriptor: Ljava/util/Map;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Lio/vertx/core/impl/launcher/VertxCommandLauncher$CommandRegistration;>;
protected java.lang.Object main;
descriptor: Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
public static java.util.List<java.lang.String> getProcessArguments();
descriptor: ()Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic io.vertx.core.impl.launcher.VertxCommandLauncher.PROCESS_ARGS:Ljava/util/List;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/List<Ljava/lang/String;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
new io.vertx.core.impl.launcher.ServiceCommandFactoryLoader
dup
invokespecial io.vertx.core.impl.launcher.ServiceCommandFactoryLoader.<init>:()V
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
invokespecial io.vertx.core.impl.launcher.VertxCommandLauncher.<init>:(Ljava/util/Collection;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
public void <init>(java.util.Collection<io.vertx.core.spi.launcher.CommandFactoryLookup>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial io.vertx.core.cli.UsageMessageFormatter.<init>:()V
1: aload 0
new java.util.ArrayList
dup
aload 1
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
putfield io.vertx.core.impl.launcher.VertxCommandLauncher.lookups:Ljava/util/List;
2: aload 0
new java.util.TreeMap
dup
invokespecial java.util.TreeMap.<init>:()V
putfield io.vertx.core.impl.launcher.VertxCommandLauncher.commandByName:Ljava/util/Map;
3: aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.load:()V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
0 5 1 lookups Ljava/util/Collection<Lio/vertx/core/spi/launcher/CommandFactoryLookup;>;
Signature: (Ljava/util/Collection<Lio/vertx/core/spi/launcher/CommandFactoryLookup;>;)V
MethodParameters:
Name Flags
lookups
protected void load();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.lookups:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 2
goto 4
StackMap locals: io.vertx.core.impl.launcher.VertxCommandLauncher top java.util.Iterator
StackMap stack:
1: aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.vertx.core.spi.launcher.CommandFactoryLookup
astore 1
start local 1 2: aload 1
invokeinterface io.vertx.core.spi.launcher.CommandFactoryLookup.lookup:()Ljava/util/Collection;
astore 3
start local 3 3: aload 3
aload 0
invokedynamic accept(Lio/vertx/core/impl/launcher/VertxCommandLauncher;)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/impl/launcher/VertxCommandLauncher.lambda$0(Lio/vertx/core/spi/launcher/CommandFactory;)V (7)
(Lio/vertx/core/spi/launcher/CommandFactory;)V
invokeinterface java.util.Collection.forEach:(Ljava/util/function/Consumer;)V
end local 3 end local 1 4: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
2 4 1 lookup Lio/vertx/core/spi/launcher/CommandFactoryLookup;
3 4 3 commands Ljava/util/Collection<Lio/vertx/core/spi/launcher/CommandFactory<*>;>;
public io.vertx.core.impl.launcher.VertxCommandLauncher register(io.vertx.core.spi.launcher.CommandFactory);
descriptor: (Lio/vertx/core/spi/launcher/CommandFactory;)Lio/vertx/core/impl/launcher/VertxCommandLauncher;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.vertx.core.spi.launcher.CommandFactory.define:()Lio/vertx/core/cli/CLI;
astore 2
start local 2 1: aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.commandByName:Ljava/util/Map;
aload 2
invokeinterface io.vertx.core.cli.CLI.getName:()Ljava/lang/String;
new io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration
dup
aload 1
aload 2
invokespecial io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration.<init>:(Lio/vertx/core/spi/launcher/CommandFactory;Lio/vertx/core/cli/CLI;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
0 3 1 factory Lio/vertx/core/spi/launcher/CommandFactory;
1 3 2 cli Lio/vertx/core/cli/CLI;
MethodParameters:
Name Flags
factory
public io.vertx.core.impl.launcher.VertxCommandLauncher register(java.lang.Class<? extends io.vertx.core.spi.launcher.Command>);
descriptor: (Ljava/lang/Class;)Lio/vertx/core/impl/launcher/VertxCommandLauncher;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: new io.vertx.core.spi.launcher.DefaultCommandFactory
dup
aload 1
invokespecial io.vertx.core.spi.launcher.DefaultCommandFactory.<init>:(Ljava/lang/Class;)V
astore 2
start local 2 1: aload 2
invokevirtual io.vertx.core.spi.launcher.DefaultCommandFactory.define:()Lio/vertx/core/cli/CLI;
astore 3
start local 3 2: aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.commandByName:Ljava/util/Map;
aload 3
invokeinterface io.vertx.core.cli.CLI.getName:()Ljava/lang/String;
new io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration
dup
aload 2
aload 3
invokespecial io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration.<init>:(Lio/vertx/core/spi/launcher/CommandFactory;Lio/vertx/core/cli/CLI;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 0
areturn
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/impl/launcher/VertxCommandLauncher;
0 4 1 clazz Ljava/lang/Class<+Lio/vertx/core/spi/launcher/Command;>;
1 4 2 factory Lio/vertx/core/spi/launcher/DefaultCommandFactory;
2 4 3 cli Lio/vertx/core/cli/CLI;
Signature: (Ljava/lang/Class<+Lio/vertx/core/spi/launcher/Command;>;)Lio/vertx/core/impl/launcher/VertxCommandLauncher;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
clazz
public io.vertx.core.impl.launcher.VertxCommandLauncher register(java.lang.Class<? extends io.vertx.core.spi.launcher.Command>, java.util.function.Supplier<? extends io.vertx.core.spi.launcher.Command>);
descriptor: (Ljava/lang/Class;Ljava/util/function/Supplier;)Lio/vertx/core/impl/launcher/VertxCommandLauncher;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new io.vertx.core.spi.launcher.DefaultCommandFactory
dup
aload 1
aload 2
invokespecial io.vertx.core.spi.launcher.DefaultCommandFactory.<init>:(Ljava/lang/Class;Ljava/util/function/Supplier;)V
astore 3
start local 3 1: aload 3
invokevirtual io.vertx.core.spi.launcher.DefaultCommandFactory.define:()Lio/vertx/core/cli/CLI;
astore 4
start local 4 2: aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.commandByName:Ljava/util/Map;
aload 4
invokeinterface io.vertx.core.cli.CLI.getName:()Ljava/lang/String;
new io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration
dup
aload 3
aload 4
invokespecial io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration.<init>:(Lio/vertx/core/spi/launcher/CommandFactory;Lio/vertx/core/cli/CLI;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 0
areturn
end local 4 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/impl/launcher/VertxCommandLauncher;
0 4 1 clazz Ljava/lang/Class<+Lio/vertx/core/spi/launcher/Command;>;
0 4 2 supplier Ljava/util/function/Supplier<+Lio/vertx/core/spi/launcher/Command;>;
1 4 3 factory Lio/vertx/core/spi/launcher/DefaultCommandFactory;
2 4 4 cli Lio/vertx/core/cli/CLI;
Signature: (Ljava/lang/Class<+Lio/vertx/core/spi/launcher/Command;>;Ljava/util/function/Supplier<+Lio/vertx/core/spi/launcher/Command;>;)Lio/vertx/core/impl/launcher/VertxCommandLauncher;
MethodParameters:
Name Flags
clazz
supplier
public io.vertx.core.impl.launcher.VertxCommandLauncher unregister(java.lang.String);
descriptor: (Ljava/lang/String;)Lio/vertx/core/impl/launcher/VertxCommandLauncher;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.commandByName:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.util.Collection<java.lang.String> getCommandNames();
descriptor: ()Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.commandByName:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
Signature: ()Ljava/util/Collection<Ljava/lang/String;>;
protected io.vertx.core.spi.launcher.Command getNewCommandInstance(java.lang.String, io.vertx.core.cli.CommandLine);
descriptor: (Ljava/lang/String;Lio/vertx/core/cli/CommandLine;)Lio/vertx/core/spi/launcher/Command;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.commandByName:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration
astore 3
start local 3 1: aload 3
ifnull 5
2: aload 3
getfield io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration.factory:Lio/vertx/core/spi/launcher/CommandFactory;
aload 2
invokeinterface io.vertx.core.spi.launcher.CommandFactory.create:(Lio/vertx/core/cli/CommandLine;)Lio/vertx/core/spi/launcher/Command;
astore 4
start local 4 3: aload 3
aload 4
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration.addCommand:(Lio/vertx/core/spi/launcher/Command;)V
4: aload 4
areturn
end local 4 5: StackMap locals: io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
0 6 1 name Ljava/lang/String;
0 6 2 commandLine Lio/vertx/core/cli/CommandLine;
1 6 3 registration Lio/vertx/core/impl/launcher/VertxCommandLauncher$CommandRegistration;
3 5 4 command Lio/vertx/core/spi/launcher/Command;
MethodParameters:
Name Flags
name
commandLine
public io.vertx.core.spi.launcher.Command getExistingCommandInstance(java.lang.String);
descriptor: (Ljava/lang/String;)Lio/vertx/core/spi/launcher/Command;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.commandByName:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration.getCommand:()Lio/vertx/core/spi/launcher/Command;
areturn
3: StackMap locals: io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
0 4 1 name Ljava/lang/String;
1 4 2 registration Lio/vertx/core/impl/launcher/VertxCommandLauncher$CommandRegistration;
MethodParameters:
Name Flags
name
public void execute(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnull 3
aload 1
invokestatic io.vertx.core.impl.launcher.VertxCommandLauncher.isAskingForVersion:(Ljava/lang/String;)Z
ifeq 3
1: aload 0
ldc "version"
iconst_0
anewarray java.lang.String
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.execute:(Ljava/lang/String;[Ljava/lang/String;)V
2: return
3: StackMap locals:
StackMap stack:
aload 1
ifnull 4
aload 1
invokestatic io.vertx.core.impl.launcher.VertxCommandLauncher.isAskingForHelp:(Ljava/lang/String;)Z
ifeq 6
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.printGlobalUsage:()V
5: return
6: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.commandByName:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration
astore 3
start local 3 7: aload 3
ifnonnull 10
8: aload 0
aload 1
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.printCommandNotFound:(Ljava/lang/String;)V
9: return
10: StackMap locals: io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration
StackMap stack:
aload 3
getfield io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration.cli:Lio/vertx/core/cli/CLI;
astore 4
start local 4 11: aload 2
arraylength
iconst_1
if_icmplt 14
aload 2
iconst_0
aaload
invokestatic io.vertx.core.impl.launcher.VertxCommandLauncher.isAskingForHelp:(Ljava/lang/String;)Z
ifeq 14
12: aload 0
aload 4
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.printCommandUsage:(Lio/vertx/core/cli/CLI;)V
13: return
14: StackMap locals: io.vertx.core.cli.CLI
StackMap stack:
aload 4
aload 2
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface io.vertx.core.cli.CLI.parse:(Ljava/util/List;)Lio/vertx/core/cli/CommandLine;
astore 5
start local 5 15: aload 0
aload 1
aload 5
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getNewCommandInstance:(Ljava/lang/String;Lio/vertx/core/cli/CommandLine;)Lio/vertx/core/spi/launcher/Command;
astore 6
start local 6 16: new io.vertx.core.spi.launcher.ExecutionContext
dup
aload 6
aload 0
aload 5
invokespecial io.vertx.core.spi.launcher.ExecutionContext.<init>:(Lio/vertx/core/spi/launcher/Command;Lio/vertx/core/impl/launcher/VertxCommandLauncher;Lio/vertx/core/cli/CommandLine;)V
astore 7
start local 7 17: aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.main:Ljava/lang/Object;
ifnull 21
18: aload 7
ldc "Main"
aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.main:Ljava/lang/Object;
invokevirtual io.vertx.core.spi.launcher.ExecutionContext.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
19: aload 7
ldc "Main-Class"
aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.main:Ljava/lang/Object;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual io.vertx.core.spi.launcher.ExecutionContext.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
20: aload 7
ldc "Default-Verticle-Factory"
aload 0
ldc "Default-Verticle-Factory"
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getFromManifest:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual io.vertx.core.spi.launcher.ExecutionContext.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
21: StackMap locals: io.vertx.core.cli.CommandLine io.vertx.core.spi.launcher.Command io.vertx.core.spi.launcher.ExecutionContext
StackMap stack:
aload 5
aload 6
invokestatic io.vertx.core.cli.annotations.CLIConfigurator.inject:(Lio/vertx/core/cli/CommandLine;Ljava/lang/Object;)V
22: aload 6
aload 7
invokeinterface io.vertx.core.spi.launcher.Command.setUp:(Lio/vertx/core/spi/launcher/ExecutionContext;)V
23: aload 6
invokeinterface io.vertx.core.spi.launcher.Command.run:()V
24: aload 6
invokeinterface io.vertx.core.spi.launcher.Command.tearDown:()V
end local 7 end local 6 end local 5 25: goto 37
StackMap locals: io.vertx.core.impl.launcher.VertxCommandLauncher java.lang.String java.lang.String[] io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration io.vertx.core.cli.CLI
StackMap stack: io.vertx.core.cli.CLIException
26: astore 5
start local 5 27: aload 0
aload 4
aload 5
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.printSpecificException:(Lio/vertx/core/cli/CLI;Ljava/lang/Exception;)V
end local 5 28: goto 37
29: StackMap locals:
StackMap stack: io.vertx.core.cli.CLIException
astore 5
start local 5 30: aload 0
aload 4
aload 5
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.printGenericExecutionError:(Lio/vertx/core/cli/CLI;Lio/vertx/core/cli/CLIException;)V
end local 5 31: goto 37
32: StackMap locals:
StackMap stack: java.lang.RuntimeException
astore 5
start local 5 33: aload 5
invokevirtual java.lang.RuntimeException.getCause:()Ljava/lang/Throwable;
instanceof io.vertx.core.cli.CLIException
ifeq 36
34: aload 0
aload 4
aload 5
invokevirtual java.lang.RuntimeException.getCause:()Ljava/lang/Throwable;
checkcast io.vertx.core.cli.CLIException
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.printGenericExecutionError:(Lio/vertx/core/cli/CLI;Lio/vertx/core/cli/CLIException;)V
35: return
36: StackMap locals: java.lang.RuntimeException
StackMap stack:
aload 5
athrow
end local 5 37: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
0 38 1 command Ljava/lang/String;
0 38 2 cla [Ljava/lang/String;
7 38 3 registration Lio/vertx/core/impl/launcher/VertxCommandLauncher$CommandRegistration;
11 38 4 cli Lio/vertx/core/cli/CLI;
15 25 5 evaluated Lio/vertx/core/cli/CommandLine;
16 25 6 cmd Lio/vertx/core/spi/launcher/Command;
17 25 7 context Lio/vertx/core/spi/launcher/ExecutionContext;
27 28 5 e Lio/vertx/core/cli/CLIException;
30 31 5 e Lio/vertx/core/cli/CLIException;
33 37 5 e Ljava/lang/RuntimeException;
Exception table:
from to target type
11 13 26 Class io.vertx.core.cli.MissingOptionException
14 25 26 Class io.vertx.core.cli.MissingOptionException
11 13 26 Class io.vertx.core.cli.MissingValueException
14 25 26 Class io.vertx.core.cli.MissingValueException
11 13 26 Class io.vertx.core.cli.InvalidValueException
14 25 26 Class io.vertx.core.cli.InvalidValueException
11 13 29 Class io.vertx.core.cli.CLIException
14 25 29 Class io.vertx.core.cli.CLIException
11 13 32 Class java.lang.RuntimeException
14 25 32 Class java.lang.RuntimeException
MethodParameters:
Name Flags
command
cla
protected void printCommandUsage(io.vertx.core.cli.CLI);
descriptor: (Lio/vertx/core/cli/CLI;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 1: aload 1
aload 2
aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getCommandLinePrefix:()Ljava/lang/String;
invokeinterface io.vertx.core.cli.CLI.usage:(Ljava/lang/StringBuilder;Ljava/lang/String;)Lio/vertx/core/cli/CLI;
pop
2: aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getPrintStream:()Ljava/io/PrintStream;
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
0 4 1 cli Lio/vertx/core/cli/CLI;
1 4 2 builder Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
cli
protected void printGenericExecutionError(io.vertx.core.cli.CLI, io.vertx.core.cli.CLIException);
descriptor: (Lio/vertx/core/cli/CLI;Lio/vertx/core/cli/CLIException;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getPrintStream:()Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Error while executing command "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokeinterface io.vertx.core.cli.CLI.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual io.vertx.core.cli.CLIException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getNewLine:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: aload 2
invokevirtual io.vertx.core.cli.CLIException.getCause:()Ljava/lang/Throwable;
ifnull 3
2: aload 2
invokevirtual io.vertx.core.cli.CLIException.getCause:()Ljava/lang/Throwable;
aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getPrintStream:()Ljava/io/PrintStream;
invokevirtual java.lang.Throwable.printStackTrace:(Ljava/io/PrintStream;)V
3: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
0 4 1 cli Lio/vertx/core/cli/CLI;
0 4 2 e Lio/vertx/core/cli/CLIException;
MethodParameters:
Name Flags
cli
e
protected void printSpecificException(io.vertx.core.cli.CLI, java.lang.Exception);
descriptor: (Lio/vertx/core/cli/CLI;Ljava/lang/Exception;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getPrintStream:()Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
aload 2
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getNewLine:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: aload 0
aload 1
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.printCommandUsage:(Lio/vertx/core/cli/CLI;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
0 3 1 cli Lio/vertx/core/cli/CLI;
0 3 2 e Ljava/lang/Exception;
MethodParameters:
Name Flags
cli
e
protected void printCommandNotFound(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 1: aload 0
aload 2
iconst_0
new java.lang.StringBuilder
dup
ldc "The command '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' is not a valid command."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getNewLine:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: ldc "See '"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getCommandLinePrefix:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " --help'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.buildWrapped:(Ljava/lang/StringBuilder;ILjava/lang/String;)V
4: aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getPrintStream:()Ljava/io/PrintStream;
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
0 6 1 command Ljava/lang/String;
1 6 2 builder Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
command
protected void printGlobalUsage();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 0
aload 1
new java.lang.StringBuilder
dup
aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getCommandLinePrefix:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " [COMMAND] [OPTIONS] [arg...]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.computeUsage:(Ljava/lang/StringBuilder;Ljava/lang/String;)V
2: aload 1
aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getNewLine:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
3: aload 1
ldc "Commands:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getNewLine:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
4: aload 0
aload 1
aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.commandByName:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
invokedynamic apply()Ljava/util/function/Function;
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;
io/vertx/core/impl/launcher/VertxCommandLauncher.lambda$1(Lio/vertx/core/impl/launcher/VertxCommandLauncher$CommandRegistration;)Lio/vertx/core/cli/CLI; (6)
(Lio/vertx/core/impl/launcher/VertxCommandLauncher$CommandRegistration;)Lio/vertx/core/cli/CLI;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)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.Collection
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.renderCommands:(Ljava/lang/StringBuilder;Ljava/util/Collection;)Ljava/lang/StringBuilder;
pop
5: aload 1
aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getNewLine:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getNewLine:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: aload 0
aload 1
iconst_0
new java.lang.StringBuilder
dup
ldc "Run '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getCommandLinePrefix:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " COMMAND --help' for more information on a command."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.buildWrapped:(Ljava/lang/StringBuilder;ILjava/lang/String;)V
7: aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getPrintStream:()Ljava/io/PrintStream;
aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
1 9 1 builder Ljava/lang/StringBuilder;
protected java.lang.String getCommandLinePrefix();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=1
start local 0 0: ldc "vertx.cli.usage.prefix"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
areturn
3: StackMap locals: java.lang.String
StackMap stack:
invokestatic io.vertx.core.impl.launcher.CommandLineUtils.getJar:()Ljava/lang/String;
astore 2
start local 2 4: aload 2
ifnull 6
5: new java.lang.StringBuilder
dup
ldc "java -jar "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
6: StackMap locals: java.lang.String
StackMap stack:
invokestatic io.vertx.core.impl.launcher.CommandLineUtils.getFirstSegmentOfCommand:()Ljava/lang/String;
astore 3
start local 3 7: aload 3
ifnull 9
8: new java.lang.StringBuilder
dup
ldc "java "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
9: StackMap locals: java.lang.String
StackMap stack:
ldc "vertx"
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
1 10 1 sysProp Ljava/lang/String;
4 10 2 jar Ljava/lang/String;
7 10 3 command Ljava/lang/String;
protected static boolean isAskingForHelp(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "--help"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 6
1: aload 0
ldc "-help"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 6
2: aload 0
ldc "-h"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 6
3: aload 0
ldc "?"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 6
4: aload 0
ldc "/?"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 6
5: iconst_0
ireturn
StackMap locals:
StackMap stack:
6: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 command Ljava/lang/String;
MethodParameters:
Name Flags
command
protected static boolean isAskingForVersion(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "-version"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 1
aload 0
ldc "--version"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 command Ljava/lang/String;
MethodParameters:
Name Flags
command
public void dispatch(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aconst_null
aload 1
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.dispatch:(Ljava/lang/Object;[Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
0 2 1 args [Ljava/lang/String;
MethodParameters:
Name Flags
args
public void dispatch(java.lang.Object, java.lang.String[]);
descriptor: (Ljava/lang/Object;[Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
ifnonnull 1
aload 0
goto 2
StackMap locals:
StackMap stack: io.vertx.core.impl.launcher.VertxCommandLauncher
1: aload 1
StackMap locals: io.vertx.core.impl.launcher.VertxCommandLauncher java.lang.Object java.lang.String[]
StackMap stack: io.vertx.core.impl.launcher.VertxCommandLauncher java.lang.Object
2: putfield io.vertx.core.impl.launcher.VertxCommandLauncher.main:Ljava/lang/Object;
3: aload 2
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokestatic java.util.Collections.unmodifiableList:(Ljava/util/List;)Ljava/util/List;
putstatic io.vertx.core.impl.launcher.VertxCommandLauncher.PROCESS_ARGS:Ljava/util/List;
4: aload 2
arraylength
iconst_1
if_icmplt 7
aload 2
iconst_0
aaload
invokestatic io.vertx.core.impl.launcher.VertxCommandLauncher.isAskingForHelp:(Ljava/lang/String;)Z
ifeq 7
5: aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.printGlobalUsage:()V
6: return
7: StackMap locals:
StackMap stack:
aload 2
arraylength
iconst_1
if_icmplt 10
aload 2
iconst_0
aaload
invokestatic io.vertx.core.impl.launcher.VertxCommandLauncher.isAskingForVersion:(Ljava/lang/String;)Z
ifeq 10
8: aload 0
ldc "version"
iconst_0
anewarray java.lang.String
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.execute:(Ljava/lang/String;[Ljava/lang/String;)V
9: return
10: StackMap locals:
StackMap stack:
aload 2
arraylength
iconst_1
if_icmplt 13
aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.commandByName:Ljava/util/Map;
aload 2
iconst_0
aaload
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 13
11: aload 0
aload 2
iconst_0
aaload
aload 2
iconst_1
aload 2
arraylength
invokestatic java.util.Arrays.copyOfRange:([Ljava/lang/Object;II)[Ljava/lang/Object;
checkcast java.lang.String[]
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.execute:(Ljava/lang/String;[Ljava/lang/String;)V
12: return
13: StackMap locals:
StackMap stack:
aload 2
arraylength
iconst_2
if_icmplt 16
aload 2
iconst_1
aaload
invokestatic io.vertx.core.impl.launcher.VertxCommandLauncher.isAskingForHelp:(Ljava/lang/String;)Z
ifeq 16
14: aload 0
aload 2
iconst_0
aaload
iconst_1
anewarray java.lang.String
dup
iconst_0
ldc "--help"
aastore
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.execute:(Ljava/lang/String;[Ljava/lang/String;)V
15: return
16: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getMainVerticle:()Ljava/lang/String;
astore 3
start local 3 17: aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getCommandFromManifest:()Ljava/lang/String;
astore 4
start local 4 18: aload 3
ifnull 24
19: aload 2
arraylength
iconst_1
iadd
anewarray java.lang.String
astore 5
start local 5 20: aload 5
iconst_0
aload 3
aastore
21: aload 2
iconst_0
aload 5
iconst_1
aload 2
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
22: aload 0
aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getDefaultCommand:()Ljava/lang/String;
aload 5
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.execute:(Ljava/lang/String;[Ljava/lang/String;)V
23: return
end local 5 24: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 4
ifnull 27
25: aload 0
aload 4
aload 2
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.execute:(Ljava/lang/String;[Ljava/lang/String;)V
26: return
27: StackMap locals:
StackMap stack:
aload 2
arraylength
ifne 30
28: aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.printGlobalUsage:()V
29: goto 34
30: StackMap locals:
StackMap stack:
aload 2
iconst_0
aaload
ldc "-ha"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 33
31: aload 0
ldc "bare"
aload 2
iconst_1
aload 2
arraylength
invokestatic java.util.Arrays.copyOfRange:([Ljava/lang/Object;II)[Ljava/lang/Object;
checkcast java.lang.String[]
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.execute:(Ljava/lang/String;[Ljava/lang/String;)V
32: goto 34
33: StackMap locals:
StackMap stack:
aload 0
aload 2
iconst_0
aaload
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.printCommandNotFound:(Ljava/lang/String;)V
34: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
0 35 1 main Ljava/lang/Object;
0 35 2 args [Ljava/lang/String;
17 35 3 verticle Ljava/lang/String;
18 35 4 command Ljava/lang/String;
20 24 5 newArgs [Ljava/lang/String;
MethodParameters:
Name Flags
main
args
protected java.lang.String getDefaultCommand();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getCommandFromManifest:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: ldc "run"
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
1 4 1 fromManifest Ljava/lang/String;
protected java.lang.String getCommandFromManifest();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "Main-Command"
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getFromManifest:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
private java.lang.String getFromManifest(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=10, args_size=2
start local 0 start local 1 0: ldc Lio/vertx/core/impl/launcher/commands/RunCommand;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
ldc "META-INF/MANIFEST.MF"
invokevirtual java.lang.ClassLoader.getResources:(Ljava/lang/String;)Ljava/util/Enumeration;
astore 2
start local 2 1: goto 19
2: StackMap locals: java.util.Enumeration
StackMap stack:
aconst_null
astore 3
aconst_null
astore 4
3: aload 2
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.net.URL
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 5
start local 5 4: new java.util.jar.Manifest
dup
aload 5
invokespecial java.util.jar.Manifest.<init>:(Ljava/io/InputStream;)V
astore 6
start local 6 5: aload 6
invokevirtual java.util.jar.Manifest.getMainAttributes:()Ljava/util/jar/Attributes;
astore 7
start local 7 6: aload 7
ldc "Main-Class"
invokevirtual java.util.jar.Attributes.getValue:(Ljava/lang/String;)Ljava/lang/String;
astore 8
start local 8 7: aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.main:Ljava/lang/Object;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aload 8
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 13
8: aload 7
aload 1
invokevirtual java.util.jar.Attributes.getValue:(Ljava/lang/String;)Ljava/lang/String;
astore 9
start local 9 9: aload 9
ifnull 13
10: aload 9
11: aload 5
ifnull 12
aload 5
invokevirtual java.io.InputStream.close:()V
12: StackMap locals: io.vertx.core.impl.launcher.VertxCommandLauncher java.lang.String java.util.Enumeration java.lang.Throwable java.lang.Throwable java.io.InputStream java.util.jar.Manifest java.util.jar.Attributes java.lang.String java.lang.String
StackMap stack: java.lang.String
areturn
end local 9 end local 8 end local 7 end local 6 13: StackMap locals: io.vertx.core.impl.launcher.VertxCommandLauncher java.lang.String java.util.Enumeration java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack:
aload 5
ifnull 19
aload 5
invokevirtual java.io.InputStream.close:()V
goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
14: astore 3
aload 5
ifnull 15
aload 5
invokevirtual java.io.InputStream.close:()V
end local 5 StackMap locals:
StackMap stack:
15: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
16: astore 4
aload 3
ifnonnull 17
aload 4
astore 3
goto 18
StackMap locals:
StackMap stack:
17: aload 3
aload 4
if_acmpeq 18
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
18: aload 3
athrow
19: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 2
end local 2 20: goto 23
StackMap locals: io.vertx.core.impl.launcher.VertxCommandLauncher java.lang.String
StackMap stack: java.io.IOException
21: astore 2
start local 2 22: new java.lang.IllegalStateException
dup
aload 2
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 2 23: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
0 24 1 key Ljava/lang/String;
1 20 2 resources Ljava/util/Enumeration<Ljava/net/URL;>;
4 15 5 stream Ljava/io/InputStream;
5 13 6 manifest Ljava/util/jar/Manifest;
6 13 7 attributes Ljava/util/jar/Attributes;
7 13 8 mainClass Ljava/lang/String;
9 13 9 value Ljava/lang/String;
22 23 2 e Ljava/io/IOException;
Exception table:
from to target type
4 11 14 any
3 12 16 any
13 16 16 any
0 12 21 Class java.io.IOException
13 20 21 Class java.io.IOException
MethodParameters:
Name Flags
key
public java.io.PrintStream getPrintStream();
descriptor: ()Ljava/io/PrintStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic java.lang.System.out:Ljava/io/PrintStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
protected java.lang.String getMainVerticle();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "Main-Verticle"
invokevirtual io.vertx.core.impl.launcher.VertxCommandLauncher.getFromManifest:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/impl/launcher/VertxCommandLauncher;
public static void resetProcessArguments();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: aconst_null
putstatic io.vertx.core.impl.launcher.VertxCommandLauncher.PROCESS_ARGS:Ljava/util/List;
1: return
LocalVariableTable:
Start End Slot Name Signature
private void lambda$0(io.vertx.core.spi.launcher.CommandFactory);
descriptor: (Lio/vertx/core/spi/launcher/CommandFactory;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.vertx.core.spi.launcher.CommandFactory.define:()Lio/vertx/core/cli/CLI;
astore 2
start local 2 1: aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.commandByName:Ljava/util/Map;
aload 2
invokeinterface io.vertx.core.cli.CLI.getName:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration
astore 3
start local 3 2: aload 3
ifnonnull 5
3: aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.commandByName:Ljava/util/Map;
aload 2
invokeinterface io.vertx.core.cli.CLI.getName:()Ljava/lang/String;
new io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration
dup
aload 1
aload 2
invokespecial io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration.<init>:(Lio/vertx/core/spi/launcher/CommandFactory;Lio/vertx/core/cli/CLI;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: goto 7
5: StackMap locals: io.vertx.core.cli.CLI io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration
StackMap stack:
aload 2
invokeinterface io.vertx.core.cli.CLI.getPriority:()I
aload 3
getfield io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration.cli:Lio/vertx/core/cli/CLI;
invokeinterface io.vertx.core.cli.CLI.getPriority:()I
if_icmple 7
6: aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher.commandByName:Ljava/util/Map;
aload 2
invokeinterface io.vertx.core.cli.CLI.getName:()Ljava/lang/String;
new io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration
dup
aload 1
aload 2
invokespecial io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration.<init>:(Lio/vertx/core/spi/launcher/CommandFactory;Lio/vertx/core/cli/CLI;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 end local 2 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/impl/launcher/VertxCommandLauncher;
0 8 1 factory Lio/vertx/core/spi/launcher/CommandFactory<*>;
1 7 2 cli Lio/vertx/core/cli/CLI;
2 7 3 previous Lio/vertx/core/impl/launcher/VertxCommandLauncher$CommandRegistration;
private static io.vertx.core.cli.CLI lambda$1(io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration);
descriptor: (Lio/vertx/core/impl/launcher/VertxCommandLauncher$CommandRegistration;)Lio/vertx/core/cli/CLI;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration.cli:Lio/vertx/core/cli/CLI;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 r Lio/vertx/core/impl/launcher/VertxCommandLauncher$CommandRegistration;
}
SourceFile: "VertxCommandLauncher.java"
NestMembers:
io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration
InnerClasses:
public CommandRegistration = io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration of io.vertx.core.impl.launcher.VertxCommandLauncher
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles