public class io.netty.handler.codec.redis.RedisEncoder extends io.netty.handler.codec.MessageToMessageEncoder<io.netty.handler.codec.redis.RedisMessage>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.handler.codec.redis.RedisEncoder
super_class: io.netty.handler.codec.MessageToMessageEncoder
{
private final io.netty.handler.codec.redis.RedisMessagePool messagePool;
descriptor: Lio/netty/handler/codec/redis/RedisMessagePool;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic io.netty.handler.codec.redis.FixedRedisMessagePool.INSTANCE:Lio/netty/handler/codec/redis/FixedRedisMessagePool;
invokespecial io.netty.handler.codec.redis.RedisEncoder.<init>:(Lio/netty/handler/codec/redis/RedisMessagePool;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/redis/RedisEncoder;
public void <init>(io.netty.handler.codec.redis.RedisMessagePool);
descriptor: (Lio/netty/handler/codec/redis/RedisMessagePool;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial io.netty.handler.codec.MessageToMessageEncoder.<init>:()V
1: aload 0
aload 1
ldc "messagePool"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast io.netty.handler.codec.redis.RedisMessagePool
putfield io.netty.handler.codec.redis.RedisEncoder.messagePool:Lio/netty/handler/codec/redis/RedisMessagePool;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/handler/codec/redis/RedisEncoder;
0 3 1 messagePool Lio/netty/handler/codec/redis/RedisMessagePool;
MethodParameters:
Name Flags
messagePool
protected void encode(io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.redis.RedisMessage, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/redis/RedisMessage;Ljava/util/List;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.alloc:()Lio/netty/buffer/ByteBufAllocator;
aload 2
aload 3
invokevirtual io.netty.handler.codec.redis.RedisEncoder.writeRedisMessage:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/RedisMessage;Ljava/util/List;)V
1: goto 6
StackMap locals:
StackMap stack: io.netty.handler.codec.CodecException
2: astore 4
start local 4 3: aload 4
athrow
end local 4 4: StackMap locals:
StackMap stack: java.lang.Exception
astore 4
start local 4 5: new io.netty.handler.codec.CodecException
dup
aload 4
invokespecial io.netty.handler.codec.CodecException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 6: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/netty/handler/codec/redis/RedisEncoder;
0 7 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 7 2 msg Lio/netty/handler/codec/redis/RedisMessage;
0 7 3 out Ljava/util/List<Ljava/lang/Object;>;
3 4 4 e Lio/netty/handler/codec/CodecException;
5 6 4 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class io.netty.handler.codec.CodecException
0 1 4 Class java.lang.Exception
Exceptions:
throws java.lang.Exception
Signature: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/redis/RedisMessage;Ljava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
ctx
msg
out
private void writeRedisMessage(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.redis.RedisMessage, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/RedisMessage;Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
instanceof io.netty.handler.codec.redis.InlineCommandRedisMessage
ifeq 3
1: aload 1
aload 2
checkcast io.netty.handler.codec.redis.InlineCommandRedisMessage
aload 3
invokestatic io.netty.handler.codec.redis.RedisEncoder.writeInlineCommandMessage:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/InlineCommandRedisMessage;Ljava/util/List;)V
2: goto 28
StackMap locals:
StackMap stack:
3: aload 2
instanceof io.netty.handler.codec.redis.SimpleStringRedisMessage
ifeq 6
4: aload 1
aload 2
checkcast io.netty.handler.codec.redis.SimpleStringRedisMessage
aload 3
invokestatic io.netty.handler.codec.redis.RedisEncoder.writeSimpleStringMessage:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/SimpleStringRedisMessage;Ljava/util/List;)V
5: goto 28
StackMap locals:
StackMap stack:
6: aload 2
instanceof io.netty.handler.codec.redis.ErrorRedisMessage
ifeq 9
7: aload 1
aload 2
checkcast io.netty.handler.codec.redis.ErrorRedisMessage
aload 3
invokestatic io.netty.handler.codec.redis.RedisEncoder.writeErrorMessage:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/ErrorRedisMessage;Ljava/util/List;)V
8: goto 28
StackMap locals:
StackMap stack:
9: aload 2
instanceof io.netty.handler.codec.redis.IntegerRedisMessage
ifeq 12
10: aload 0
aload 1
aload 2
checkcast io.netty.handler.codec.redis.IntegerRedisMessage
aload 3
invokevirtual io.netty.handler.codec.redis.RedisEncoder.writeIntegerMessage:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/IntegerRedisMessage;Ljava/util/List;)V
11: goto 28
StackMap locals:
StackMap stack:
12: aload 2
instanceof io.netty.handler.codec.redis.FullBulkStringRedisMessage
ifeq 15
13: aload 0
aload 1
aload 2
checkcast io.netty.handler.codec.redis.FullBulkStringRedisMessage
aload 3
invokevirtual io.netty.handler.codec.redis.RedisEncoder.writeFullBulkStringMessage:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/FullBulkStringRedisMessage;Ljava/util/List;)V
14: goto 28
StackMap locals:
StackMap stack:
15: aload 2
instanceof io.netty.handler.codec.redis.BulkStringRedisContent
ifeq 18
16: aload 1
aload 2
checkcast io.netty.handler.codec.redis.BulkStringRedisContent
aload 3
invokestatic io.netty.handler.codec.redis.RedisEncoder.writeBulkStringContent:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/BulkStringRedisContent;Ljava/util/List;)V
17: goto 28
StackMap locals:
StackMap stack:
18: aload 2
instanceof io.netty.handler.codec.redis.BulkStringHeaderRedisMessage
ifeq 21
19: aload 0
aload 1
aload 2
checkcast io.netty.handler.codec.redis.BulkStringHeaderRedisMessage
aload 3
invokevirtual io.netty.handler.codec.redis.RedisEncoder.writeBulkStringHeader:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/BulkStringHeaderRedisMessage;Ljava/util/List;)V
20: goto 28
StackMap locals:
StackMap stack:
21: aload 2
instanceof io.netty.handler.codec.redis.ArrayHeaderRedisMessage
ifeq 24
22: aload 0
aload 1
aload 2
checkcast io.netty.handler.codec.redis.ArrayHeaderRedisMessage
aload 3
invokevirtual io.netty.handler.codec.redis.RedisEncoder.writeArrayHeader:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/ArrayHeaderRedisMessage;Ljava/util/List;)V
23: goto 28
StackMap locals:
StackMap stack:
24: aload 2
instanceof io.netty.handler.codec.redis.ArrayRedisMessage
ifeq 27
25: aload 0
aload 1
aload 2
checkcast io.netty.handler.codec.redis.ArrayRedisMessage
aload 3
invokevirtual io.netty.handler.codec.redis.RedisEncoder.writeArrayMessage:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/ArrayRedisMessage;Ljava/util/List;)V
26: goto 28
27: StackMap locals:
StackMap stack:
new io.netty.handler.codec.CodecException
dup
new java.lang.StringBuilder
dup
ldc "unknown message type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.netty.handler.codec.CodecException.<init>:(Ljava/lang/String;)V
athrow
28: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lio/netty/handler/codec/redis/RedisEncoder;
0 29 1 allocator Lio/netty/buffer/ByteBufAllocator;
0 29 2 msg Lio/netty/handler/codec/redis/RedisMessage;
0 29 3 out Ljava/util/List<Ljava/lang/Object;>;
Signature: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/RedisMessage;Ljava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
allocator
msg
out
private static void writeInlineCommandMessage(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.redis.InlineCommandRedisMessage, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/InlineCommandRedisMessage;Ljava/util/List;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getstatic io.netty.handler.codec.redis.RedisMessageType.INLINE_COMMAND:Lio/netty/handler/codec/redis/RedisMessageType;
aload 1
invokevirtual io.netty.handler.codec.redis.InlineCommandRedisMessage.content:()Ljava/lang/String;
aload 2
invokestatic io.netty.handler.codec.redis.RedisEncoder.writeString:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/RedisMessageType;Ljava/lang/String;Ljava/util/List;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 allocator Lio/netty/buffer/ByteBufAllocator;
0 2 1 msg Lio/netty/handler/codec/redis/InlineCommandRedisMessage;
0 2 2 out Ljava/util/List<Ljava/lang/Object;>;
Signature: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/InlineCommandRedisMessage;Ljava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
allocator
msg
out
private static void writeSimpleStringMessage(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.redis.SimpleStringRedisMessage, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/SimpleStringRedisMessage;Ljava/util/List;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getstatic io.netty.handler.codec.redis.RedisMessageType.SIMPLE_STRING:Lio/netty/handler/codec/redis/RedisMessageType;
aload 1
invokevirtual io.netty.handler.codec.redis.SimpleStringRedisMessage.content:()Ljava/lang/String;
aload 2
invokestatic io.netty.handler.codec.redis.RedisEncoder.writeString:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/RedisMessageType;Ljava/lang/String;Ljava/util/List;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 allocator Lio/netty/buffer/ByteBufAllocator;
0 2 1 msg Lio/netty/handler/codec/redis/SimpleStringRedisMessage;
0 2 2 out Ljava/util/List<Ljava/lang/Object;>;
Signature: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/SimpleStringRedisMessage;Ljava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
allocator
msg
out
private static void writeErrorMessage(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.redis.ErrorRedisMessage, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/ErrorRedisMessage;Ljava/util/List;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getstatic io.netty.handler.codec.redis.RedisMessageType.ERROR:Lio/netty/handler/codec/redis/RedisMessageType;
aload 1
invokevirtual io.netty.handler.codec.redis.ErrorRedisMessage.content:()Ljava/lang/String;
aload 2
invokestatic io.netty.handler.codec.redis.RedisEncoder.writeString:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/RedisMessageType;Ljava/lang/String;Ljava/util/List;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 allocator Lio/netty/buffer/ByteBufAllocator;
0 2 1 msg Lio/netty/handler/codec/redis/ErrorRedisMessage;
0 2 2 out Ljava/util/List<Ljava/lang/Object;>;
Signature: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/ErrorRedisMessage;Ljava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
allocator
msg
out
private static void writeString(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.redis.RedisMessageType, java.lang.String, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/RedisMessageType;Ljava/lang/String;Ljava/util/List;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokevirtual io.netty.handler.codec.redis.RedisMessageType.length:()I
aload 2
invokestatic io.netty.buffer.ByteBufUtil.utf8MaxBytes:(Ljava/lang/CharSequence;)I
iadd
1: iconst_2
iadd
2: invokeinterface io.netty.buffer.ByteBufAllocator.ioBuffer:(I)Lio/netty/buffer/ByteBuf;
astore 4
start local 4 3: aload 1
aload 4
invokevirtual io.netty.handler.codec.redis.RedisMessageType.writeTo:(Lio/netty/buffer/ByteBuf;)V
4: aload 4
aload 2
invokestatic io.netty.buffer.ByteBufUtil.writeUtf8:(Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;)I
pop
5: aload 4
getstatic io.netty.handler.codec.redis.RedisConstants.EOL_SHORT:S
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
6: aload 3
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 allocator Lio/netty/buffer/ByteBufAllocator;
0 8 1 type Lio/netty/handler/codec/redis/RedisMessageType;
0 8 2 content Ljava/lang/String;
0 8 3 out Ljava/util/List<Ljava/lang/Object;>;
3 8 4 buf Lio/netty/buffer/ByteBuf;
Signature: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/RedisMessageType;Ljava/lang/String;Ljava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
allocator
type
content
out
private void writeIntegerMessage(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.redis.IntegerRedisMessage, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/IntegerRedisMessage;Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
bipush 23
invokeinterface io.netty.buffer.ByteBufAllocator.ioBuffer:(I)Lio/netty/buffer/ByteBuf;
astore 4
start local 4 1: getstatic io.netty.handler.codec.redis.RedisMessageType.INTEGER:Lio/netty/handler/codec/redis/RedisMessageType;
aload 4
invokevirtual io.netty.handler.codec.redis.RedisMessageType.writeTo:(Lio/netty/buffer/ByteBuf;)V
2: aload 4
aload 0
aload 2
invokevirtual io.netty.handler.codec.redis.IntegerRedisMessage.value:()J
invokevirtual io.netty.handler.codec.redis.RedisEncoder.numberToBytes:(J)[B
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([B)Lio/netty/buffer/ByteBuf;
pop
3: aload 4
getstatic io.netty.handler.codec.redis.RedisConstants.EOL_SHORT:S
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
4: aload 3
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/handler/codec/redis/RedisEncoder;
0 6 1 allocator Lio/netty/buffer/ByteBufAllocator;
0 6 2 msg Lio/netty/handler/codec/redis/IntegerRedisMessage;
0 6 3 out Ljava/util/List<Ljava/lang/Object;>;
1 6 4 buf Lio/netty/buffer/ByteBuf;
Signature: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/IntegerRedisMessage;Ljava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
allocator
msg
out
private void writeBulkStringHeader(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.redis.BulkStringHeaderRedisMessage, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/BulkStringHeaderRedisMessage;Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
iconst_1
1: aload 2
invokevirtual io.netty.handler.codec.redis.BulkStringHeaderRedisMessage.isNull:()Z
ifeq 2
iconst_2
goto 3
2: StackMap locals: io.netty.handler.codec.redis.RedisEncoder io.netty.buffer.ByteBufAllocator io.netty.handler.codec.redis.BulkStringHeaderRedisMessage java.util.List
StackMap stack: io.netty.buffer.ByteBufAllocator int
bipush 22
StackMap locals: io.netty.handler.codec.redis.RedisEncoder io.netty.buffer.ByteBufAllocator io.netty.handler.codec.redis.BulkStringHeaderRedisMessage java.util.List
StackMap stack: io.netty.buffer.ByteBufAllocator int int
3: iadd
4: invokeinterface io.netty.buffer.ByteBufAllocator.ioBuffer:(I)Lio/netty/buffer/ByteBuf;
astore 4
start local 4 5: getstatic io.netty.handler.codec.redis.RedisMessageType.BULK_STRING:Lio/netty/handler/codec/redis/RedisMessageType;
aload 4
invokevirtual io.netty.handler.codec.redis.RedisMessageType.writeTo:(Lio/netty/buffer/ByteBuf;)V
6: aload 2
invokevirtual io.netty.handler.codec.redis.BulkStringHeaderRedisMessage.isNull:()Z
ifeq 9
7: aload 4
getstatic io.netty.handler.codec.redis.RedisConstants.NULL_SHORT:S
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
8: goto 11
9: StackMap locals: io.netty.buffer.ByteBuf
StackMap stack:
aload 4
aload 0
aload 2
invokevirtual io.netty.handler.codec.redis.BulkStringHeaderRedisMessage.bulkStringLength:()I
i2l
invokevirtual io.netty.handler.codec.redis.RedisEncoder.numberToBytes:(J)[B
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([B)Lio/netty/buffer/ByteBuf;
pop
10: aload 4
getstatic io.netty.handler.codec.redis.RedisConstants.EOL_SHORT:S
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
11: StackMap locals:
StackMap stack:
aload 3
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
12: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/netty/handler/codec/redis/RedisEncoder;
0 13 1 allocator Lio/netty/buffer/ByteBufAllocator;
0 13 2 msg Lio/netty/handler/codec/redis/BulkStringHeaderRedisMessage;
0 13 3 out Ljava/util/List<Ljava/lang/Object;>;
5 13 4 buf Lio/netty/buffer/ByteBuf;
Signature: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/BulkStringHeaderRedisMessage;Ljava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
allocator
msg
out
private static void writeBulkStringContent(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.redis.BulkStringRedisContent, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/BulkStringRedisContent;Ljava/util/List;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 1
invokeinterface io.netty.handler.codec.redis.BulkStringRedisContent.content:()Lio/netty/buffer/ByteBuf;
invokevirtual io.netty.buffer.ByteBuf.retain:()Lio/netty/buffer/ByteBuf;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: aload 1
instanceof io.netty.handler.codec.redis.LastBulkStringRedisContent
ifeq 3
2: aload 2
aload 0
iconst_2
invokeinterface io.netty.buffer.ByteBufAllocator.ioBuffer:(I)Lio/netty/buffer/ByteBuf;
getstatic io.netty.handler.codec.redis.RedisConstants.EOL_SHORT:S
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 allocator Lio/netty/buffer/ByteBufAllocator;
0 4 1 msg Lio/netty/handler/codec/redis/BulkStringRedisContent;
0 4 2 out Ljava/util/List<Ljava/lang/Object;>;
Signature: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/BulkStringRedisContent;Ljava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
allocator
msg
out
private void writeFullBulkStringMessage(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.redis.FullBulkStringRedisMessage, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/FullBulkStringRedisMessage;Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual io.netty.handler.codec.redis.FullBulkStringRedisMessage.isNull:()Z
ifeq 7
1: aload 1
iconst_5
invokeinterface io.netty.buffer.ByteBufAllocator.ioBuffer:(I)Lio/netty/buffer/ByteBuf;
astore 4
start local 4 2: getstatic io.netty.handler.codec.redis.RedisMessageType.BULK_STRING:Lio/netty/handler/codec/redis/RedisMessageType;
aload 4
invokevirtual io.netty.handler.codec.redis.RedisMessageType.writeTo:(Lio/netty/buffer/ByteBuf;)V
3: aload 4
getstatic io.netty.handler.codec.redis.RedisConstants.NULL_SHORT:S
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
4: aload 4
getstatic io.netty.handler.codec.redis.RedisConstants.EOL_SHORT:S
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
5: aload 3
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 6: goto 14
7: StackMap locals:
StackMap stack:
aload 1
bipush 23
invokeinterface io.netty.buffer.ByteBufAllocator.ioBuffer:(I)Lio/netty/buffer/ByteBuf;
astore 4
start local 4 8: getstatic io.netty.handler.codec.redis.RedisMessageType.BULK_STRING:Lio/netty/handler/codec/redis/RedisMessageType;
aload 4
invokevirtual io.netty.handler.codec.redis.RedisMessageType.writeTo:(Lio/netty/buffer/ByteBuf;)V
9: aload 4
aload 0
aload 2
invokevirtual io.netty.handler.codec.redis.FullBulkStringRedisMessage.content:()Lio/netty/buffer/ByteBuf;
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
i2l
invokevirtual io.netty.handler.codec.redis.RedisEncoder.numberToBytes:(J)[B
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([B)Lio/netty/buffer/ByteBuf;
pop
10: aload 4
getstatic io.netty.handler.codec.redis.RedisConstants.EOL_SHORT:S
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
11: aload 3
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
12: aload 3
aload 2
invokevirtual io.netty.handler.codec.redis.FullBulkStringRedisMessage.content:()Lio/netty/buffer/ByteBuf;
invokevirtual io.netty.buffer.ByteBuf.retain:()Lio/netty/buffer/ByteBuf;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
13: aload 3
aload 1
iconst_2
invokeinterface io.netty.buffer.ByteBufAllocator.ioBuffer:(I)Lio/netty/buffer/ByteBuf;
getstatic io.netty.handler.codec.redis.RedisConstants.EOL_SHORT:S
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 14: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lio/netty/handler/codec/redis/RedisEncoder;
0 15 1 allocator Lio/netty/buffer/ByteBufAllocator;
0 15 2 msg Lio/netty/handler/codec/redis/FullBulkStringRedisMessage;
0 15 3 out Ljava/util/List<Ljava/lang/Object;>;
2 6 4 buf Lio/netty/buffer/ByteBuf;
8 14 4 headerBuf Lio/netty/buffer/ByteBuf;
Signature: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/FullBulkStringRedisMessage;Ljava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
allocator
msg
out
private void writeArrayHeader(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.redis.ArrayHeaderRedisMessage, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/ArrayHeaderRedisMessage;Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
invokevirtual io.netty.handler.codec.redis.ArrayHeaderRedisMessage.isNull:()Z
aload 2
invokevirtual io.netty.handler.codec.redis.ArrayHeaderRedisMessage.length:()J
aload 3
invokevirtual io.netty.handler.codec.redis.RedisEncoder.writeArrayHeader:(Lio/netty/buffer/ByteBufAllocator;ZJLjava/util/List;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/redis/RedisEncoder;
0 2 1 allocator Lio/netty/buffer/ByteBufAllocator;
0 2 2 msg Lio/netty/handler/codec/redis/ArrayHeaderRedisMessage;
0 2 3 out Ljava/util/List<Ljava/lang/Object;>;
Signature: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/ArrayHeaderRedisMessage;Ljava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
allocator
msg
out
private void writeArrayMessage(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.redis.ArrayRedisMessage, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/ArrayRedisMessage;Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual io.netty.handler.codec.redis.ArrayRedisMessage.isNull:()Z
ifeq 3
1: aload 0
aload 1
aload 2
invokevirtual io.netty.handler.codec.redis.ArrayRedisMessage.isNull:()Z
ldc -1
aload 3
invokevirtual io.netty.handler.codec.redis.RedisEncoder.writeArrayHeader:(Lio/netty/buffer/ByteBufAllocator;ZJLjava/util/List;)V
2: goto 8
3: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual io.netty.handler.codec.redis.ArrayRedisMessage.isNull:()Z
aload 2
invokevirtual io.netty.handler.codec.redis.ArrayRedisMessage.children:()Ljava/util/List;
invokeinterface java.util.List.size:()I
i2l
aload 3
invokevirtual io.netty.handler.codec.redis.RedisEncoder.writeArrayHeader:(Lio/netty/buffer/ByteBufAllocator;ZJLjava/util/List;)V
4: aload 2
invokevirtual io.netty.handler.codec.redis.ArrayRedisMessage.children:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 7
StackMap locals: io.netty.handler.codec.redis.RedisEncoder io.netty.buffer.ByteBufAllocator io.netty.handler.codec.redis.ArrayRedisMessage java.util.List top java.util.Iterator
StackMap stack:
5: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.netty.handler.codec.redis.RedisMessage
astore 4
start local 4 6: aload 0
aload 1
aload 4
aload 3
invokevirtual io.netty.handler.codec.redis.RedisEncoder.writeRedisMessage:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/RedisMessage;Ljava/util/List;)V
end local 4 7: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
8: StackMap locals: io.netty.handler.codec.redis.RedisEncoder io.netty.buffer.ByteBufAllocator io.netty.handler.codec.redis.ArrayRedisMessage java.util.List
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lio/netty/handler/codec/redis/RedisEncoder;
0 9 1 allocator Lio/netty/buffer/ByteBufAllocator;
0 9 2 msg Lio/netty/handler/codec/redis/ArrayRedisMessage;
0 9 3 out Ljava/util/List<Ljava/lang/Object;>;
6 7 4 child Lio/netty/handler/codec/redis/RedisMessage;
Signature: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/redis/ArrayRedisMessage;Ljava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
allocator
msg
out
private void writeArrayHeader(io.netty.buffer.ByteBufAllocator, boolean, long, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/buffer/ByteBufAllocator;ZJLjava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 5 0: iload 2
ifeq 7
1: aload 1
iconst_5
invokeinterface io.netty.buffer.ByteBufAllocator.ioBuffer:(I)Lio/netty/buffer/ByteBuf;
astore 6
start local 6 2: getstatic io.netty.handler.codec.redis.RedisMessageType.ARRAY_HEADER:Lio/netty/handler/codec/redis/RedisMessageType;
aload 6
invokevirtual io.netty.handler.codec.redis.RedisMessageType.writeTo:(Lio/netty/buffer/ByteBuf;)V
3: aload 6
getstatic io.netty.handler.codec.redis.RedisConstants.NULL_SHORT:S
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
4: aload 6
getstatic io.netty.handler.codec.redis.RedisConstants.EOL_SHORT:S
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
5: aload 5
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 6: goto 12
7: StackMap locals:
StackMap stack:
aload 1
bipush 23
invokeinterface io.netty.buffer.ByteBufAllocator.ioBuffer:(I)Lio/netty/buffer/ByteBuf;
astore 6
start local 6 8: getstatic io.netty.handler.codec.redis.RedisMessageType.ARRAY_HEADER:Lio/netty/handler/codec/redis/RedisMessageType;
aload 6
invokevirtual io.netty.handler.codec.redis.RedisMessageType.writeTo:(Lio/netty/buffer/ByteBuf;)V
9: aload 6
aload 0
lload 3
invokevirtual io.netty.handler.codec.redis.RedisEncoder.numberToBytes:(J)[B
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([B)Lio/netty/buffer/ByteBuf;
pop
10: aload 6
getstatic io.netty.handler.codec.redis.RedisConstants.EOL_SHORT:S
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
11: aload 5
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 6 12: StackMap locals:
StackMap stack:
return
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/netty/handler/codec/redis/RedisEncoder;
0 13 1 allocator Lio/netty/buffer/ByteBufAllocator;
0 13 2 isNull Z
0 13 3 length J
0 13 5 out Ljava/util/List<Ljava/lang/Object;>;
2 6 6 buf Lio/netty/buffer/ByteBuf;
8 12 6 buf Lio/netty/buffer/ByteBuf;
Signature: (Lio/netty/buffer/ByteBufAllocator;ZJLjava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
allocator
isNull
length
out
private byte[] numberToBytes(long);
descriptor: (J)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield io.netty.handler.codec.redis.RedisEncoder.messagePool:Lio/netty/handler/codec/redis/RedisMessagePool;
lload 1
invokeinterface io.netty.handler.codec.redis.RedisMessagePool.getByteBufOfInteger:(J)[B
astore 3
start local 3 1: aload 3
ifnull 2
aload 3
goto 3
StackMap locals: byte[]
StackMap stack:
2: lload 1
invokestatic io.netty.handler.codec.redis.RedisCodecUtil.longToAsciiBytes:(J)[B
StackMap locals:
StackMap stack: byte[]
3: areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/handler/codec/redis/RedisEncoder;
0 4 1 value J
1 4 3 bytes [B
MethodParameters:
Name Flags
value
protected void encode(io.netty.channel.ChannelHandlerContext, java.lang.Object, java.util.List);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
0: aload 0
aload 1
aload 2
checkcast io.netty.handler.codec.redis.RedisMessage
aload 3
invokevirtual io.netty.handler.codec.redis.RedisEncoder.encode:(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/redis/RedisMessage;Ljava/util/List;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
Signature: Lio/netty/handler/codec/MessageToMessageEncoder<Lio/netty/handler/codec/redis/RedisMessage;>;
SourceFile: "RedisEncoder.java"