public class org.apache.cassandra.transport.Frame$Encoder extends io.netty.handler.codec.MessageToMessageEncoder<org.apache.cassandra.transport.Frame>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.transport.Frame$Encoder
super_class: io.netty.handler.codec.MessageToMessageEncoder
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial io.netty.handler.codec.MessageToMessageEncoder.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/transport/Frame$Encoder;
public void encode(io.netty.channel.ChannelHandlerContext, org.apache.cassandra.transport.Frame, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Lorg/apache/cassandra/transport/Frame;Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic org.apache.cassandra.transport.CBUtil.allocator:Lio/netty/buffer/ByteBufAllocator;
bipush 9
invokeinterface io.netty.buffer.ByteBufAllocator.buffer:(I)Lio/netty/buffer/ByteBuf;
astore 4
start local 4 1: aload 2
getfield org.apache.cassandra.transport.Frame.header:Lorg/apache/cassandra/transport/Frame$Header;
getfield org.apache.cassandra.transport.Frame$Header.type:Lorg/apache/cassandra/transport/Message$Type;
astore 5
start local 5 2: aload 4
aload 5
getfield org.apache.cassandra.transport.Message$Type.direction:Lorg/apache/cassandra/transport/Message$Direction;
aload 2
getfield org.apache.cassandra.transport.Frame.header:Lorg/apache/cassandra/transport/Frame$Header;
getfield org.apache.cassandra.transport.Frame$Header.version:Lorg/apache/cassandra/transport/ProtocolVersion;
invokevirtual org.apache.cassandra.transport.ProtocolVersion.asInt:()I
invokevirtual org.apache.cassandra.transport.Message$Direction.addToVersion:(I)I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
3: aload 4
aload 2
getfield org.apache.cassandra.transport.Frame.header:Lorg/apache/cassandra/transport/Frame$Header;
getfield org.apache.cassandra.transport.Frame$Header.flags:Ljava/util/EnumSet;
invokestatic org.apache.cassandra.transport.Frame$Header$Flag.serialize:(Ljava/util/EnumSet;)I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
4: aload 2
getfield org.apache.cassandra.transport.Frame.header:Lorg/apache/cassandra/transport/Frame$Header;
getfield org.apache.cassandra.transport.Frame$Header.version:Lorg/apache/cassandra/transport/ProtocolVersion;
getstatic org.apache.cassandra.transport.ProtocolVersion.V3:Lorg/apache/cassandra/transport/ProtocolVersion;
invokevirtual org.apache.cassandra.transport.ProtocolVersion.isGreaterOrEqualTo:(Lorg/apache/cassandra/transport/ProtocolVersion;)Z
ifeq 6
5: aload 4
aload 2
getfield org.apache.cassandra.transport.Frame.header:Lorg/apache/cassandra/transport/Frame$Header;
getfield org.apache.cassandra.transport.Frame$Header.streamId:I
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
goto 7
6: StackMap locals: io.netty.buffer.ByteBuf org.apache.cassandra.transport.Message$Type
StackMap stack:
aload 4
aload 2
getfield org.apache.cassandra.transport.Frame.header:Lorg/apache/cassandra/transport/Frame$Header;
getfield org.apache.cassandra.transport.Frame$Header.streamId:I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
7: StackMap locals:
StackMap stack:
aload 4
aload 5
getfield org.apache.cassandra.transport.Message$Type.opcode:I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
8: aload 4
aload 2
getfield org.apache.cassandra.transport.Frame.body:Lio/netty/buffer/ByteBuf;
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
invokevirtual io.netty.buffer.ByteBuf.writeInt:(I)Lio/netty/buffer/ByteBuf;
pop
9: aload 3
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
10: aload 3
aload 2
getfield org.apache.cassandra.transport.Frame.body:Lio/netty/buffer/ByteBuf;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
11: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/cassandra/transport/Frame$Encoder;
0 12 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 12 2 frame Lorg/apache/cassandra/transport/Frame;
0 12 3 results Ljava/util/List<Ljava/lang/Object;>;
1 12 4 header Lio/netty/buffer/ByteBuf;
2 12 5 type Lorg/apache/cassandra/transport/Message$Type;
Exceptions:
throws java.io.IOException
Signature: (Lio/netty/channel/ChannelHandlerContext;Lorg/apache/cassandra/transport/Frame;Ljava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
ctx
frame
results
public 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: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
0: aload 0
aload 1
aload 2
checkcast org.apache.cassandra.transport.Frame
aload 3
invokevirtual org.apache.cassandra.transport.Frame$Encoder.encode:(Lio/netty/channel/ChannelHandlerContext;Lorg/apache/cassandra/transport/Frame;Ljava/util/List;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
Signature: Lio/netty/handler/codec/MessageToMessageEncoder<Lorg/apache/cassandra/transport/Frame;>;
SourceFile: "Frame.java"
NestHost: org.apache.cassandra.transport.Frame
InnerClasses:
public abstract Sharable = io.netty.channel.ChannelHandler$Sharable of io.netty.channel.ChannelHandler
public Encoder = org.apache.cassandra.transport.Frame$Encoder of org.apache.cassandra.transport.Frame
public Header = org.apache.cassandra.transport.Frame$Header of org.apache.cassandra.transport.Frame
public final Flag = org.apache.cassandra.transport.Frame$Header$Flag of org.apache.cassandra.transport.Frame$Header
public final Direction = org.apache.cassandra.transport.Message$Direction of org.apache.cassandra.transport.Message
public final Type = org.apache.cassandra.transport.Message$Type of org.apache.cassandra.transport.Message
RuntimeVisibleAnnotations:
io.netty.channel.ChannelHandler$Sharable()