public class sun.tools.common.ProcessArgumentMatcher
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.tools.common.ProcessArgumentMatcher
super_class: java.lang.Object
{
private java.lang.String matchClass;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String singlePid;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnull 2
aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 3
2: StackMap locals: sun.tools.common.ProcessArgumentMatcher java.lang.String
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "Pid string is invalid"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 45
if_icmpne 5
4: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unrecognized "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 1
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
lstore 2
start local 2 6: lload 2
lconst_0
lcmp
ifeq 11
7: aload 0
lload 2
invokestatic java.lang.String.valueOf:(J)Ljava/lang/String;
putfield sun.tools.common.ProcessArgumentMatcher.singlePid:Ljava/lang/String;
end local 2 8: goto 11
StackMap locals:
StackMap stack: java.lang.NumberFormatException
9: pop
10: aload 0
aload 1
putfield sun.tools.common.ProcessArgumentMatcher.matchClass:Ljava/lang/String;
11: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/tools/common/ProcessArgumentMatcher;
0 12 1 pidArg Ljava/lang/String;
6 8 2 pid J
Exception table:
from to target type
5 8 9 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
pidArg
private static java.lang.String getExcludeStringFrom(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: ldc ""
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Class.getModule:()Ljava/lang/Module;
astore 1
start local 1 3: aload 1
invokevirtual java.lang.Module.isNamed:()Z
ifeq 5
4: new java.lang.StringBuilder
dup
aload 1
invokevirtual java.lang.Module.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
5: StackMap locals: java.lang.Module
StackMap stack:
aload 0
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 excludeClass Ljava/lang/Class<*>;
3 6 1 m Ljava/lang/Module;
Signature: (Ljava/lang/Class<*>;)Ljava/lang/String;
MethodParameters:
Name Flags
excludeClass
private static boolean check(com.sun.tools.attach.VirtualMachineDescriptor, java.lang.String, java.lang.String);
descriptor: (Lcom/sun/tools/attach/VirtualMachineDescriptor;Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual com.sun.tools.attach.VirtualMachineDescriptor.id:()Ljava/lang/String;
invokestatic sun.tools.common.ProcessHelper.getMainClass:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: aload 3
ifnonnull 12
2: new sun.jvmstat.monitor.VmIdentifier
dup
aload 0
invokevirtual com.sun.tools.attach.VirtualMachineDescriptor.id:()Ljava/lang/String;
invokespecial sun.jvmstat.monitor.VmIdentifier.<init>:(Ljava/lang/String;)V
astore 4
start local 4 3: aload 4
invokestatic sun.jvmstat.monitor.MonitoredHost.getMonitoredHost:(Lsun/jvmstat/monitor/VmIdentifier;)Lsun/jvmstat/monitor/MonitoredHost;
astore 5
start local 5 4: aload 5
aload 4
iconst_m1
invokevirtual sun.jvmstat.monitor.MonitoredHost.getMonitoredVm:(Lsun/jvmstat/monitor/VmIdentifier;I)Lsun/jvmstat/monitor/MonitoredVm;
astore 6
start local 6 5: aload 6
iconst_1
invokestatic sun.jvmstat.monitor.MonitoredVmUtil.mainClass:(Lsun/jvmstat/monitor/MonitoredVm;Z)Ljava/lang/String;
astore 3
6: aload 5
aload 6
invokevirtual sun.jvmstat.monitor.MonitoredHost.detach:(Lsun/jvmstat/monitor/MonitoredVm;)V
end local 6 end local 5 end local 4 7: goto 12
StackMap locals: com.sun.tools.attach.VirtualMachineDescriptor java.lang.String java.lang.String java.lang.String
StackMap stack: java.lang.NullPointerException
8: pop
9: iconst_0
ireturn
10: StackMap locals:
StackMap stack: java.lang.Exception
pop
11: iconst_0
ireturn
12: StackMap locals:
StackMap stack:
aload 1
ifnull 14
aload 3
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 14
13: iconst_0
ireturn
14: StackMap locals:
StackMap stack:
aload 2
ifnull 16
aload 3
aload 2
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iconst_m1
if_icmpne 16
15: iconst_0
ireturn
16: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 vmd Lcom/sun/tools/attach/VirtualMachineDescriptor;
0 17 1 excludeClass Ljava/lang/String;
0 17 2 partialMatch Ljava/lang/String;
1 17 3 mainClass Ljava/lang/String;
3 7 4 vmId Lsun/jvmstat/monitor/VmIdentifier;
4 7 5 monitoredHost Lsun/jvmstat/monitor/MonitoredHost;
5 7 6 monitoredVm Lsun/jvmstat/monitor/MonitoredVm;
Exception table:
from to target type
2 7 8 Class java.lang.NullPointerException
2 7 10 Class sun.jvmstat.monitor.MonitorException
2 7 10 Class java.net.URISyntaxException
MethodParameters:
Name Flags
vmd
excludeClass
partialMatch
private static java.util.Collection<com.sun.tools.attach.VirtualMachineDescriptor> getSingleVMD(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Collection;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: invokestatic com.sun.tools.attach.VirtualMachine.list:()Ljava/util/List;
astore 2
start local 2 2: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 7
StackMap locals: java.lang.String java.util.Collection java.util.List top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.tools.attach.VirtualMachineDescriptor
astore 3
start local 3 4: aload 3
aconst_null
aconst_null
invokestatic sun.tools.common.ProcessArgumentMatcher.check:(Lcom/sun/tools/attach/VirtualMachineDescriptor;Ljava/lang/String;Ljava/lang/String;)Z
ifeq 7
5: aload 0
aload 3
invokevirtual com.sun.tools.attach.VirtualMachineDescriptor.id:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
6: aload 1
aload 3
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
end local 3 7: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 pid Ljava/lang/String;
1 9 1 vids Ljava/util/Collection<Lcom/sun/tools/attach/VirtualMachineDescriptor;>;
2 9 2 vmds Ljava/util/List<Lcom/sun/tools/attach/VirtualMachineDescriptor;>;
4 7 3 vmd Lcom/sun/tools/attach/VirtualMachineDescriptor;
Signature: (Ljava/lang/String;)Ljava/util/Collection<Lcom/sun/tools/attach/VirtualMachineDescriptor;>;
MethodParameters:
Name Flags
pid
private static java.util.Collection<com.sun.tools.attach.VirtualMachineDescriptor> getVMDs(java.lang.Class<?>, java.lang.String);
descriptor: (Ljava/lang/Class;Ljava/lang/String;)Ljava/util/Collection;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
invokestatic sun.tools.common.ProcessArgumentMatcher.getExcludeStringFrom:(Ljava/lang/Class;)Ljava/lang/String;
astore 2
start local 2 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 2: invokestatic com.sun.tools.attach.VirtualMachine.list:()Ljava/util/List;
astore 4
start local 4 3: aload 4
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 7
StackMap locals: java.lang.Class java.lang.String java.lang.String java.util.Collection java.util.List top java.util.Iterator
StackMap stack:
4: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.sun.tools.attach.VirtualMachineDescriptor
astore 5
start local 5 5: aload 5
aload 2
aload 1
invokestatic sun.tools.common.ProcessArgumentMatcher.check:(Lcom/sun/tools/attach/VirtualMachineDescriptor;Ljava/lang/String;Ljava/lang/String;)Z
ifeq 7
6: aload 3
aload 5
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
end local 5 7: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
8: aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 excludeClass Ljava/lang/Class<*>;
0 9 1 partialMatch Ljava/lang/String;
1 9 2 excludeCls Ljava/lang/String;
2 9 3 vids Ljava/util/Collection<Lcom/sun/tools/attach/VirtualMachineDescriptor;>;
3 9 4 vmds Ljava/util/List<Lcom/sun/tools/attach/VirtualMachineDescriptor;>;
5 7 5 vmd Lcom/sun/tools/attach/VirtualMachineDescriptor;
Signature: (Ljava/lang/Class<*>;Ljava/lang/String;)Ljava/util/Collection<Lcom/sun/tools/attach/VirtualMachineDescriptor;>;
MethodParameters:
Name Flags
excludeClass
partialMatch
public java.util.Collection<com.sun.tools.attach.VirtualMachineDescriptor> getVirtualMachineDescriptors();
descriptor: ()Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.tools.common.ProcessArgumentMatcher.singlePid:Ljava/lang/String;
ifnull 2
1: aload 0
getfield sun.tools.common.ProcessArgumentMatcher.singlePid:Ljava/lang/String;
invokestatic sun.tools.common.ProcessArgumentMatcher.getSingleVMD:(Ljava/lang/String;)Ljava/util/Collection;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
aload 0
getfield sun.tools.common.ProcessArgumentMatcher.matchClass:Ljava/lang/String;
invokestatic sun.tools.common.ProcessArgumentMatcher.getVMDs:(Ljava/lang/Class;Ljava/lang/String;)Ljava/util/Collection;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/tools/common/ProcessArgumentMatcher;
Signature: ()Ljava/util/Collection<Lcom/sun/tools/attach/VirtualMachineDescriptor;>;
public java.util.Collection<java.lang.String> getVirtualMachinePids(java.lang.Class<?>);
descriptor: (Ljava/lang/Class;)Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.tools.common.ProcessArgumentMatcher.singlePid:Ljava/lang/String;
ifnull 2
1: aload 0
getfield sun.tools.common.ProcessArgumentMatcher.singlePid:Ljava/lang/String;
invokestatic java.util.List.of:(Ljava/lang/Object;)Ljava/util/List;
areturn
2: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield sun.tools.common.ProcessArgumentMatcher.matchClass:Ljava/lang/String;
invokestatic sun.tools.common.ProcessArgumentMatcher.getVMDs:(Ljava/lang/Class;Ljava/lang/String;)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;
sun/tools/common/ProcessArgumentMatcher.lambda$0(Lcom/sun/tools/attach/VirtualMachineDescriptor;)Ljava/lang/String; (6)
(Lcom/sun/tools/attach/VirtualMachineDescriptor;)Ljava/lang/String;
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
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/tools/common/ProcessArgumentMatcher;
0 3 1 excludeClass Ljava/lang/Class<*>;
Signature: (Ljava/lang/Class<*>;)Ljava/util/Collection<Ljava/lang/String;>;
MethodParameters:
Name Flags
excludeClass
private static java.lang.String lambda$0(com.sun.tools.attach.VirtualMachineDescriptor);
descriptor: (Lcom/sun/tools/attach/VirtualMachineDescriptor;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.sun.tools.attach.VirtualMachineDescriptor.id:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 x Lcom/sun/tools/attach/VirtualMachineDescriptor;
}
SourceFile: "ProcessArgumentMatcher.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles