final class jdk.jfr.internal.tool.Help extends jdk.jfr.internal.tool.Command
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.jfr.internal.tool.Help
super_class: jdk.jfr.internal.tool.Command
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial jdk.jfr.internal.tool.Command.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/tool/Help;
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "help"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/tool/Help;
public java.util.List<java.lang.String> getOptionSyntax();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "[<command>]"
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/tool/Help;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
protected java.util.List<java.lang.String> getAliases();
descriptor: ()Ljava/util/List;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: ldc "--help"
ldc "-h"
ldc "-?"
invokestatic java.util.List.of:(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/tool/Help;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
public void displayOptionUsage(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc " <command> The name of the command to get help for"
invokevirtual jdk.jfr.internal.tool.Help.println:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/jfr/internal/tool/Help;
0 2 1 stream Ljava/io/PrintStream;
MethodParameters:
Name Flags
stream
public java.lang.String getDescription();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "Display all available commands, or help about a specific command"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jfr/internal/tool/Help;
public void execute(java.util.Deque<java.lang.String>);
descriptor: (Ljava/util/Deque;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.Deque.isEmpty:()Z
ifeq 3
1: invokestatic jdk.jfr.internal.tool.Command.displayHelp:()V
2: return
3: StackMap locals:
StackMap stack:
aload 0
aload 1
iconst_1
invokevirtual jdk.jfr.internal.tool.Help.ensureMaxArgumentCount:(Ljava/util/Deque;I)V
4: aload 1
invokeinterface java.util.Deque.remove:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 5: aload 2
invokestatic jdk.jfr.internal.tool.Command.valueOf:(Ljava/lang/String;)Ljdk/jfr/internal/tool/Command;
astore 3
start local 3 6: aload 3
ifnonnull 8
7: new jdk.jfr.internal.tool.UserDataException
dup
new java.lang.StringBuilder
dup
ldc "unknown command '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
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;
invokespecial jdk.jfr.internal.tool.UserDataException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: java.lang.String jdk.jfr.internal.tool.Command
StackMap stack:
aload 0
aload 3
invokevirtual jdk.jfr.internal.tool.Command.getTitle:()Ljava/lang/String;
invokevirtual jdk.jfr.internal.tool.Help.println:(Ljava/lang/String;)V
9: aload 0
invokevirtual jdk.jfr.internal.tool.Help.println:()V
10: aload 3
getstatic java.lang.System.out:Ljava/io/PrintStream;
invokevirtual jdk.jfr.internal.tool.Command.displayUsage:(Ljava/io/PrintStream;)V
11: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/jfr/internal/tool/Help;
0 12 1 options Ljava/util/Deque<Ljava/lang/String;>;
5 12 2 commandName Ljava/lang/String;
6 12 3 c Ljdk/jfr/internal/tool/Command;
Exceptions:
throws jdk.jfr.internal.tool.UserSyntaxException, jdk.jfr.internal.tool.UserDataException
Signature: (Ljava/util/Deque<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
options
}
SourceFile: "Help.java"