public class org.bson.codecs.CharacterCodec implements org.bson.codecs.Codec<java.lang.Character>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bson.codecs.CharacterCodec
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/codecs/CharacterCodec;
public void encode(org.bson.BsonWriter, java.lang.Character, org.bson.codecs.EncoderContext);
descriptor: (Lorg/bson/BsonWriter;Ljava/lang/Character;Lorg/bson/codecs/EncoderContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: ldc "value"
aload 2
invokestatic org.bson.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
aload 2
invokevirtual java.lang.Character.toString:()Ljava/lang/String;
invokeinterface org.bson.BsonWriter.writeString:(Ljava/lang/String;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bson/codecs/CharacterCodec;
0 3 1 writer Lorg/bson/BsonWriter;
0 3 2 value Ljava/lang/Character;
0 3 3 encoderContext Lorg/bson/codecs/EncoderContext;
MethodParameters:
Name Flags
writer final
value final
encoderContext final
public java.lang.Character decode(org.bson.BsonReader, org.bson.codecs.DecoderContext);
descriptor: (Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Ljava/lang/Character;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface org.bson.BsonReader.readString:()Ljava/lang/String;
astore 3
start local 3 1: aload 3
invokevirtual java.lang.String.length:()I
iconst_1
if_icmpeq 5
2: new org.bson.BsonInvalidOperationException
dup
ldc "Attempting to decode the string '%s' to a character, but its length is not equal to one"
iconst_1
anewarray java.lang.Object
dup
iconst_0
3: aload 3
aastore
4: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.bson.BsonInvalidOperationException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.lang.String
StackMap stack:
aload 3
iconst_0
invokevirtual java.lang.String.charAt:(I)C
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
areturn
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/CharacterCodec;
0 6 1 reader Lorg/bson/BsonReader;
0 6 2 decoderContext Lorg/bson/codecs/DecoderContext;
1 6 3 string Ljava/lang/String;
MethodParameters:
Name Flags
reader final
decoderContext final
public java.lang.Class<java.lang.Character> getEncoderClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc Ljava/lang/Character;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/codecs/CharacterCodec;
Signature: ()Ljava/lang/Class<Ljava/lang/Character;>;
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.CharacterCodec.decode:(Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Ljava/lang/Character;
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 java.lang.Character
aload 3
invokevirtual org.bson.codecs.CharacterCodec.encode:(Lorg/bson/BsonWriter;Ljava/lang/Character;Lorg/bson/codecs/EncoderContext;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lorg/bson/codecs/Codec<Ljava/lang/Character;>;
SourceFile: "CharacterCodec.java"