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 int pid;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.String command;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String processSubstring;
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 int getPid();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.tools.jcmd.Arguments.pid:I
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 getProcessSubstring();
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.processSubstring: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
iconst_m1
putfield sun.tools.jcmd.Arguments.pid:I
5: aload 0
aconst_null
putfield sun.tools.jcmd.Arguments.command: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 9
7: StackMap locals: sun.tools.jcmd.Arguments java.lang.String[]
StackMap stack:
aload 0
iconst_1
putfield sun.tools.jcmd.Arguments.listProcesses:Z
8: return
9: StackMap locals:
StackMap stack:
aload 1
iconst_0
aaload
ldc "-h"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
aload 1
iconst_0
aaload
ldc "-help"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
10: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.tools.jcmd.Arguments.showUsage:Z
11: return
12: StackMap locals:
StackMap stack:
aload 0
aload 1
iconst_0
aaload
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
putfield sun.tools.jcmd.Arguments.pid:I
13: goto 17
StackMap locals:
StackMap stack: java.lang.NumberFormatException
14: pop
15: aload 1
iconst_0
aaload
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 45
if_icmpeq 17
16: aload 0
aload 1
iconst_0
aaload
putfield sun.tools.jcmd.Arguments.processSubstring:Ljava/lang/String;
17: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 18: iconst_1
istore 3
start local 3 19: goto 43
20: 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 38
21: aload 1
arraylength
iload 3
iconst_1
iadd
if_icmpne 25
22: new java.lang.IllegalArgumentException
dup
23: ldc "No file specified for parameter -f"
24: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals:
StackMap stack:
aload 1
arraylength
iload 3
iconst_2
iadd
if_icmpne 35
26: aload 0
aload 1
iload 3
iconst_1
iadd
aaload
invokevirtual sun.tools.jcmd.Arguments.readCommandFile:(Ljava/lang/String;)V
27: goto 34
StackMap locals:
StackMap stack: java.io.IOException
28: pop
29: new java.lang.IllegalArgumentException
dup
30: new java.lang.StringBuilder
dup
ldc "Could not read from file specified with -f option: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
31: aload 1
iload 3
iconst_1
iadd
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
32: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
33: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
34: StackMap locals:
StackMap stack:
return
35: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
36: ldc "Options after -f are not allowed"
37: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
38: StackMap locals:
StackMap stack:
aload 1
iload 3
aaload
ldc "PerfCounter.print"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 41
39: aload 0
iconst_1
putfield sun.tools.jcmd.Arguments.listCounters:Z
40: goto 42
41: 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
42: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
43: iload 3
aload 1
arraylength
if_icmplt 20
end local 3 44: aload 0
getfield sun.tools.jcmd.Arguments.listCounters:Z
ifne 46
aload 2
invokevirtual java.lang.StringBuilder.length:()I
ifne 46
45: new java.lang.IllegalArgumentException
dup
ldc "No command specified"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
46: 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;
47: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 48 0 this Lsun/tools/jcmd/Arguments;
0 48 1 args [Ljava/lang/String;
18 48 2 sb Ljava/lang/StringBuilder;
19 44 3 i I
Exception table:
from to target type
12 13 14 Class java.lang.NumberFormatException
26 27 28 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 -p). "
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"