public class com.sun.tools.hat.internal.util.Misc
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.hat.internal.util.Misc
super_class: java.lang.Object
{
private static char[] digits;
descriptor: [C
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: bipush 16
newarray 5
dup
iconst_0
bipush 48
castore
dup
iconst_1
bipush 49
castore
dup
iconst_2
bipush 50
castore
dup
iconst_3
bipush 51
castore
dup
iconst_4
bipush 52
castore
dup
iconst_5
bipush 53
castore
dup
bipush 6
bipush 54
castore
dup
bipush 7
bipush 55
castore
dup
bipush 8
1: bipush 56
castore
dup
bipush 9
bipush 57
castore
dup
bipush 10
bipush 97
castore
dup
bipush 11
bipush 98
castore
dup
bipush 12
bipush 99
castore
dup
bipush 13
bipush 100
castore
dup
bipush 14
bipush 101
castore
dup
bipush 15
bipush 102
castore
2: putstatic com.sun.tools.hat.internal.util.Misc.digits:[C
3: return
LocalVariableTable:
Start End Slot Name Signature
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/hat/internal/util/Misc;
public static final java.lang.String toHex(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=5, locals=4, args_size=1
start local 0 0: bipush 8
newarray 5
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: bipush 28
istore 3
start local 3 3: goto 6
4: StackMap locals: char[] int int
StackMap stack:
aload 1
iload 2
iinc 2 1
getstatic com.sun.tools.hat.internal.util.Misc.digits:[C
iload 0
iload 3
ishr
bipush 15
iand
caload
castore
5: iinc 3 -4
StackMap locals:
StackMap stack:
6: iload 3
ifge 4
end local 3 7: new java.lang.StringBuilder
dup
ldc "0x"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
new java.lang.String
dup
aload 1
invokespecial java.lang.String.<init>:([C)V
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 8 0 addr I
1 8 1 buf [C
2 8 2 i I
3 7 3 s I
MethodParameters:
Name Flags
addr
public static final java.lang.String toHex(long);
descriptor: (J)Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "0x"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 0
invokestatic java.lang.Long.toHexString:(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 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 addr J
MethodParameters:
Name Flags
addr
public static final long parseHex(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Code:
stack=4, locals=5, args_size=1
start local 0 0: lconst_0
lstore 1
start local 1 1: aload 0
invokevirtual java.lang.String.length:()I
iconst_2
if_icmplt 3
aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 48
if_icmpne 3
2: aload 0
iconst_1
invokevirtual java.lang.String.charAt:(I)C
bipush 120
if_icmpeq 4
3: StackMap locals: long
StackMap stack:
ldc -1
lreturn
4: StackMap locals:
StackMap stack:
iconst_2
istore 3
start local 3 5: goto 21
6: StackMap locals: int
StackMap stack:
lload 1
ldc 16
lmul
lstore 1
7: aload 0
iload 3
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 8: iload 4
bipush 48
if_icmplt 11
iload 4
bipush 57
if_icmpgt 11
9: lload 1
iload 4
bipush 48
isub
i2l
ladd
lstore 1
10: goto 20
StackMap locals: int
StackMap stack:
11: iload 4
bipush 97
if_icmplt 14
iload 4
bipush 102
if_icmpgt 14
12: lload 1
iload 4
bipush 97
isub
bipush 10
iadd
i2l
ladd
lstore 1
13: goto 20
StackMap locals:
StackMap stack:
14: iload 4
bipush 65
if_icmplt 17
iload 4
bipush 70
if_icmpgt 17
15: lload 1
iload 4
bipush 65
isub
bipush 10
iadd
i2l
ladd
lstore 1
16: goto 20
17: StackMap locals:
StackMap stack:
new java.lang.NumberFormatException
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
iload 4
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
18: ldc " is not a valid hex digit"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokespecial java.lang.NumberFormatException.<init>:(Ljava/lang/String;)V
athrow
end local 4 20: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
21: iload 3
aload 0
invokevirtual java.lang.String.length:()I
if_icmplt 6
end local 3 22: lload 1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 value Ljava/lang/String;
1 23 1 result J
5 22 3 i I
8 20 4 ch C
MethodParameters:
Name Flags
value
public static java.lang.String encodeHtml(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
istore 1
start local 1 1: new java.lang.StringBuffer
dup
invokespecial java.lang.StringBuffer.<init>:()V
astore 2
start local 2 2: iconst_0
istore 3
start local 3 3: goto 29
4: StackMap locals: int java.lang.StringBuffer int
StackMap stack:
aload 0
iload 3
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 5: iload 4
bipush 60
if_icmpne 8
6: aload 2
ldc "<"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
7: goto 28
StackMap locals: int
StackMap stack:
8: iload 4
bipush 62
if_icmpne 11
9: aload 2
ldc ">"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
10: goto 28
StackMap locals:
StackMap stack:
11: iload 4
bipush 34
if_icmpne 14
12: aload 2
ldc """
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
13: goto 28
StackMap locals:
StackMap stack:
14: iload 4
bipush 39
if_icmpne 17
15: aload 2
ldc "'"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
16: goto 28
StackMap locals:
StackMap stack:
17: iload 4
bipush 38
if_icmpne 20
18: aload 2
ldc "&"
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
19: goto 28
StackMap locals:
StackMap stack:
20: iload 4
bipush 32
if_icmpge 23
21: aload 2
new java.lang.StringBuilder
dup
ldc "&#"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 4
invokestatic java.lang.Integer.toString:(I)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;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
22: goto 28
23: StackMap locals:
StackMap stack:
iload 4
ldc 65535
iand
istore 5
start local 5 24: iload 5
bipush 127
if_icmple 27
25: aload 2
new java.lang.StringBuilder
dup
ldc "&#"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 5
invokestatic java.lang.Integer.toString:(I)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;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuffer.append:(Ljava/lang/String;)Ljava/lang/StringBuffer;
pop
26: goto 28
27: StackMap locals: int
StackMap stack:
aload 2
iload 4
invokevirtual java.lang.StringBuffer.append:(C)Ljava/lang/StringBuffer;
pop
end local 5 end local 4 28: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
29: iload 3
iload 1
if_icmplt 4
end local 3 30: aload 2
invokevirtual java.lang.StringBuffer.toString:()Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 str Ljava/lang/String;
1 31 1 len I
2 31 2 buf Ljava/lang/StringBuffer;
3 30 3 i I
5 28 4 ch C
24 28 5 c I
MethodParameters:
Name Flags
str
}
SourceFile: "Misc.java"