public final class io.vertx.redis.client.impl.RESPParser implements io.vertx.core.Handler<io.vertx.core.buffer.Buffer>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.vertx.redis.client.impl.RESPParser
super_class: java.lang.Object
{
private static final long MAX_STRING_LENGTH;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 536870912
private final io.vertx.redis.client.impl.ParserHandler handler;
descriptor: Lio/vertx/redis/client/impl/ParserHandler;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.redis.client.impl.ReadableBuffer buffer;
descriptor: Lio/vertx/redis/client/impl/ReadableBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.redis.client.impl.ArrayStack stack;
descriptor: Lio/vertx/redis/client/impl/ArrayStack;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean eol;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int bytesNeeded;
descriptor: I
flags: (0x0002) ACC_PRIVATE
void <init>(io.vertx.redis.client.impl.ParserHandler, int);
descriptor: (Lio/vertx/redis/client/impl/ParserHandler;I)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new io.vertx.redis.client.impl.ReadableBuffer
dup
invokespecial io.vertx.redis.client.impl.ReadableBuffer.<init>:()V
putfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
2: aload 0
iconst_1
putfield io.vertx.redis.client.impl.RESPParser.eol:Z
3: aload 0
iconst_0
putfield io.vertx.redis.client.impl.RESPParser.bytesNeeded:I
4: aload 0
aload 1
putfield io.vertx.redis.client.impl.RESPParser.handler:Lio/vertx/redis/client/impl/ParserHandler;
5: aload 0
new io.vertx.redis.client.impl.ArrayStack
dup
iload 2
invokespecial io.vertx.redis.client.impl.ArrayStack.<init>:(I)V
putfield io.vertx.redis.client.impl.RESPParser.stack:Lio/vertx/redis/client/impl/ArrayStack;
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/vertx/redis/client/impl/RESPParser;
0 7 1 handler Lio/vertx/redis/client/impl/ParserHandler;
0 7 2 maxStack I
MethodParameters:
Name Flags
handler
maxStack
public void handle(io.vertx.core.buffer.Buffer);
descriptor: (Lio/vertx/core/buffer/Buffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
aload 1
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.append:(Lio/vertx/core/buffer/Buffer;)V
1: goto 67
2: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.mark:()V
3: aload 0
getfield io.vertx.redis.client.impl.RESPParser.eol:Z
ifeq 59
4: aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.readByte:()B
istore 2
start local 2 5: aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.offset:()I
istore 3
start local 3 6: aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.findLineEnd:()I
istore 4
start local 4 7: iload 4
iconst_m1
if_icmpne 10
8: aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.reset:()V
9: goto 70
10: StackMap locals: int int int
StackMap stack:
iload 2
bipush 13
if_icmpne 14
iload 3
iload 4
if_icmpne 14
11: aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
iconst_1
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.skip:(I)Z
ifne 67
12: aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.reset:()V
13: goto 70
14: StackMap locals:
StackMap stack:
iload 2
lookupswitch { // 5
36: 23
42: 23
43: 15
45: 21
58: 23
default: 56
}
15: StackMap locals:
StackMap stack:
iload 4
iload 3
isub
istore 5
start local 5 16: iload 5
iconst_2
if_icmpne 19
aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
iload 3
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.getByte:(I)B
bipush 79
if_icmpne 19
aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
iload 3
iconst_1
iadd
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.getByte:(I)B
bipush 75
if_icmpne 19
17: aload 0
getstatic io.vertx.redis.client.impl.types.SimpleStringType.OK:Lio/vertx/redis/client/impl/types/SimpleStringType;
invokevirtual io.vertx.redis.client.impl.RESPParser.handleResponse:(Lio/vertx/redis/client/Response;)V
18: goto 67
19: StackMap locals: int
StackMap stack:
aload 0
aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
iload 4
getstatic java.nio.charset.StandardCharsets.ISO_8859_1:Ljava/nio/charset/Charset;
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.readLine:(ILjava/nio/charset/Charset;)Ljava/lang/String;
invokestatic io.vertx.redis.client.impl.types.SimpleStringType.create:(Ljava/lang/String;)Lio/vertx/redis/client/impl/types/SimpleStringType;
invokevirtual io.vertx.redis.client.impl.RESPParser.handleResponse:(Lio/vertx/redis/client/Response;)V
20: goto 67
end local 5 21: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
iload 4
getstatic java.nio.charset.StandardCharsets.ISO_8859_1:Ljava/nio/charset/Charset;
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.readLine:(ILjava/nio/charset/Charset;)Ljava/lang/String;
invokestatic io.vertx.redis.client.impl.types.ErrorType.create:(Ljava/lang/String;)Lio/vertx/redis/client/impl/types/ErrorType;
invokevirtual io.vertx.redis.client.impl.RESPParser.handleResponse:(Lio/vertx/redis/client/Response;)V
22: goto 67
23: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
iload 4
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.readLong:(I)J
lstore 6
start local 6 24: goto 28
end local 6 StackMap locals:
StackMap stack: java.lang.RuntimeException
25: astore 8
start local 8 26: aload 0
getfield io.vertx.redis.client.impl.RESPParser.handler:Lio/vertx/redis/client/impl/ParserHandler;
aload 8
invokeinterface io.vertx.redis.client.impl.ParserHandler.fatal:(Ljava/lang/Throwable;)V
27: return
end local 8 start local 6 28: StackMap locals: io.vertx.redis.client.impl.RESPParser io.vertx.core.buffer.Buffer int int int top long
StackMap stack:
iload 2
lookupswitch { // 3
36: 31
42: 43
58: 29
default: 55
}
29: StackMap locals:
StackMap stack:
aload 0
lload 6
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokestatic io.vertx.redis.client.impl.types.IntegerType.create:(Ljava/lang/Long;)Lio/vertx/redis/client/impl/types/IntegerType;
invokevirtual io.vertx.redis.client.impl.RESPParser.handleResponse:(Lio/vertx/redis/client/Response;)V
30: goto 67
31: StackMap locals:
StackMap stack:
lload 6
ldc 536870912
lcmp
ifle 34
32: aload 0
getfield io.vertx.redis.client.impl.RESPParser.handler:Lio/vertx/redis/client/impl/ParserHandler;
ldc "ILLEGAL_STATE Redis Bulk cannot be larger than 512MB"
invokestatic io.vertx.redis.client.impl.types.ErrorType.create:(Ljava/lang/String;)Lio/vertx/redis/client/impl/types/ErrorType;
invokeinterface io.vertx.redis.client.impl.ParserHandler.fatal:(Ljava/lang/Throwable;)V
33: return
34: StackMap locals:
StackMap stack:
lload 6
lconst_0
lcmp
ifge 40
35: lload 6
ldc -1
lcmp
ifne 38
36: aload 0
aconst_null
invokevirtual io.vertx.redis.client.impl.RESPParser.handleResponse:(Lio/vertx/redis/client/Response;)V
37: goto 67
38: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.redis.client.impl.RESPParser.handler:Lio/vertx/redis/client/impl/ParserHandler;
ldc "ILLEGAL_STATE Redis Bulk cannot have negative length"
invokestatic io.vertx.redis.client.impl.types.ErrorType.create:(Ljava/lang/String;)Lio/vertx/redis/client/impl/types/ErrorType;
invokeinterface io.vertx.redis.client.impl.ParserHandler.fatal:(Ljava/lang/Throwable;)V
39: return
40: StackMap locals:
StackMap stack:
aload 0
lload 6
l2i
putfield io.vertx.redis.client.impl.RESPParser.bytesNeeded:I
41: aload 0
iconst_0
putfield io.vertx.redis.client.impl.RESPParser.eol:Z
42: goto 67
43: StackMap locals:
StackMap stack:
lload 6
ldc 2147483647
lcmp
ifle 46
44: aload 0
getfield io.vertx.redis.client.impl.RESPParser.handler:Lio/vertx/redis/client/impl/ParserHandler;
ldc "ILLEGAL_STATE Redis Multi cannot be larger 2GB elements"
invokestatic io.vertx.redis.client.impl.types.ErrorType.create:(Ljava/lang/String;)Lio/vertx/redis/client/impl/types/ErrorType;
invokeinterface io.vertx.redis.client.impl.ParserHandler.fatal:(Ljava/lang/Throwable;)V
45: return
46: StackMap locals:
StackMap stack:
lload 6
lconst_0
lcmp
ifge 51
47: lload 6
ldc -1
lcmp
ifne 50
48: aload 0
aconst_null
invokevirtual io.vertx.redis.client.impl.RESPParser.handleResponse:(Lio/vertx/redis/client/Response;)V
49: goto 67
50: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.redis.client.impl.RESPParser.handler:Lio/vertx/redis/client/impl/ParserHandler;
ldc "ILLEGAL_STATE Redis Multi cannot have negative length"
invokestatic io.vertx.redis.client.impl.types.ErrorType.create:(Ljava/lang/String;)Lio/vertx/redis/client/impl/types/ErrorType;
invokeinterface io.vertx.redis.client.impl.ParserHandler.fatal:(Ljava/lang/Throwable;)V
51: StackMap locals:
StackMap stack:
lload 6
lconst_0
lcmp
ifne 54
52: aload 0
getstatic io.vertx.redis.client.impl.types.MultiType.EMPTY:Lio/vertx/redis/client/impl/types/MultiType;
invokevirtual io.vertx.redis.client.impl.RESPParser.handleResponse:(Lio/vertx/redis/client/Response;)V
53: goto 67
54: StackMap locals:
StackMap stack:
aload 0
lload 6
l2i
invokestatic io.vertx.redis.client.impl.types.MultiType.create:(I)Lio/vertx/redis/client/impl/types/MultiType;
iconst_1
invokevirtual io.vertx.redis.client.impl.RESPParser.handleResponse:(Lio/vertx/redis/client/Response;Z)V
55: StackMap locals:
StackMap stack:
goto 67
end local 6 56: StackMap locals: io.vertx.redis.client.impl.RESPParser io.vertx.core.buffer.Buffer int int int
StackMap stack:
aload 0
getfield io.vertx.redis.client.impl.RESPParser.handler:Lio/vertx/redis/client/impl/ParserHandler;
new java.lang.StringBuilder
dup
ldc "ILLEGAL_STATE Unknown RESP type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
i2c
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic io.vertx.redis.client.impl.types.ErrorType.create:(Ljava/lang/String;)Lio/vertx/redis/client/impl/types/ErrorType;
invokeinterface io.vertx.redis.client.impl.ParserHandler.fatal:(Ljava/lang/Throwable;)V
57: return
end local 4 end local 3 end local 2 58: StackMap locals:
StackMap stack:
goto 67
59: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.redis.client.impl.RESPParser.bytesNeeded:I
ifne 62
60: aload 0
getstatic io.vertx.redis.client.impl.types.BulkType.EMPTY:Lio/vertx/redis/client/impl/types/BulkType;
invokevirtual io.vertx.redis.client.impl.RESPParser.handleResponse:(Lio/vertx/redis/client/Response;)V
61: goto 63
62: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
aload 0
getfield io.vertx.redis.client.impl.RESPParser.bytesNeeded:I
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.readBytes:(I)Lio/vertx/core/buffer/Buffer;
invokestatic io.vertx.redis.client.impl.types.BulkType.create:(Lio/vertx/core/buffer/Buffer;)Lio/vertx/redis/client/impl/types/BulkType;
invokevirtual io.vertx.redis.client.impl.RESPParser.handleResponse:(Lio/vertx/redis/client/Response;)V
63: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
iconst_2
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.skip:(I)Z
ifeq 66
64: aload 0
iconst_1
putfield io.vertx.redis.client.impl.RESPParser.eol:Z
65: goto 67
66: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.reset:()V
67: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.redis.client.impl.RESPParser.buffer:Lio/vertx/redis/client/impl/ReadableBuffer;
invokevirtual io.vertx.redis.client.impl.ReadableBuffer.readableBytes:()I
aload 0
getfield io.vertx.redis.client.impl.RESPParser.eol:Z
ifeq 68
iconst_3
goto 69
StackMap locals:
StackMap stack: int
68: aload 0
getfield io.vertx.redis.client.impl.RESPParser.bytesNeeded:I
iconst_2
iadd
StackMap locals: io.vertx.redis.client.impl.RESPParser io.vertx.core.buffer.Buffer
StackMap stack: int int
69: if_icmpge 2
70: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 71 0 this Lio/vertx/redis/client/impl/RESPParser;
0 71 1 chunk Lio/vertx/core/buffer/Buffer;
5 58 2 type B
6 58 3 start I
7 58 4 eol I
16 21 5 length I
24 25 6 integer J
28 56 6 integer J
26 28 8 e Ljava/lang/RuntimeException;
Exception table:
from to target type
23 24 25 Class java.lang.RuntimeException
MethodParameters:
Name Flags
chunk
private void handleResponse(io.vertx.redis.client.Response);
descriptor: (Lio/vertx/redis/client/Response;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokevirtual io.vertx.redis.client.impl.RESPParser.handleResponse:(Lio/vertx/redis/client/Response;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/redis/client/impl/RESPParser;
0 2 1 response Lio/vertx/redis/client/Response;
MethodParameters:
Name Flags
response
private void handleResponse(io.vertx.redis.client.Response, boolean);
descriptor: (Lio/vertx/redis/client/Response;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.vertx.redis.client.impl.RESPParser.stack:Lio/vertx/redis/client/impl/ArrayStack;
invokevirtual io.vertx.redis.client.impl.ArrayStack.peek:()Ljava/lang/Object;
checkcast io.vertx.redis.client.impl.types.MultiType
astore 3
start local 3 1: aload 3
ifnull 18
2: aload 3
aload 1
invokevirtual io.vertx.redis.client.impl.types.MultiType.add:(Lio/vertx/redis/client/Response;)V
3: iload 2
ifeq 6
4: aload 0
getfield io.vertx.redis.client.impl.RESPParser.stack:Lio/vertx/redis/client/impl/ArrayStack;
aload 1
invokevirtual io.vertx.redis.client.impl.ArrayStack.push:(Ljava/lang/Object;)V
5: goto 22
6: StackMap locals: io.vertx.redis.client.impl.types.MultiType
StackMap stack:
aload 3
astore 4
start local 4 7: goto 16
8: StackMap locals: io.vertx.redis.client.impl.types.MultiType
StackMap stack:
aload 0
getfield io.vertx.redis.client.impl.RESPParser.stack:Lio/vertx/redis/client/impl/ArrayStack;
invokevirtual io.vertx.redis.client.impl.ArrayStack.pop:()Ljava/lang/Object;
pop
9: aload 0
getfield io.vertx.redis.client.impl.RESPParser.stack:Lio/vertx/redis/client/impl/ArrayStack;
invokevirtual io.vertx.redis.client.impl.ArrayStack.empty:()Z
ifeq 12
10: aload 0
getfield io.vertx.redis.client.impl.RESPParser.handler:Lio/vertx/redis/client/impl/ParserHandler;
aload 4
invokeinterface io.vertx.redis.client.impl.ParserHandler.handle:(Lio/vertx/redis/client/Response;)V
11: return
12: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.redis.client.impl.RESPParser.stack:Lio/vertx/redis/client/impl/ArrayStack;
invokevirtual io.vertx.redis.client.impl.ArrayStack.peek:()Ljava/lang/Object;
checkcast io.vertx.redis.client.impl.types.MultiType
astore 4
13: aload 4
ifnonnull 16
14: aload 0
getfield io.vertx.redis.client.impl.RESPParser.handler:Lio/vertx/redis/client/impl/ParserHandler;
ldc "ILLEGAL_STATE Multi can't be null"
invokestatic io.vertx.redis.client.impl.types.ErrorType.create:(Ljava/lang/String;)Lio/vertx/redis/client/impl/types/ErrorType;
invokeinterface io.vertx.redis.client.impl.ParserHandler.fatal:(Ljava/lang/Throwable;)V
15: return
16: StackMap locals:
StackMap stack:
aload 4
invokevirtual io.vertx.redis.client.impl.types.MultiType.complete:()Z
ifne 8
end local 4 17: goto 22
18: StackMap locals:
StackMap stack:
iload 2
ifeq 21
19: aload 0
getfield io.vertx.redis.client.impl.RESPParser.stack:Lio/vertx/redis/client/impl/ArrayStack;
aload 1
invokevirtual io.vertx.redis.client.impl.ArrayStack.push:(Ljava/lang/Object;)V
20: goto 22
21: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.redis.client.impl.RESPParser.handler:Lio/vertx/redis/client/impl/ParserHandler;
aload 1
invokeinterface io.vertx.redis.client.impl.ParserHandler.handle:(Lio/vertx/redis/client/Response;)V
22: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lio/vertx/redis/client/impl/RESPParser;
0 23 1 response Lio/vertx/redis/client/Response;
0 23 2 push Z
1 23 3 multi Lio/vertx/redis/client/impl/types/MultiType;
7 17 4 m Lio/vertx/redis/client/impl/types/MultiType;
MethodParameters:
Name Flags
response
push
public void handle(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast io.vertx.core.buffer.Buffer
invokevirtual io.vertx.redis.client.impl.RESPParser.handle:(Lio/vertx/core/buffer/Buffer;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lio/vertx/core/Handler<Lio/vertx/core/buffer/Buffer;>;
SourceFile: "RESPParser.java"