public class io.vertx.core.impl.launcher.VertxCommandLauncher extends io.vertx.core.cli.UsageMessageFormatter
{
protected static java.util.List PROCESS_ARGS;
protected final java.util.List lookups;
protected final java.util.Map commandByName;
protected java.lang.Object main;
public static java.util.List getProcessArguments()
{
java.util.List v;
v = <io.vertx.core.impl.launcher.VertxCommandLauncher: java.util.List PROCESS_ARGS>;
return v;
}
public void <init>()
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.util.List v;
io.vertx.core.impl.launcher.ServiceCommandFactoryLoader v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v = new io.vertx.core.impl.launcher.ServiceCommandFactoryLoader;
specialinvoke v.<io.vertx.core.impl.launcher.ServiceCommandFactoryLoader: void <init>()>();
v = staticinvoke <java.util.Collections: java.util.List singletonList(java.lang.Object)>(v);
specialinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void <init>(java.util.Collection)>(v);
return;
}
public void <init>(java.util.Collection)
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.util.TreeMap v;
java.util.Collection v;
java.util.ArrayList v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v := @parameter: java.util.Collection;
specialinvoke v.<io.vertx.core.cli.UsageMessageFormatter: void <init>()>();
v = new java.util.ArrayList;
specialinvoke v.<java.util.ArrayList: void <init>(java.util.Collection)>(v);
v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.util.List lookups> = v;
v = new java.util.TreeMap;
specialinvoke v.<java.util.TreeMap: void <init>()>();
v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.util.Map commandByName> = v;
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void load()>();
return;
}
protected void load()
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.util.function.Consumer v;
java.util.List v;
java.util.Iterator v;
java.util.Collection v;
java.lang.Object v;
boolean v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.util.List lookups>;
v = interfaceinvoke v.<java.util.List: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = interfaceinvoke v.<io.vertx.core.spi.launcher.CommandFactoryLookup: java.util.Collection lookup()>();
v = staticinvoke <io.vertx.core.impl.launcher.VertxCommandLauncher$lambda_load_0__1560: java.util.function.Consumer bootstrap$(io.vertx.core.impl.launcher.VertxCommandLauncher)>(v);
interfaceinvoke v.<java.util.Collection: void forEach(java.util.function.Consumer)>(v);
goto label;
label:
return;
}
public io.vertx.core.impl.launcher.VertxCommandLauncher register(io.vertx.core.spi.launcher.CommandFactory)
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
io.vertx.core.cli.CLI v;
io.vertx.core.spi.launcher.CommandFactory v;
java.util.Map v;
io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration v;
java.lang.String v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v := @parameter: io.vertx.core.spi.launcher.CommandFactory;
v = interfaceinvoke v.<io.vertx.core.spi.launcher.CommandFactory: io.vertx.core.cli.CLI define()>();
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.util.Map commandByName>;
v = interfaceinvoke v.<io.vertx.core.cli.CLI: java.lang.String getName()>();
v = new io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration;
specialinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration: void <init>(io.vertx.core.spi.launcher.CommandFactory,io.vertx.core.cli.CLI)>(v, v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>(v, v);
return v;
}
public io.vertx.core.impl.launcher.VertxCommandLauncher register(java.lang.Class)
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
io.vertx.core.cli.CLI v;
java.util.Map v;
io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration v;
java.lang.Class v;
java.lang.String v;
io.vertx.core.spi.launcher.DefaultCommandFactory v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v := @parameter: java.lang.Class;
v = new io.vertx.core.spi.launcher.DefaultCommandFactory;
specialinvoke v.<io.vertx.core.spi.launcher.DefaultCommandFactory: void <init>(java.lang.Class)>(v);
v = virtualinvoke v.<io.vertx.core.spi.launcher.DefaultCommandFactory: io.vertx.core.cli.CLI define()>();
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.util.Map commandByName>;
v = interfaceinvoke v.<io.vertx.core.cli.CLI: java.lang.String getName()>();
v = new io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration;
specialinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration: void <init>(io.vertx.core.spi.launcher.CommandFactory,io.vertx.core.cli.CLI)>(v, v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>(v, v);
return v;
}
public io.vertx.core.impl.launcher.VertxCommandLauncher register(java.lang.Class, java.util.function.Supplier)
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration v;
java.util.function.Supplier v;
io.vertx.core.cli.CLI v;
java.util.Map v;
java.lang.Class v;
java.lang.String v;
io.vertx.core.spi.launcher.DefaultCommandFactory v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v := @parameter: java.lang.Class;
v := @parameter: java.util.function.Supplier;
v = new io.vertx.core.spi.launcher.DefaultCommandFactory;
specialinvoke v.<io.vertx.core.spi.launcher.DefaultCommandFactory: void <init>(java.lang.Class,java.util.function.Supplier)>(v, v);
v = virtualinvoke v.<io.vertx.core.spi.launcher.DefaultCommandFactory: io.vertx.core.cli.CLI define()>();
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.util.Map commandByName>;
v = interfaceinvoke v.<io.vertx.core.cli.CLI: java.lang.String getName()>();
v = new io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration;
specialinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration: void <init>(io.vertx.core.spi.launcher.CommandFactory,io.vertx.core.cli.CLI)>(v, v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>(v, v);
return v;
}
public io.vertx.core.impl.launcher.VertxCommandLauncher unregister(java.lang.String)
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.lang.String v;
java.util.Map v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v := @parameter: java.lang.String;
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.util.Map commandByName>;
interfaceinvoke v.<java.util.Map: java.lang.Object remove(java.lang.Object)>(v);
return v;
}
public java.util.Collection getCommandNames()
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.util.Set v;
java.util.Map v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.util.Map commandByName>;
v = interfaceinvoke v.<java.util.Map: java.util.Set keySet()>();
return v;
}
protected io.vertx.core.spi.launcher.Command getNewCommandInstance(java.lang.String, io.vertx.core.cli.CommandLine)
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
io.vertx.core.cli.CommandLine v;
io.vertx.core.spi.launcher.CommandFactory v;
java.util.Map v;
java.lang.Object v;
io.vertx.core.spi.launcher.Command v;
java.lang.String v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v := @parameter: java.lang.String;
v := @parameter: io.vertx.core.cli.CommandLine;
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.util.Map commandByName>;
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>(v);
if v == null goto label;
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration: io.vertx.core.spi.launcher.CommandFactory factory>;
v = interfaceinvoke v.<io.vertx.core.spi.launcher.CommandFactory: io.vertx.core.spi.launcher.Command create(io.vertx.core.cli.CommandLine)>(v);
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration: void addCommand(io.vertx.core.spi.launcher.Command)>(v);
return v;
label:
return null;
}
public io.vertx.core.spi.launcher.Command getExistingCommandInstance(java.lang.String)
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.util.Map v;
java.lang.Object v;
io.vertx.core.spi.launcher.Command v;
java.lang.String v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v := @parameter: java.lang.String;
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.util.Map commandByName>;
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>(v);
if v == null goto label;
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration: io.vertx.core.spi.launcher.Command getCommand()>();
return v;
label:
return null;
}
public transient void execute(java.lang.String, java.lang.String[])
{
io.vertx.core.spi.launcher.ExecutionContext v;
java.lang.Throwable v, v;
io.vertx.core.cli.CommandLine v;
java.lang.String[] v, v;
java.util.Map v;
int v;
java.lang.String v, v, v, v;
boolean v, v, v, v;
io.vertx.core.impl.launcher.VertxCommandLauncher v;
io.vertx.core.cli.CLIException v, v;
java.lang.RuntimeException v;
java.util.List v;
io.vertx.core.cli.CLI v;
java.lang.Class v;
java.lang.Object v, v, v, v;
io.vertx.core.spi.launcher.Command v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v := @parameter: java.lang.String;
v := @parameter: java.lang.String[];
if v == null goto label;
v = staticinvoke <io.vertx.core.impl.launcher.VertxCommandLauncher: boolean isAskingForVersion(java.lang.String)>(v);
if v == 0 goto label;
v = newarray (java.lang.String)[0];
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void execute(java.lang.String,java.lang.String[])>("version", v);
return;
label:
if v == null goto label;
v = staticinvoke <io.vertx.core.impl.launcher.VertxCommandLauncher: boolean isAskingForHelp(java.lang.String)>(v);
if v == 0 goto label;
label:
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void printGlobalUsage()>();
return;
label:
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.util.Map commandByName>;
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>(v);
if v != null goto label;
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void printCommandNotFound(java.lang.String)>(v);
return;
label:
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher$CommandRegistration: io.vertx.core.cli.CLI cli>;
label:
v = lengthof v;
if v < 1 goto label;
v = v[0];
v = staticinvoke <io.vertx.core.impl.launcher.VertxCommandLauncher: boolean isAskingForHelp(java.lang.String)>(v);
if v == 0 goto label;
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void printCommandUsage(io.vertx.core.cli.CLI)>(v);
label:
return;
label:
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = interfaceinvoke v.<io.vertx.core.cli.CLI: io.vertx.core.cli.CommandLine parse(java.util.List)>(v);
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: io.vertx.core.spi.launcher.Command getNewCommandInstance(java.lang.String,io.vertx.core.cli.CommandLine)>(v, v);
v = new io.vertx.core.spi.launcher.ExecutionContext;
specialinvoke v.<io.vertx.core.spi.launcher.ExecutionContext: void <init>(io.vertx.core.spi.launcher.Command,io.vertx.core.impl.launcher.VertxCommandLauncher,io.vertx.core.cli.CommandLine)>(v, v, v);
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.Object main>;
if v == null goto label;
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.Object main>;
virtualinvoke v.<io.vertx.core.spi.launcher.ExecutionContext: java.lang.Object put(java.lang.Object,java.lang.Object)>("Main", v);
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.Object main>;
v = virtualinvoke v.<java.lang.Object: java.lang.Class getClass()>();
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
virtualinvoke v.<io.vertx.core.spi.launcher.ExecutionContext: java.lang.Object put(java.lang.Object,java.lang.Object)>("Main-Class", v);
v = specialinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getFromManifest(java.lang.String)>("Default-Verticle-Factory");
virtualinvoke v.<io.vertx.core.spi.launcher.ExecutionContext: java.lang.Object put(java.lang.Object,java.lang.Object)>("Default-Verticle-Factory", v);
label:
staticinvoke <io.vertx.core.cli.annotations.CLIConfigurator: void inject(io.vertx.core.cli.CommandLine,java.lang.Object)>(v, v);
interfaceinvoke v.<io.vertx.core.spi.launcher.Command: void setUp(io.vertx.core.spi.launcher.ExecutionContext)>(v);
interfaceinvoke v.<io.vertx.core.spi.launcher.Command: void run()>();
interfaceinvoke v.<io.vertx.core.spi.launcher.Command: void tearDown()>();
label:
goto label;
label:
v := @caughtexception;
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void printSpecificException(io.vertx.core.cli.CLI,java.lang.Exception)>(v, v);
goto label;
label:
v := @caughtexception;
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void printGenericExecutionError(io.vertx.core.cli.CLI,io.vertx.core.cli.CLIException)>(v, v);
goto label;
label:
v := @caughtexception;
v = virtualinvoke v.<java.lang.RuntimeException: java.lang.Throwable getCause()>();
v = v instanceof io.vertx.core.cli.CLIException;
if v == 0 goto label;
v = virtualinvoke v.<java.lang.RuntimeException: java.lang.Throwable getCause()>();
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void printGenericExecutionError(io.vertx.core.cli.CLI,io.vertx.core.cli.CLIException)>(v, v);
return;
label:
throw v;
label:
return;
catch io.vertx.core.cli.MissingOptionException from label to label with label;
catch io.vertx.core.cli.MissingValueException from label to label with label;
catch io.vertx.core.cli.InvalidValueException from label to label with label;
catch io.vertx.core.cli.MissingOptionException from label to label with label;
catch io.vertx.core.cli.MissingValueException from label to label with label;
catch io.vertx.core.cli.InvalidValueException from label to label with label;
catch io.vertx.core.cli.CLIException from label to label with label;
catch io.vertx.core.cli.CLIException from label to label with label;
catch java.lang.RuntimeException from label to label with label;
catch java.lang.RuntimeException from label to label with label;
}
protected void printCommandUsage(io.vertx.core.cli.CLI)
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.io.PrintStream v;
io.vertx.core.cli.CLI v;
java.lang.StringBuilder v;
java.lang.String v, v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v := @parameter: io.vertx.core.cli.CLI;
v = new java.lang.StringBuilder;
specialinvoke v.<java.lang.StringBuilder: void <init>()>();
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getCommandLinePrefix()>();
interfaceinvoke v.<io.vertx.core.cli.CLI: io.vertx.core.cli.CLI usage(java.lang.StringBuilder,java.lang.String)>(v, v);
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.io.PrintStream getPrintStream()>();
v = virtualinvoke v.<java.lang.StringBuilder: java.lang.String toString()>();
virtualinvoke v.<java.io.PrintStream: void println(java.lang.String)>(v);
return;
}
protected void printGenericExecutionError(io.vertx.core.cli.CLI, io.vertx.core.cli.CLIException)
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.io.PrintStream v, v;
java.lang.Throwable v, v;
io.vertx.core.cli.CLIException v;
io.vertx.core.cli.CLI v;
java.lang.String v, v, v, v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v := @parameter: io.vertx.core.cli.CLI;
v := @parameter: io.vertx.core.cli.CLIException;
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.io.PrintStream getPrintStream()>();
v = interfaceinvoke v.<io.vertx.core.cli.CLI: java.lang.String getName()>();
v = virtualinvoke v.<io.vertx.core.cli.CLIException: java.lang.String getMessage()>();
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getNewLine()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String,java.lang.String)>(v, v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Error while executing command \u0001: \u0001\u0001");
virtualinvoke v.<java.io.PrintStream: void println(java.lang.String)>(v);
v = virtualinvoke v.<io.vertx.core.cli.CLIException: java.lang.Throwable getCause()>();
if v == null goto label;
v = virtualinvoke v.<io.vertx.core.cli.CLIException: java.lang.Throwable getCause()>();
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.io.PrintStream getPrintStream()>();
virtualinvoke v.<java.lang.Throwable: void printStackTrace(java.io.PrintStream)>(v);
label:
return;
}
protected void printSpecificException(io.vertx.core.cli.CLI, java.lang.Exception)
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.io.PrintStream v;
io.vertx.core.cli.CLI v;
java.lang.String v, v, v;
java.lang.Exception v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v := @parameter: io.vertx.core.cli.CLI;
v := @parameter: java.lang.Exception;
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.io.PrintStream getPrintStream()>();
v = virtualinvoke v.<java.lang.Exception: java.lang.String getMessage()>();
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getNewLine()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001\u0001");
virtualinvoke v.<java.io.PrintStream: void println(java.lang.String)>(v);
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void printCommandUsage(io.vertx.core.cli.CLI)>(v);
return;
}
protected void printCommandNotFound(java.lang.String)
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.io.PrintStream v;
java.lang.StringBuilder v;
java.lang.String v, v, v, v, v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v := @parameter: java.lang.String;
v = new java.lang.StringBuilder;
specialinvoke v.<java.lang.StringBuilder: void <init>()>();
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getNewLine()>();
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getCommandLinePrefix()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String,java.lang.String)>(v, v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("The command \'\u0001\' is not a valid command.\u0001See \'\u --help\'");
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void buildWrapped(java.lang.StringBuilder,int,java.lang.String)>(v, 0, v);
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.io.PrintStream getPrintStream()>();
v = virtualinvoke v.<java.lang.StringBuilder: java.lang.String toString()>();
virtualinvoke v.<java.io.PrintStream: void println(java.lang.String)>(v);
return;
}
protected void printGlobalUsage()
{
java.util.function.Function v;
java.util.Map v;
java.lang.String v, v, v, v, v, v, v, v, v;
java.util.stream.Collector v;
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.io.PrintStream v;
java.util.Collection v;
java.util.stream.Stream v, v;
java.lang.Object v;
java.lang.StringBuilder v, v, v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v = new java.lang.StringBuilder;
specialinvoke v.<java.lang.StringBuilder: void <init>()>();
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getCommandLinePrefix()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u [COMMAND] [OPTIONS] [arg...]");
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void computeUsage(java.lang.StringBuilder,java.lang.String)>(v, v);
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getNewLine()>();
virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.String)>(v);
v = virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.String)>("Commands:");
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getNewLine()>();
virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.String)>(v);
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.util.Map commandByName>;
v = interfaceinvoke v.<java.util.Map: java.util.Collection values()>();
v = interfaceinvoke v.<java.util.Collection: java.util.stream.Stream stream()>();
v = staticinvoke <io.vertx.core.impl.launcher.VertxCommandLauncher$lambda_printGlobalUsage_1__1561: java.util.function.Function bootstrap$()>();
v = interfaceinvoke v.<java.util.stream.Stream: java.util.stream.Stream map(java.util.function.Function)>(v);
v = staticinvoke <java.util.stream.Collectors: java.util.stream.Collector toList()>();
v = interfaceinvoke v.<java.util.stream.Stream: java.lang.Object collect(java.util.stream.Collector)>(v);
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.StringBuilder renderCommands(java.lang.StringBuilder,java.util.Collection)>(v, v);
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getNewLine()>();
v = virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.String)>(v);
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getNewLine()>();
virtualinvoke v.<java.lang.StringBuilder: java.lang.StringBuilder append(java.lang.String)>(v);
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getCommandLinePrefix()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Run \'\u COMMAND --help\' for more information on a command.");
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void buildWrapped(java.lang.StringBuilder,int,java.lang.String)>(v, 0, v);
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.io.PrintStream getPrintStream()>();
v = virtualinvoke v.<java.lang.StringBuilder: java.lang.String toString()>();
virtualinvoke v.<java.io.PrintStream: void println(java.lang.String)>(v);
return;
}
protected java.lang.String getCommandLinePrefix()
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.lang.String v, v, v, v, v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v = staticinvoke <java.lang.System: java.lang.String getProperty(java.lang.String)>("vertx.cli.usage.prefix");
if v == null goto label;
return v;
label:
v = staticinvoke <io.vertx.core.impl.launcher.CommandLineUtils: java.lang.String getJar()>();
if v == null goto label;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("java -jar \u0001");
return v;
label:
v = staticinvoke <io.vertx.core.impl.launcher.CommandLineUtils: java.lang.String getFirstSegmentOfCommand()>();
if v == null goto label;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("java \u0001");
return v;
label:
return "vertx";
}
protected static boolean isAskingForHelp(java.lang.String)
{
java.lang.String v;
boolean v, v, v, v, v, v;
v := @parameter: java.lang.String;
v = virtualinvoke v.<java.lang.String: boolean equalsIgnoreCase(java.lang.String)>("--help");
if v != 0 goto label;
v = virtualinvoke v.<java.lang.String: boolean equalsIgnoreCase(java.lang.String)>("-help");
if v != 0 goto label;
v = virtualinvoke v.<java.lang.String: boolean equalsIgnoreCase(java.lang.String)>("-h");
if v != 0 goto label;
v = virtualinvoke v.<java.lang.String: boolean equalsIgnoreCase(java.lang.String)>("?");
if v != 0 goto label;
v = virtualinvoke v.<java.lang.String: boolean equalsIgnoreCase(java.lang.String)>("/?");
if v == 0 goto label;
label:
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
protected static boolean isAskingForVersion(java.lang.String)
{
java.lang.String v;
boolean v, v, v;
v := @parameter: java.lang.String;
v = virtualinvoke v.<java.lang.String: boolean equalsIgnoreCase(java.lang.String)>("-version");
if v != 0 goto label;
v = virtualinvoke v.<java.lang.String: boolean equalsIgnoreCase(java.lang.String)>("--version");
if v == 0 goto label;
label:
v = 1;
goto label;
label:
v = 0;
label:
return v;
}
public void dispatch(java.lang.String[])
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.lang.String[] v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v := @parameter: java.lang.String[];
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void dispatch(java.lang.Object,java.lang.String[])>(null, v);
return;
}
public void dispatch(java.lang.Object, java.lang.String[])
{
java.util.Map v;
boolean v, v, v, v;
java.util.List v, v;
java.lang.Object[] v, v;
java.lang.String[] v, v, v, v;
int v, v, v, v, v, v, v, v, v, v;
java.lang.String v, v, v, v, v, v, v, v, v, v, v;
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.lang.Object v, v, v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v := @parameter: java.lang.Object;
v := @parameter: java.lang.String[];
if v != null goto label;
v = v;
goto label;
label:
v = v;
label:
v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.Object main> = v;
v = staticinvoke <java.util.Arrays: java.util.List asList(java.lang.Object[])>(v);
v = staticinvoke <java.util.Collections: java.util.List unmodifiableList(java.util.List)>(v);
<io.vertx.core.impl.launcher.VertxCommandLauncher: java.util.List PROCESS_ARGS> = v;
v = lengthof v;
if v < 1 goto label;
v = v[0];
v = staticinvoke <io.vertx.core.impl.launcher.VertxCommandLauncher: boolean isAskingForHelp(java.lang.String)>(v);
if v == 0 goto label;
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void printGlobalUsage()>();
return;
label:
v = lengthof v;
if v < 1 goto label;
v = v[0];
v = staticinvoke <io.vertx.core.impl.launcher.VertxCommandLauncher: boolean isAskingForVersion(java.lang.String)>(v);
if v == 0 goto label;
v = newarray (java.lang.String)[0];
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void execute(java.lang.String,java.lang.String[])>("version", v);
return;
label:
v = lengthof v;
if v < 1 goto label;
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.util.Map commandByName>;
v = v[0];
v = interfaceinvoke v.<java.util.Map: java.lang.Object get(java.lang.Object)>(v);
if v == null goto label;
v = v[0];
v = lengthof v;
v = staticinvoke <java.util.Arrays: java.lang.Object[] copyOfRange(java.lang.Object[],int,int)>(v, 1, v);
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void execute(java.lang.String,java.lang.String[])>(v, v);
return;
label:
v = lengthof v;
if v < 2 goto label;
v = v[1];
v = staticinvoke <io.vertx.core.impl.launcher.VertxCommandLauncher: boolean isAskingForHelp(java.lang.String)>(v);
if v == 0 goto label;
v = v[0];
v = newarray (java.lang.String)[1];
v[0] = "--help";
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void execute(java.lang.String,java.lang.String[])>(v, v);
return;
label:
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getMainVerticle()>();
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getCommandFromManifest()>();
if v == null goto label;
v = lengthof v;
v = v + 1;
v = newarray (java.lang.String)[v];
v[0] = v;
v = lengthof v;
staticinvoke <java.lang.System: void arraycopy(java.lang.Object,int,java.lang.Object,int,int)>(v, 0, v, 1, v);
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getDefaultCommand()>();
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void execute(java.lang.String,java.lang.String[])>(v, v);
return;
label:
if v == null goto label;
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void execute(java.lang.String,java.lang.String[])>(v, v);
return;
label:
v = lengthof v;
if v != 0 goto label;
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void printGlobalUsage()>();
goto label;
label:
v = v[0];
v = virtualinvoke v.<java.lang.String: boolean equalsIgnoreCase(java.lang.String)>("-ha");
if v == 0 goto label;
v = lengthof v;
v = staticinvoke <java.util.Arrays: java.lang.Object[] copyOfRange(java.lang.Object[],int,int)>(v, 1, v);
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void execute(java.lang.String,java.lang.String[])>("bare", v);
goto label;
label:
v = v[0];
virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: void printCommandNotFound(java.lang.String)>(v);
label:
return;
}
protected java.lang.String getDefaultCommand()
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.lang.String v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v = virtualinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getCommandFromManifest()>();
if v != null goto label;
return "run";
label:
return v;
}
protected java.lang.String getCommandFromManifest()
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.lang.String v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v = specialinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getFromManifest(java.lang.String)>("Main-Command");
return v;
}
private java.lang.String getFromManifest(java.lang.String)
{
java.lang.Throwable v;
java.util.jar.Manifest v;
java.lang.IllegalStateException v;
java.util.Enumeration v;
java.lang.String v, v, v, v, v;
boolean v, v;
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.io.IOException v;
java.util.jar.Attributes v;
java.lang.Class v, v;
java.lang.Object v, v;
java.lang.ClassLoader v;
java.io.InputStream v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v := @parameter: java.lang.String;
label:
v = class "Lio/vertx/core/impl/launcher/commands/RunCommand;";
v = virtualinvoke v.<java.lang.Class: java.lang.ClassLoader getClassLoader()>();
v = virtualinvoke v.<java.lang.ClassLoader: java.util.Enumeration getResources(java.lang.String)>("META-INF/MANIFEST.MF");
label:
v = interfaceinvoke v.<java.util.Enumeration: boolean hasMoreElements()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Enumeration: java.lang.Object nextElement()>();
v = virtualinvoke v.<java.net.URL: java.io.InputStream openStream()>();
label:
v = new java.util.jar.Manifest;
specialinvoke v.<java.util.jar.Manifest: void <init>(java.io.InputStream)>(v);
v = virtualinvoke v.<java.util.jar.Manifest: java.util.jar.Attributes getMainAttributes()>();
v = virtualinvoke v.<java.util.jar.Attributes: java.lang.String getValue(java.lang.String)>("Main-Class");
v = v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.Object main>;
v = virtualinvoke v.<java.lang.Object: java.lang.Class getClass()>();
v = virtualinvoke v.<java.lang.Class: java.lang.String getName()>();
v = virtualinvoke v.<java.lang.String: boolean equals(java.lang.Object)>(v);
if v == 0 goto label;
v = virtualinvoke v.<java.util.jar.Attributes: java.lang.String getValue(java.lang.String)>(v);
if v == null goto label;
label:
if v == null goto label;
virtualinvoke v.<java.io.InputStream: void close()>();
label:
return v;
label:
if v == null goto label;
virtualinvoke v.<java.io.InputStream: void close()>();
goto label;
label:
v := @caughtexception;
throw v;
label:
v := @caughtexception;
v = new java.lang.IllegalStateException;
v = virtualinvoke v.<java.io.IOException: java.lang.String getMessage()>();
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>(v);
throw v;
label:
return null;
catch java.lang.Throwable from label to label with label;
catch java.io.IOException from label to label with label;
catch java.io.IOException from label to label with label;
}
public java.io.PrintStream getPrintStream()
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.io.PrintStream v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v = <java.lang.System: java.io.PrintStream out>;
return v;
}
protected java.lang.String getMainVerticle()
{
io.vertx.core.impl.launcher.VertxCommandLauncher v;
java.lang.String v;
v := @this: io.vertx.core.impl.launcher.VertxCommandLauncher;
v = specialinvoke v.<io.vertx.core.impl.launcher.VertxCommandLauncher: java.lang.String getFromManifest(java.lang.String)>("Main-Verticle");
return v;
}
public static void resetProcessArguments()
{
<io.vertx.core.impl.launcher.VertxCommandLauncher: java.util.List PROCESS_ARGS> = null;
return;
}
}