public class com.sun.tools.example.debug.bdi.Utils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.example.debug.bdi.Utils
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/example/debug/bdi/Utils;
public static java.lang.String getStatus(com.sun.jdi.ThreadReference);
descriptor: (Lcom/sun/jdi/ThreadReference;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
invokeinterface com.sun.jdi.ThreadReference.status:()I
istore 1
start local 1 1: iload 1
tableswitch { // -1 - 4
-1: 2
0: 4
1: 6
2: 8
3: 10
4: 12
default: 14
}
2: StackMap locals: int
StackMap stack:
ldc "unknown status"
astore 2
start local 2 3: goto 15
end local 2 4: StackMap locals:
StackMap stack:
ldc "zombie"
astore 2
start local 2 5: goto 15
end local 2 6: StackMap locals:
StackMap stack:
ldc "running"
astore 2
start local 2 7: goto 15
end local 2 8: StackMap locals:
StackMap stack:
ldc "sleeping"
astore 2
start local 2 9: goto 15
end local 2 10: StackMap locals:
StackMap stack:
ldc "waiting to acquire a monitor lock"
astore 2
start local 2 11: goto 15
end local 2 12: StackMap locals:
StackMap stack:
ldc "waiting on a condition"
astore 2
start local 2 13: goto 15
end local 2 14: StackMap locals:
StackMap stack:
ldc "<invalid thread status>"
astore 2
start local 2 15: StackMap locals: java.lang.String
StackMap stack:
aload 0
invokeinterface com.sun.jdi.ThreadReference.isSuspended:()Z
ifeq 17
16: new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " (suspended)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
17: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 thr Lcom/sun/jdi/ThreadReference;
1 18 1 status I
3 4 2 result Ljava/lang/String;
5 6 2 result Ljava/lang/String;
7 8 2 result Ljava/lang/String;
9 10 2 result Ljava/lang/String;
11 12 2 result Ljava/lang/String;
13 14 2 result Ljava/lang/String;
15 18 2 result Ljava/lang/String;
MethodParameters:
Name Flags
thr
public static java.lang.String description(com.sun.jdi.ObjectReference);
descriptor: (Lcom/sun/jdi/ObjectReference;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokeinterface com.sun.jdi.ObjectReference.referenceType:()Lcom/sun/jdi/ReferenceType;
astore 1
start local 1 1: aload 0
invokeinterface com.sun.jdi.ObjectReference.uniqueID:()J
lstore 2
start local 2 2: aload 1
ifnonnull 4
3: lload 2
invokestatic com.sun.tools.example.debug.bdi.Utils.toHex:(J)Ljava/lang/String;
areturn
4: StackMap locals: com.sun.jdi.ReferenceType long
StackMap stack:
new java.lang.StringBuilder
dup
ldc "("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokeinterface com.sun.jdi.ReferenceType.name:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
lload 2
invokestatic com.sun.tools.example.debug.bdi.Utils.toHex:(J)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 ref Lcom/sun/jdi/ObjectReference;
1 5 1 clazz Lcom/sun/jdi/ReferenceType;
2 5 2 id J
MethodParameters:
Name Flags
ref
public static java.lang.String toHex(long);
descriptor: (J)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=7, args_size=1
start local 0 0: bipush 16
newarray 5
astore 2
start local 2 1: bipush 18
newarray 5
astore 3
start local 3 2: iconst_0
istore 4
start local 4 3: StackMap locals: char[] char[] int
StackMap stack:
lload 0
ldc 15
land
lstore 5
start local 5 4: aload 2
iload 4
iinc 4 1
lload 5
ldc 10
lcmp
ifge 5
ldc 48
lload 5
ladd
goto 6
StackMap locals: long char[] char[] int long
StackMap stack: char[] int
5: ldc 97
lload 5
ladd
ldc 10
lsub
StackMap locals: long char[] char[] int long
StackMap stack: char[] int long
6: l2i
i2c
castore
end local 5 7: lload 0
iconst_4
lushr
dup2
lstore 0
lconst_0
8: lcmp
ifgt 3
9: aload 3
iconst_0
bipush 48
castore
10: aload 3
iconst_1
bipush 120
castore
11: iconst_2
istore 5
start local 5 12: goto 14
13: StackMap locals: long char[] char[] int int
StackMap stack:
aload 3
iload 5
iinc 5 1
aload 2
iload 4
caload
castore
14: StackMap locals:
StackMap stack:
iinc 4 -1
iload 4
ifge 13
15: new java.lang.String
dup
aload 3
iconst_0
iload 5
invokespecial java.lang.String.<init>:([CII)V
areturn
end local 5 end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 n J
1 16 2 s1 [C
2 16 3 s2 [C
3 16 4 i I
4 7 5 d J
12 16 5 j I
MethodParameters:
Name Flags
n
public static long fromHex(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
ldc "0x"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
goto 3
StackMap locals:
StackMap stack:
2: aload 0
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
3: StackMap locals:
StackMap stack: java.lang.String
astore 1
start local 1 4: aload 0
invokevirtual java.lang.String.length:()I
ifne 6
5: new java.lang.NumberFormatException
dup
invokespecial java.lang.NumberFormatException.<init>:()V
athrow
6: StackMap locals: java.lang.String
StackMap stack:
lconst_0
lstore 2
start local 2 7: iconst_0
istore 4
start local 4 8: goto 18
9: StackMap locals: long int
StackMap stack:
aload 1
iload 4
invokevirtual java.lang.String.charAt:(I)C
istore 5
start local 5 10: iload 5
bipush 48
if_icmplt 13
iload 5
bipush 57
if_icmpgt 13
11: lload 2
ldc 16
lmul
iload 5
bipush 48
isub
i2l
ladd
lstore 2
12: goto 17
StackMap locals: int
StackMap stack:
13: iload 5
bipush 97
if_icmplt 16
iload 5
bipush 102
if_icmpgt 16
14: lload 2
ldc 16
lmul
iload 5
bipush 97
isub
bipush 10
iadd
i2l
ladd
lstore 2
15: goto 17
16: StackMap locals:
StackMap stack:
new java.lang.NumberFormatException
dup
invokespecial java.lang.NumberFormatException.<init>:()V
athrow
end local 5 17: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
18: iload 4
aload 1
invokevirtual java.lang.String.length:()I
if_icmplt 9
end local 4 19: lload 2
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 hexStr Ljava/lang/String;
4 20 1 str Ljava/lang/String;
7 20 2 ret J
8 19 4 i I
10 17 5 c I
MethodParameters:
Name Flags
hexStr
public static java.lang.String locationString(com.sun.jdi.Location);
descriptor: (Lcom/sun/jdi/Location;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokeinterface com.sun.jdi.Location.declaringType:()Lcom/sun/jdi/ReferenceType;
invokeinterface com.sun.jdi.ReferenceType.name:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokeinterface com.sun.jdi.Location.method:()Lcom/sun/jdi/Method;
invokeinterface com.sun.jdi.Method.name:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "(), line="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: aload 0
invokeinterface com.sun.jdi.Location.lineNumber:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 loc Lcom/sun/jdi/Location;
MethodParameters:
Name Flags
loc
public static boolean isValidMethodName(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.sun.tools.example.debug.bdi.Utils.isJavaIdentifier:(Ljava/lang/String;)Z
ifne 4
1: aload 0
ldc "<init>"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 4
2: aload 0
ldc "<clinit>"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 4
3: iconst_0
ireturn
StackMap locals:
StackMap stack:
4: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 s Ljava/lang/String;
MethodParameters:
Name Flags
s
public static boolean isJavaIdentifier(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual java.lang.String.codePointAt:(I)I
istore 1
start local 1 3: iload 1
invokestatic java.lang.Character.isJavaIdentifierStart:(I)Z
ifne 5
4: iconst_0
ireturn
5: StackMap locals: int
StackMap stack:
iload 1
invokestatic java.lang.Character.charCount:(I)I
istore 2
start local 2 6: goto 11
7: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.codePointAt:(I)I
istore 1
8: iload 1
invokestatic java.lang.Character.isJavaIdentifierPart:(I)Z
ifne 10
9: iconst_0
ireturn
10: StackMap locals:
StackMap stack:
iload 2
iload 1
invokestatic java.lang.Character.charCount:(I)I
iadd
istore 2
StackMap locals:
StackMap stack:
11: iload 2
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 7
end local 2 12: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 s Ljava/lang/String;
3 13 1 cp I
6 12 2 i I
MethodParameters:
Name Flags
s
}
SourceFile: "Utils.java"