class sun.tools.jcmd.Arguments
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.tools.jcmd.Arguments
super_class: java.lang.Object
{
private boolean listProcesses;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean listCounters;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean showUsage;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.lang.String command;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String processString;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
public boolean isListProcesses();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.tools.jcmd.Arguments.listProcesses:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/jcmd/Arguments;
public boolean isListCounters();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.tools.jcmd.Arguments.listCounters:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/jcmd/Arguments;
public boolean isShowUsage();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.tools.jcmd.Arguments.showUsage:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/jcmd/Arguments;
public java.lang.String getCommand();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.tools.jcmd.Arguments.command:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/jcmd/Arguments;
public java.lang.String getProcessString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.tools.jcmd.Arguments.processString:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/tools/jcmd/Arguments;
public void <init>(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield sun.tools.jcmd.Arguments.listProcesses:Z
2: aload 0
iconst_0
putfield sun.tools.jcmd.Arguments.listCounters:Z
3: aload 0
iconst_0
putfield sun.tools.jcmd.Arguments.showUsage:Z
4: aload 0
aconst_null
putfield sun.tools.jcmd.Arguments.command:Ljava/lang/String;
5: aload 0
aconst_null
putfield sun.tools.jcmd.Arguments.processString:Ljava/lang/String;
6: aload 1
arraylength
ifeq 7
aload 1
iconst_0
aaload
ldc "-l"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 10
7: StackMap locals: sun.tools.jcmd.Arguments java.lang.String[]
StackMap stack:
aload 0
iconst_1
putfield sun.tools.jcmd.Arguments.listProcesses:Z
8: aload 0
ldc "0"
putfield sun.tools.jcmd.Arguments.processString:Ljava/lang/String;
9: return
10: StackMap locals:
StackMap stack:
aload 1
iconst_0
aaload
ldc "-h"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 11
aload 1
iconst_0
aaload
ldc "-help"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 13
11: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.tools.jcmd.Arguments.showUsage:Z
12: return
13: StackMap locals:
StackMap stack:
aload 0
aload 1
iconst_0
aaload
putfield sun.tools.jcmd.Arguments.processString:Ljava/lang/String;
14: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 15: iconst_1
istore 3
start local 3 16: goto 40
17: StackMap locals: java.lang.StringBuilder int
StackMap stack:
aload 1
iload 3
aaload
ldc "-f"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 35
18: aload 1
arraylength
iload 3
iconst_1
iadd
if_icmpne 22
19: new java.lang.IllegalArgumentException
dup
20: ldc "No file specified for parameter -f"
21: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
22: StackMap locals:
StackMap stack:
aload 1
arraylength
iload 3
iconst_2
iadd
if_icmpne 32
23: aload 0
aload 1
iload 3
iconst_1
iadd
aaload
invokevirtual sun.tools.jcmd.Arguments.readCommandFile:(Ljava/lang/String;)V
24: goto 31
StackMap locals:
StackMap stack: java.io.IOException
25: pop
26: new java.lang.IllegalArgumentException
dup
27: new java.lang.StringBuilder
dup
ldc "Could not read from file specified with -f option: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
28: aload 1
iload 3
iconst_1
iadd
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
29: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
30: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
31: StackMap locals:
StackMap stack:
return
32: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
33: ldc "Options after -f are not allowed"
34: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
35: StackMap locals:
StackMap stack:
aload 1
iload 3
aaload
ldc "PerfCounter.print"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 38
36: aload 0
iconst_1
putfield sun.tools.jcmd.Arguments.listCounters:Z
37: goto 39
38: StackMap locals:
StackMap stack:
aload 2
aload 1
iload 3
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
39: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
40: iload 3
aload 1
arraylength
if_icmplt 17
end local 3 41: aload 0
getfield sun.tools.jcmd.Arguments.listCounters:Z
ifne 43
aload 2
invokevirtual java.lang.StringBuilder.length:()I
ifne 43
42: new java.lang.IllegalArgumentException
dup
ldc "No command specified"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
43: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
putfield sun.tools.jcmd.Arguments.command:Ljava/lang/String;
44: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 45 0 this Lsun/tools/jcmd/Arguments;
0 45 1 args [Ljava/lang/String;
15 45 2 sb Ljava/lang/StringBuilder;
16 41 3 i I
Exception table:
from to target type
23 24 25 Class java.io.IOException
MethodParameters:
Name Flags
args
private void readCommandFile(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
aconst_null
astore 3
1: new java.io.BufferedReader
dup
new java.io.FileReader
dup
aload 1
invokespecial java.io.FileReader.<init>:(Ljava/lang/String;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 4
start local 4 2: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 5
start local 5 3: goto 5
start local 6 4: StackMap locals: sun.tools.jcmd.Arguments java.lang.String java.lang.Throwable java.lang.Throwable java.io.BufferedReader java.lang.StringBuilder java.lang.String
StackMap stack:
aload 5
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 6 5: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 6
start local 6 6: ifnonnull 4
7: aload 0
aload 5
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield sun.tools.jcmd.Arguments.command:Ljava/lang/String;
end local 6 end local 5 8: aload 4
ifnull 14
aload 4
invokevirtual java.io.BufferedReader.close:()V
goto 14
StackMap locals: sun.tools.jcmd.Arguments java.lang.String java.lang.Throwable java.lang.Throwable java.io.BufferedReader
StackMap stack: java.lang.Throwable
9: astore 2
aload 4
ifnull 10
aload 4
invokevirtual java.io.BufferedReader.close:()V
end local 4 StackMap locals:
StackMap stack:
10: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 3
aload 2
ifnonnull 12
aload 3
astore 2
goto 13
StackMap locals:
StackMap stack:
12: aload 2
aload 3
if_acmpeq 13
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
13: aload 2
athrow
14: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/tools/jcmd/Arguments;
0 15 1 path Ljava/lang/String;
2 10 4 bf Ljava/io/BufferedReader;
3 8 5 sb Ljava/lang/StringBuilder;
4 5 6 s Ljava/lang/String;
6 8 6 s Ljava/lang/String;
Exception table:
from to target type
2 8 9 any
1 11 11 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
path
public static void usage();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Usage: jcmd <pid | main class> <command ...|PerfCounter.print|-f file>"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " or: jcmd -l "
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
2: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " or: jcmd -h "
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " "
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " command must be a valid jcmd command for the selected jvm. "
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
5: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " Use the command \"help\" to see which commands are available. "
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " If the pid is 0, commands will be sent to all Java processes. "
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
7: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " The main class argument will be used to match (either partially "
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
8: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " or fully) the class used to start Java. "
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " If no options are given, lists Java processes (same as -l). "
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
10: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " "
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
11: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " PerfCounter.print display the counters exposed by this process "
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
12: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " -f read and execute commands from the file "
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
13: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " -l list JVM processes on the local machine "
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
14: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc " -h this help "
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
15: return
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "Arguments.java"