public final class org.bson.internal.UuidHelper
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.bson.internal.UuidHelper
super_class: java.lang.Object
{
private static volatile int[] $SWITCH_TABLE$org$bson$UuidRepresentation;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
private static void writeLongToArrayBigEndian(byte[], int, long);
descriptor: ([BIJ)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
bipush 7
iadd
ldc 255
lload 2
land
l2i
i2b
bastore
1: aload 0
iload 1
bipush 6
iadd
ldc 255
lload 2
bipush 8
lshr
land
l2i
i2b
bastore
2: aload 0
iload 1
iconst_5
iadd
ldc 255
lload 2
bipush 16
lshr
land
l2i
i2b
bastore
3: aload 0
iload 1
iconst_4
iadd
ldc 255
lload 2
bipush 24
lshr
land
l2i
i2b
bastore
4: aload 0
iload 1
iconst_3
iadd
ldc 255
lload 2
bipush 32
lshr
land
l2i
i2b
bastore
5: aload 0
iload 1
iconst_2
iadd
ldc 255
lload 2
bipush 40
lshr
land
l2i
i2b
bastore
6: aload 0
iload 1
iconst_1
iadd
ldc 255
lload 2
bipush 48
lshr
land
l2i
i2b
bastore
7: aload 0
iload 1
ldc 255
lload 2
bipush 56
lshr
land
l2i
i2b
bastore
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 bytes [B
0 9 1 offset I
0 9 2 x J
MethodParameters:
Name Flags
bytes final
offset final
x final
private static long readLongFromArrayBigEndian(byte[], int);
descriptor: ([BI)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=4, args_size=2
start local 0 start local 1 0: lconst_0
lstore 2
start local 2 1: lload 2
ldc 255
aload 0
iload 1
bipush 7
iadd
baload
i2l
land
lor
lstore 2
2: lload 2
ldc 255
aload 0
iload 1
bipush 6
iadd
baload
i2l
land
bipush 8
lshl
lor
lstore 2
3: lload 2
ldc 255
aload 0
iload 1
iconst_5
iadd
baload
i2l
land
bipush 16
lshl
lor
lstore 2
4: lload 2
ldc 255
aload 0
iload 1
iconst_4
iadd
baload
i2l
land
bipush 24
lshl
lor
lstore 2
5: lload 2
ldc 255
aload 0
iload 1
iconst_3
iadd
baload
i2l
land
bipush 32
lshl
lor
lstore 2
6: lload 2
ldc 255
aload 0
iload 1
iconst_2
iadd
baload
i2l
land
bipush 40
lshl
lor
lstore 2
7: lload 2
ldc 255
aload 0
iload 1
iconst_1
iadd
baload
i2l
land
bipush 48
lshl
lor
lstore 2
8: lload 2
ldc 255
aload 0
iload 1
baload
i2l
land
bipush 56
lshl
lor
lstore 2
9: lload 2
lreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 bytes [B
0 10 1 offset I
1 10 2 x J
MethodParameters:
Name Flags
bytes final
offset final
private static void reverseByteArray(byte[], int, int);
descriptor: ([BII)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iload 1
istore 3
start local 3 1: iload 1
iload 2
iadd
iconst_1
isub
istore 4
start local 4 2: goto 7
3: StackMap locals: int int
StackMap stack:
aload 0
iload 3
baload
istore 5
start local 5 4: aload 0
iload 3
aload 0
iload 4
baload
bastore
5: aload 0
iload 4
iload 5
bastore
end local 5 6: iinc 3 1
iinc 4 -1
StackMap locals:
StackMap stack:
7: iload 3
iload 4
if_icmplt 3
end local 4 end local 3 8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 data [B
0 9 1 start I
0 9 2 length I
1 8 3 left I
2 8 4 right I
4 6 5 temp B
MethodParameters:
Name Flags
data final
start final
length final
public static byte[] encodeUuidToBinary(java.util.UUID, org.bson.UuidRepresentation);
descriptor: (Ljava/util/UUID;Lorg/bson/UuidRepresentation;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: bipush 16
newarray 8
astore 2
start local 2 1: aload 2
iconst_0
aload 0
invokevirtual java.util.UUID.getMostSignificantBits:()J
invokestatic org.bson.internal.UuidHelper.writeLongToArrayBigEndian:([BIJ)V
2: aload 2
bipush 8
aload 0
invokevirtual java.util.UUID.getLeastSignificantBits:()J
invokestatic org.bson.internal.UuidHelper.writeLongToArrayBigEndian:([BIJ)V
3: invokestatic org.bson.internal.UuidHelper.$SWITCH_TABLE$org$bson$UuidRepresentation:()[I
aload 1
invokevirtual org.bson.UuidRepresentation.ordinal:()I
iaload
tableswitch { // 2 - 5
2: 11
3: 4
4: 8
5: 11
default: 12
}
4: StackMap locals: byte[]
StackMap stack:
aload 2
iconst_0
iconst_4
invokestatic org.bson.internal.UuidHelper.reverseByteArray:([BII)V
5: aload 2
iconst_4
iconst_2
invokestatic org.bson.internal.UuidHelper.reverseByteArray:([BII)V
6: aload 2
bipush 6
iconst_2
invokestatic org.bson.internal.UuidHelper.reverseByteArray:([BII)V
7: goto 13
8: StackMap locals:
StackMap stack:
aload 2
iconst_0
bipush 8
invokestatic org.bson.internal.UuidHelper.reverseByteArray:([BII)V
9: aload 2
bipush 8
bipush 8
invokestatic org.bson.internal.UuidHelper.reverseByteArray:([BII)V
10: goto 13
11: StackMap locals:
StackMap stack:
goto 13
12: StackMap locals:
StackMap stack:
new org.bson.BSONException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected UUID representation: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.bson.BSONException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 uuid Ljava/util/UUID;
0 14 1 uuidRepresentation Lorg/bson/UuidRepresentation;
1 14 2 binaryData [B
MethodParameters:
Name Flags
uuid final
uuidRepresentation final
public static java.util.UUID decodeBinaryToUuid(byte[], byte, org.bson.UuidRepresentation);
descriptor: ([BBLorg/bson/UuidRepresentation;)Ljava/util/UUID;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
arraylength
bipush 16
if_icmpeq 2
1: new org.bson.BsonSerializationException
dup
ldc "Expected length to be 16, not %d."
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
arraylength
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.bson.BsonSerializationException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
astore 3
start local 3 3: iload 1
getstatic org.bson.BsonBinarySubType.UUID_LEGACY:Lorg/bson/BsonBinarySubType;
invokevirtual org.bson.BsonBinarySubType.getValue:()B
if_icmpne 17
4: invokestatic org.bson.internal.UuidHelper.$SWITCH_TABLE$org$bson$UuidRepresentation:()[I
aload 2
invokevirtual org.bson.UuidRepresentation.ordinal:()I
iaload
tableswitch { // 2 - 5
2: 15
3: 5
4: 10
5: 14
default: 16
}
5: StackMap locals: byte[]
StackMap stack:
aload 0
bipush 16
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 3
6: aload 3
iconst_0
iconst_4
invokestatic org.bson.internal.UuidHelper.reverseByteArray:([BII)V
7: aload 3
iconst_4
iconst_2
invokestatic org.bson.internal.UuidHelper.reverseByteArray:([BII)V
8: aload 3
bipush 6
iconst_2
invokestatic org.bson.internal.UuidHelper.reverseByteArray:([BII)V
9: goto 17
10: StackMap locals:
StackMap stack:
aload 0
bipush 16
invokestatic java.util.Arrays.copyOf:([BI)[B
astore 3
11: aload 3
iconst_0
bipush 8
invokestatic org.bson.internal.UuidHelper.reverseByteArray:([BII)V
12: aload 3
bipush 8
bipush 8
invokestatic org.bson.internal.UuidHelper.reverseByteArray:([BII)V
13: goto 17
14: StackMap locals:
StackMap stack:
goto 17
15: StackMap locals:
StackMap stack:
new org.bson.BSONException
dup
ldc "Can not decode a subtype 3 (UUID legacy) BSON binary when the decoder is configured to use the standard UUID representation"
invokespecial org.bson.BSONException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
new org.bson.BSONException
dup
new java.lang.StringBuilder
dup
ldc "Unexpected UUID representation: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.bson.BSONException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
new java.util.UUID
dup
aload 3
iconst_0
invokestatic org.bson.internal.UuidHelper.readLongFromArrayBigEndian:([BI)J
aload 3
bipush 8
invokestatic org.bson.internal.UuidHelper.readLongFromArrayBigEndian:([BI)J
invokespecial java.util.UUID.<init>:(JJ)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 data [B
0 18 1 type B
0 18 2 uuidRepresentation Lorg/bson/UuidRepresentation;
3 18 3 localData [B
MethodParameters:
Name Flags
data final
type final
uuidRepresentation final
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/internal/UuidHelper;
static int[] $SWITCH_TABLE$org$bson$UuidRepresentation();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.bson.internal.UuidHelper.$SWITCH_TABLE$org$bson$UuidRepresentation:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.bson.UuidRepresentation.values:()[Lorg/bson/UuidRepresentation;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.bson.UuidRepresentation.C_SHARP_LEGACY:Lorg/bson/UuidRepresentation;
invokevirtual org.bson.UuidRepresentation.ordinal:()I
iconst_3
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.bson.UuidRepresentation.JAVA_LEGACY:Lorg/bson/UuidRepresentation;
invokevirtual org.bson.UuidRepresentation.ordinal:()I
iconst_4
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.bson.UuidRepresentation.PYTHON_LEGACY:Lorg/bson/UuidRepresentation;
invokevirtual org.bson.UuidRepresentation.ordinal:()I
iconst_5
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.bson.UuidRepresentation.STANDARD:Lorg/bson/UuidRepresentation;
invokevirtual org.bson.UuidRepresentation.ordinal:()I
iconst_2
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic org.bson.UuidRepresentation.UNSPECIFIED:Lorg/bson/UuidRepresentation;
invokevirtual org.bson.UuidRepresentation.ordinal:()I
iconst_1
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
dup
putstatic org.bson.internal.UuidHelper.$SWITCH_TABLE$org$bson$UuidRepresentation:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
}
SourceFile: "UuidHelper.java"