public class org.bson.codecs.BsonArrayCodec implements org.bson.codecs.Codec<org.bson.BsonArray>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bson.codecs.BsonArrayCodec
super_class: java.lang.Object
{
private static final org.bson.codecs.configuration.CodecRegistry DEFAULT_REGISTRY;
descriptor: Lorg/bson/codecs/configuration/CodecRegistry;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final org.bson.codecs.configuration.CodecRegistry codecRegistry;
descriptor: Lorg/bson/codecs/configuration/CodecRegistry;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: iconst_1
anewarray org.bson.codecs.configuration.CodecProvider
dup
iconst_0
new org.bson.codecs.BsonValueCodecProvider
dup
invokespecial org.bson.codecs.BsonValueCodecProvider.<init>:()V
aastore
invokestatic org.bson.codecs.configuration.CodecRegistries.fromProviders:([Lorg/bson/codecs/configuration/CodecProvider;)Lorg/bson/codecs/configuration/CodecRegistry;
putstatic org.bson.codecs.BsonArrayCodec.DEFAULT_REGISTRY:Lorg/bson/codecs/configuration/CodecRegistry;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.codecs.BsonArrayCodec.DEFAULT_REGISTRY:Lorg/bson/codecs/configuration/CodecRegistry;
invokespecial org.bson.codecs.BsonArrayCodec.<init>:(Lorg/bson/codecs/configuration/CodecRegistry;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/codecs/BsonArrayCodec;
public void <init>(org.bson.codecs.configuration.CodecRegistry);
descriptor: (Lorg/bson/codecs/configuration/CodecRegistry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc "codecRegistry"
aload 1
invokestatic org.bson.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.bson.codecs.configuration.CodecRegistry
putfield org.bson.codecs.BsonArrayCodec.codecRegistry:Lorg/bson/codecs/configuration/CodecRegistry;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bson/codecs/BsonArrayCodec;
0 3 1 codecRegistry Lorg/bson/codecs/configuration/CodecRegistry;
MethodParameters:
Name Flags
codecRegistry final
public org.bson.BsonArray decode(org.bson.BsonReader, org.bson.codecs.DecoderContext);
descriptor: (Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Lorg/bson/BsonArray;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface org.bson.BsonReader.readStartArray:()V
1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 2: goto 4
3: StackMap locals: java.util.List
StackMap stack:
aload 3
aload 0
aload 1
aload 2
invokevirtual org.bson.codecs.BsonArrayCodec.readValue:(Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Lorg/bson/BsonValue;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.bson.BsonReader.readBsonType:()Lorg/bson/BsonType;
getstatic org.bson.BsonType.END_OF_DOCUMENT:Lorg/bson/BsonType;
if_acmpne 3
5: aload 1
invokeinterface org.bson.BsonReader.readEndArray:()V
6: new org.bson.BsonArray
dup
aload 3
invokespecial org.bson.BsonArray.<init>:(Ljava/util/List;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bson/codecs/BsonArrayCodec;
0 7 1 reader Lorg/bson/BsonReader;
0 7 2 decoderContext Lorg/bson/codecs/DecoderContext;
2 7 3 list Ljava/util/List<Lorg/bson/BsonValue;>;
MethodParameters:
Name Flags
reader final
decoderContext final
public void encode(org.bson.BsonWriter, org.bson.BsonArray, org.bson.codecs.EncoderContext);
descriptor: (Lorg/bson/BsonWriter;Lorg/bson/BsonArray;Lorg/bson/codecs/EncoderContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokeinterface org.bson.BsonWriter.writeStartArray:()V
1: aload 2
invokevirtual org.bson.BsonArray.iterator:()Ljava/util/Iterator;
astore 5
goto 5
StackMap locals: org.bson.codecs.BsonArrayCodec org.bson.BsonWriter org.bson.BsonArray org.bson.codecs.EncoderContext top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.bson.BsonValue
astore 4
start local 4 3: aload 0
getfield org.bson.codecs.BsonArrayCodec.codecRegistry:Lorg/bson/codecs/configuration/CodecRegistry;
aload 4
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokeinterface org.bson.codecs.configuration.CodecRegistry.get:(Ljava/lang/Class;)Lorg/bson/codecs/Codec;
astore 6
start local 6 4: aload 3
aload 6
aload 1
aload 4
invokevirtual org.bson.codecs.EncoderContext.encodeWithChildContext:(Lorg/bson/codecs/Encoder;Lorg/bson/BsonWriter;Ljava/lang/Object;)V
end local 6 end local 4 5: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aload 1
invokeinterface org.bson.BsonWriter.writeEndArray:()V
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/bson/codecs/BsonArrayCodec;
0 8 1 writer Lorg/bson/BsonWriter;
0 8 2 array Lorg/bson/BsonArray;
0 8 3 encoderContext Lorg/bson/codecs/EncoderContext;
3 5 4 value Lorg/bson/BsonValue;
4 5 6 codec Lorg/bson/codecs/Codec;
MethodParameters:
Name Flags
writer final
array final
encoderContext final
public java.lang.Class<org.bson.BsonArray> getEncoderClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc Lorg/bson/BsonArray;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/codecs/BsonArrayCodec;
Signature: ()Ljava/lang/Class<Lorg/bson/BsonArray;>;
protected org.bson.BsonValue readValue(org.bson.BsonReader, org.bson.codecs.DecoderContext);
descriptor: (Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Lorg/bson/BsonValue;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.bson.codecs.BsonArrayCodec.codecRegistry:Lorg/bson/codecs/configuration/CodecRegistry;
aload 1
invokeinterface org.bson.BsonReader.getCurrentBsonType:()Lorg/bson/BsonType;
invokestatic org.bson.codecs.BsonValueCodecProvider.getClassForBsonType:(Lorg/bson/BsonType;)Ljava/lang/Class;
invokeinterface org.bson.codecs.configuration.CodecRegistry.get:(Ljava/lang/Class;)Lorg/bson/codecs/Codec;
aload 1
aload 2
invokeinterface org.bson.codecs.Codec.decode:(Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Ljava/lang/Object;
checkcast org.bson.BsonValue
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/codecs/BsonArrayCodec;
0 1 1 reader Lorg/bson/BsonReader;
0 1 2 decoderContext Lorg/bson/codecs/DecoderContext;
MethodParameters:
Name Flags
reader final
decoderContext final
public java.lang.Object decode(org.bson.BsonReader, org.bson.codecs.DecoderContext);
descriptor: (Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
invokevirtual org.bson.codecs.BsonArrayCodec.decode:(Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Lorg/bson/BsonArray;
areturn
LocalVariableTable:
Start End Slot Name Signature
public void encode(org.bson.BsonWriter, java.lang.Object, org.bson.codecs.EncoderContext);
descriptor: (Lorg/bson/BsonWriter;Ljava/lang/Object;Lorg/bson/codecs/EncoderContext;)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.bson.BsonArray
aload 3
invokevirtual org.bson.codecs.BsonArrayCodec.encode:(Lorg/bson/BsonWriter;Lorg/bson/BsonArray;Lorg/bson/codecs/EncoderContext;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lorg/bson/codecs/Codec<Lorg/bson/BsonArray;>;
SourceFile: "BsonArrayCodec.java"