public class org.bson.codecs.UuidCodec implements org.bson.codecs.Codec<java.util.UUID>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bson.codecs.UuidCodec
super_class: java.lang.Object
{
private final org.bson.UuidRepresentation uuidRepresentation;
descriptor: Lorg/bson/UuidRepresentation;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.bson.UuidRepresentation);
descriptor: (Lorg/bson/UuidRepresentation;)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: ldc "uuidRepresentation"
aload 1
invokestatic org.bson.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
aload 1
putfield org.bson.codecs.UuidCodec.uuidRepresentation:Lorg/bson/UuidRepresentation;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/codecs/UuidCodec;
0 4 1 uuidRepresentation Lorg/bson/UuidRepresentation;
MethodParameters:
Name Flags
uuidRepresentation final
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic org.bson.UuidRepresentation.JAVA_LEGACY:Lorg/bson/UuidRepresentation;
putfield org.bson.codecs.UuidCodec.uuidRepresentation:Lorg/bson/UuidRepresentation;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bson/codecs/UuidCodec;
public org.bson.UuidRepresentation getUuidRepresentation();
descriptor: ()Lorg/bson/UuidRepresentation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.codecs.UuidCodec.uuidRepresentation:Lorg/bson/UuidRepresentation;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/codecs/UuidCodec;
public void encode(org.bson.BsonWriter, java.util.UUID, org.bson.codecs.EncoderContext);
descriptor: (Lorg/bson/BsonWriter;Ljava/util/UUID;Lorg/bson/codecs/EncoderContext;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.bson.codecs.UuidCodec.uuidRepresentation:Lorg/bson/UuidRepresentation;
getstatic org.bson.UuidRepresentation.UNSPECIFIED:Lorg/bson/UuidRepresentation;
if_acmpne 2
1: new org.bson.codecs.configuration.CodecConfigurationException
dup
ldc "The uuidRepresentation has not been specified, so the UUID cannot be encoded."
invokespecial org.bson.codecs.configuration.CodecConfigurationException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 2
aload 0
getfield org.bson.codecs.UuidCodec.uuidRepresentation:Lorg/bson/UuidRepresentation;
invokestatic org.bson.internal.UuidHelper.encodeUuidToBinary:(Ljava/util/UUID;Lorg/bson/UuidRepresentation;)[B
astore 4
start local 4 3: aload 0
getfield org.bson.codecs.UuidCodec.uuidRepresentation:Lorg/bson/UuidRepresentation;
getstatic org.bson.UuidRepresentation.STANDARD:Lorg/bson/UuidRepresentation;
if_acmpne 6
4: aload 1
new org.bson.BsonBinary
dup
getstatic org.bson.BsonBinarySubType.UUID_STANDARD:Lorg/bson/BsonBinarySubType;
aload 4
invokespecial org.bson.BsonBinary.<init>:(Lorg/bson/BsonBinarySubType;[B)V
invokeinterface org.bson.BsonWriter.writeBinaryData:(Lorg/bson/BsonBinary;)V
5: goto 7
6: StackMap locals: byte[]
StackMap stack:
aload 1
new org.bson.BsonBinary
dup
getstatic org.bson.BsonBinarySubType.UUID_LEGACY:Lorg/bson/BsonBinarySubType;
aload 4
invokespecial org.bson.BsonBinary.<init>:(Lorg/bson/BsonBinarySubType;[B)V
invokeinterface org.bson.BsonWriter.writeBinaryData:(Lorg/bson/BsonBinary;)V
7: StackMap locals:
StackMap stack:
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 this Lorg/bson/codecs/UuidCodec;
0 8 1 writer Lorg/bson/BsonWriter;
0 8 2 value Ljava/util/UUID;
0 8 3 encoderContext Lorg/bson/codecs/EncoderContext;
3 8 4 binaryData [B
MethodParameters:
Name Flags
writer final
value final
encoderContext final
public java.util.UUID decode(org.bson.BsonReader, org.bson.codecs.DecoderContext);
descriptor: (Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Ljava/util/UUID;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokeinterface org.bson.BsonReader.peekBinarySubType:()B
istore 3
start local 3 1: iload 3
getstatic org.bson.BsonBinarySubType.UUID_LEGACY:Lorg/bson/BsonBinarySubType;
invokevirtual org.bson.BsonBinarySubType.getValue:()B
if_icmpeq 3
iload 3
getstatic org.bson.BsonBinarySubType.UUID_STANDARD:Lorg/bson/BsonBinarySubType;
invokevirtual org.bson.BsonBinarySubType.getValue:()B
if_icmpeq 3
2: new org.bson.BSONException
dup
ldc "Unexpected BsonBinarySubType"
invokespecial org.bson.BSONException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: int
StackMap stack:
aload 1
invokeinterface org.bson.BsonReader.readBinaryData:()Lorg/bson/BsonBinary;
invokevirtual org.bson.BsonBinary.getData:()[B
astore 4
start local 4 4: aload 4
iload 3
aload 0
getfield org.bson.codecs.UuidCodec.uuidRepresentation:Lorg/bson/UuidRepresentation;
invokestatic org.bson.internal.UuidHelper.decodeBinaryToUuid:([BBLorg/bson/UuidRepresentation;)Ljava/util/UUID;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bson/codecs/UuidCodec;
0 5 1 reader Lorg/bson/BsonReader;
0 5 2 decoderContext Lorg/bson/codecs/DecoderContext;
1 5 3 subType B
4 5 4 bytes [B
MethodParameters:
Name Flags
reader final
decoderContext final
public java.lang.Class<java.util.UUID> getEncoderClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc Ljava/util/UUID;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/codecs/UuidCodec;
Signature: ()Ljava/lang/Class<Ljava/util/UUID;>;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "UuidCodec{uuidRepresentation="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield org.bson.codecs.UuidCodec.uuidRepresentation:Lorg/bson/UuidRepresentation;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bson/codecs/UuidCodec;
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.UuidCodec.decode:(Lorg/bson/BsonReader;Lorg/bson/codecs/DecoderContext;)Ljava/util/UUID;
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.util.UUID
aload 3
invokevirtual org.bson.codecs.UuidCodec.encode:(Lorg/bson/BsonWriter;Ljava/util/UUID;Lorg/bson/codecs/EncoderContext;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lorg/bson/codecs/Codec<Ljava/util/UUID;>;
SourceFile: "UuidCodec.java"