final class jdk.internal.net.http.hpack.IntegerReader
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.hpack.IntegerReader
super_class: java.lang.Object
{
private static final int NEW;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int CONFIGURED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int FIRST_BYTE_READ;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int DONE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private int state;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int N;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int maxValue;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int value;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private long r;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private long b;
descriptor: J
flags: (0x0002) ACC_PRIVATE
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield jdk.internal.net.http.hpack.IntegerReader.state:I
2: aload 0
lconst_1
putfield jdk.internal.net.http.hpack.IntegerReader.b:J
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/hpack/IntegerReader;
public jdk.internal.net.http.hpack.IntegerReader configure(int);
descriptor: (I)Ljdk/internal/net/http/hpack/IntegerReader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
ldc 2147483647
invokevirtual jdk.internal.net.http.hpack.IntegerReader.configure:(II)Ljdk/internal/net/http/hpack/IntegerReader;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/hpack/IntegerReader;
0 1 1 N I
MethodParameters:
Name Flags
N
public jdk.internal.net.http.hpack.IntegerReader configure(int, int);
descriptor: (II)Ljdk/internal/net/http/hpack/IntegerReader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.state:I
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Already configured"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 1
invokestatic jdk.internal.net.http.hpack.IntegerReader.checkPrefix:(I)V
3: iload 2
ifge 7
4: new java.lang.IllegalArgumentException
dup
5: new java.lang.StringBuilder
dup
ldc "maxValue >= 0: maxValue="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
iload 2
putfield jdk.internal.net.http.hpack.IntegerReader.maxValue:I
8: aload 0
iload 1
putfield jdk.internal.net.http.hpack.IntegerReader.N:I
9: aload 0
iconst_1
putfield jdk.internal.net.http.hpack.IntegerReader.state:I
10: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/internal/net/http/hpack/IntegerReader;
0 11 1 N I
0 11 2 maxValue I
MethodParameters:
Name Flags
N
maxValue
public boolean read(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.state:I
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "Configure first"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.state:I
iconst_4
if_icmpne 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.state:I
iconst_1
if_icmpne 15
7: iconst_2
aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.N:I
iconst_1
isub
ishl
iconst_1
isub
istore 2
start local 2 8: aload 1
invokevirtual java.nio.ByteBuffer.get:()B
iload 2
iand
istore 3
start local 3 9: iload 3
iload 2
if_icmpeq 13
10: aload 0
iload 3
putfield jdk.internal.net.http.hpack.IntegerReader.value:I
11: aload 0
iconst_4
putfield jdk.internal.net.http.hpack.IntegerReader.state:I
12: iconst_1
ireturn
13: StackMap locals: int int
StackMap stack:
aload 0
iload 2
i2l
putfield jdk.internal.net.http.hpack.IntegerReader.r:J
14: aload 0
iconst_2
putfield jdk.internal.net.http.hpack.IntegerReader.state:I
end local 3 end local 2 15: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.state:I
iconst_2
if_icmpne 31
16: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 18
17: iconst_0
ireturn
18: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.get:()B
istore 2
start local 2 19: aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.b:J
iload 2
bipush 127
iand
i2l
lmul
lstore 3
start local 3 20: aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.r:J
lload 3
ladd
aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.maxValue:I
i2l
lcmp
ifle 25
21: new java.io.IOException
dup
22: ldc "Integer overflow: maxValue=%,d, value=%,d"
iconst_2
anewarray java.lang.Object
dup
iconst_0
23: aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.maxValue:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.r:J
lload 3
ladd
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
24: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals: int long
StackMap stack:
aload 0
dup
getfield jdk.internal.net.http.hpack.IntegerReader.r:J
lload 3
ladd
putfield jdk.internal.net.http.hpack.IntegerReader.r:J
26: aload 0
dup
getfield jdk.internal.net.http.hpack.IntegerReader.b:J
ldc 128
lmul
putfield jdk.internal.net.http.hpack.IntegerReader.b:J
end local 3 27: sipush 128
iload 2
iand
sipush 128
if_icmpeq 16
28: aload 0
aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.r:J
l2i
putfield jdk.internal.net.http.hpack.IntegerReader.value:I
29: aload 0
iconst_4
putfield jdk.internal.net.http.hpack.IntegerReader.state:I
30: iconst_1
ireturn
end local 2 31: StackMap locals:
StackMap stack:
new java.lang.InternalError
dup
32: bipush 6
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.state:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.N:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.maxValue:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_3
aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.value:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_4
aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.r:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_5
aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.b:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
33: invokestatic java.util.Arrays.toString:([Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Ljdk/internal/net/http/hpack/IntegerReader;
0 34 1 input Ljava/nio/ByteBuffer;
8 15 2 max I
9 15 3 n I
19 31 2 i B
20 27 3 increment J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input
public int get();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.state:I
iconst_4
if_icmpeq 2
1: new java.lang.IllegalStateException
dup
ldc "Has not been fully read yet"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.hpack.IntegerReader.value:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/hpack/IntegerReader;
Exceptions:
throws java.lang.IllegalStateException
private static void checkPrefix(int);
descriptor: (I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: iload 0
iconst_1
if_icmplt 1
iload 0
bipush 8
if_icmple 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "1 <= N <= 8: N= "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 0
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 N I
MethodParameters:
Name Flags
N
public jdk.internal.net.http.hpack.IntegerReader reset();
descriptor: ()Ljdk/internal/net/http/hpack/IntegerReader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
lconst_1
putfield jdk.internal.net.http.hpack.IntegerReader.b:J
1: aload 0
iconst_0
putfield jdk.internal.net.http.hpack.IntegerReader.state:I
2: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/hpack/IntegerReader;
}
SourceFile: "IntegerReader.java"