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=4, 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 { // 1 - 4
1: 11
2: 4
3: 8
4: 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
ldc "Unexpected UUID representation"
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=3, 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:
iload 1
getstatic org.bson.BsonBinarySubType.UUID_LEGACY:Lorg/bson/BsonBinarySubType;
invokevirtual org.bson.BsonBinarySubType.getValue:()B
if_icmpne 13
3: invokestatic org.bson.internal.UuidHelper.$SWITCH_TABLE$org$bson$UuidRepresentation:()[I
aload 2
invokevirtual org.bson.UuidRepresentation.ordinal:()I
iaload
tableswitch { // 1 - 4
1: 11
2: 4
3: 8
4: 11
default: 12
}
4: StackMap locals:
StackMap stack:
aload 0
iconst_0
iconst_4
invokestatic org.bson.internal.UuidHelper.reverseByteArray:([BII)V
5: aload 0
iconst_4
iconst_2
invokestatic org.bson.internal.UuidHelper.reverseByteArray:([BII)V
6: aload 0
bipush 6
iconst_2
invokestatic org.bson.internal.UuidHelper.reverseByteArray:([BII)V
7: goto 13
8: StackMap locals:
StackMap stack:
aload 0
iconst_0
bipush 8
invokestatic org.bson.internal.UuidHelper.reverseByteArray:([BII)V
9: aload 0
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
ldc "Unexpected UUID representation"
invokespecial org.bson.BSONException.<init>:(Ljava/lang/String;)V
athrow
13: StackMap locals:
StackMap stack:
new java.util.UUID
dup
aload 0
iconst_0
invokestatic org.bson.internal.UuidHelper.readLongFromArrayBigEndian:([BI)J
aload 0
bipush 8
invokestatic org.bson.internal.UuidHelper.readLongFromArrayBigEndian:([BI)J
invokespecial java.util.UUID.<init>:(JJ)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 data [B
0 14 1 type B
0 14 2 uuidRepresentation Lorg/bson/UuidRepresentation;
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_2
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_3
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_4
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_1
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: 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
}
SourceFile: "UuidHelper.java"