public class org.bson.codecs.BsonCodec implements org.bson.codecs.Codec<org.bson.conversions.Bson>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bson.codecs.BsonCodec
super_class: java.lang.Object
{
private static final org.bson.codecs.Codec<org.bson.BsonDocument> BSON_DOCUMENT_CODEC;
descriptor: Lorg/bson/codecs/Codec;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lorg/bson/codecs/Codec<Lorg/bson/BsonDocument;>;
private final org.bson.codecs.configuration.CodecRegistry registry;
descriptor: Lorg/bson/codecs/configuration/CodecRegistry;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.bson.codecs.BsonDocumentCodec
dup
invokespecial org.bson.codecs.BsonDocumentCodec.<init>:()V
putstatic org.bson.codecs.BsonCodec.BSON_DOCUMENT_CODEC:Lorg/bson/codecs/Codec;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.bson.codecs.configuration.CodecRegistry);
descriptor: (Lorg/bson/codecs/configuration/CodecRegistry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.bson.codecs.BsonCodec.registry: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/BsonCodec;
0 3 1 registry Lorg/bson/codecs/configuration/CodecRegistry;
MethodParameters:
Name Flags
registry final
public org.bson.conversions.Bson decode(org.bson.BsonReader, org.bson.codecs.DecoderContext);
descriptor: (Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Lorg/bson/conversions/Bson;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.UnsupportedOperationException
dup
ldc "The BsonCodec can only encode to Bson"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/codecs/BsonCodec;
0 1 1 reader Lorg/bson/BsonReader;
0 1 2 decoderContext Lorg/bson/codecs/DecoderContext;
MethodParameters:
Name Flags
reader final
decoderContext final
public void encode(org.bson.BsonWriter, org.bson.conversions.Bson, org.bson.codecs.EncoderContext);
descriptor: (Lorg/bson/BsonWriter;Lorg/bson/conversions/Bson;Lorg/bson/codecs/EncoderContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
ldc Lorg/bson/BsonDocument;
aload 0
getfield org.bson.codecs.BsonCodec.registry:Lorg/bson/codecs/configuration/CodecRegistry;
invokeinterface org.bson.conversions.Bson.toBsonDocument:(Ljava/lang/Class;Lorg/bson/codecs/configuration/CodecRegistry;)Lorg/bson/BsonDocument;
astore 4
start local 4 1: getstatic org.bson.codecs.BsonCodec.BSON_DOCUMENT_CODEC:Lorg/bson/codecs/Codec;
aload 1
aload 4
aload 3
invokeinterface org.bson.codecs.Codec.encode:(Lorg/bson/BsonWriter;Ljava/lang/Object;Lorg/bson/codecs/EncoderContext;)V
end local 4 2: goto 5
StackMap locals:
StackMap stack: java.lang.Exception
3: astore 4
start local 4 4: new org.bson.codecs.configuration.CodecConfigurationException
dup
ldc "Unable to encode a Bson implementation: %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 4
invokespecial org.bson.codecs.configuration.CodecConfigurationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 5: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bson/codecs/BsonCodec;
0 6 1 writer Lorg/bson/BsonWriter;
0 6 2 value Lorg/bson/conversions/Bson;
0 6 3 encoderContext Lorg/bson/codecs/EncoderContext;
1 2 4 bsonDocument Lorg/bson/BsonDocument;
4 5 4 e Ljava/lang/Exception;
Exception table:
from to target type
0 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
writer final
value final
encoderContext final
public java.lang.Class<org.bson.conversions.Bson> getEncoderClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc Lorg/bson/conversions/Bson;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/codecs/BsonCodec;
Signature: ()Ljava/lang/Class<Lorg/bson/conversions/Bson;>;
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.BsonCodec.decode:(Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Lorg/bson/conversions/Bson;
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.conversions.Bson
aload 3
invokevirtual org.bson.codecs.BsonCodec.encode:(Lorg/bson/BsonWriter;Lorg/bson/conversions/Bson;Lorg/bson/codecs/EncoderContext;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lorg/bson/codecs/Codec<Lorg/bson/conversions/Bson;>;
SourceFile: "BsonCodec.java"