public class org.bson.BsonBinary extends org.bson.BsonValue
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bson.BsonBinary
super_class: org.bson.BsonValue
{
private final byte type;
descriptor: B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final byte[] data;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getstatic org.bson.BsonBinarySubType.BINARY:Lorg/bson/BsonBinarySubType;
aload 1
invokespecial org.bson.BsonBinary.<init>:(Lorg/bson/BsonBinarySubType;[B)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonBinary;
0 2 1 data [B
MethodParameters:
Name Flags
data final
public void <init>(org.bson.BsonBinarySubType, byte[]);
descriptor: (Lorg/bson/BsonBinarySubType;[B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.bson.BsonValue.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "type may not be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.bson.BsonBinary org.bson.BsonBinarySubType byte[]
StackMap stack:
aload 2
ifnonnull 5
4: new java.lang.IllegalArgumentException
dup
ldc "data may not be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.bson.BsonBinarySubType.getValue:()B
putfield org.bson.BsonBinary.type:B
6: aload 0
aload 2
putfield org.bson.BsonBinary.data:[B
7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/bson/BsonBinary;
0 8 1 type Lorg/bson/BsonBinarySubType;
0 8 2 data [B
MethodParameters:
Name Flags
type final
data final
public void <init>(byte, byte[]);
descriptor: (B[B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.bson.BsonValue.<init>:()V
1: aload 2
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "data may not be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.bson.BsonBinary int byte[]
StackMap stack:
aload 0
iload 1
putfield org.bson.BsonBinary.type:B
4: aload 0
aload 2
putfield org.bson.BsonBinary.data:[B
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bson/BsonBinary;
0 6 1 type B
0 6 2 data [B
MethodParameters:
Name Flags
type final
data final
public void <init>(java.util.UUID);
descriptor: (Ljava/util/UUID;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic org.bson.UuidRepresentation.STANDARD:Lorg/bson/UuidRepresentation;
invokespecial org.bson.BsonBinary.<init>:(Ljava/util/UUID;Lorg/bson/UuidRepresentation;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonBinary;
0 2 1 uuid Ljava/util/UUID;
MethodParameters:
Name Flags
uuid final
public void <init>(java.util.UUID, org.bson.UuidRepresentation);
descriptor: (Ljava/util/UUID;Lorg/bson/UuidRepresentation;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.bson.BsonValue.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "uuid may not be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.bson.BsonBinary java.util.UUID org.bson.UuidRepresentation
StackMap stack:
aload 2
ifnonnull 5
4: new java.lang.IllegalArgumentException
dup
ldc "uuidRepresentation may not be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokestatic org.bson.internal.UuidHelper.encodeUuidToBinary:(Ljava/util/UUID;Lorg/bson/UuidRepresentation;)[B
putfield org.bson.BsonBinary.data:[B
6: aload 0
aload 2
getstatic org.bson.UuidRepresentation.STANDARD:Lorg/bson/UuidRepresentation;
if_acmpne 8
7: getstatic org.bson.BsonBinarySubType.UUID_STANDARD:Lorg/bson/BsonBinarySubType;
invokevirtual org.bson.BsonBinarySubType.getValue:()B
goto 9
8: StackMap locals:
StackMap stack: org.bson.BsonBinary
getstatic org.bson.BsonBinarySubType.UUID_LEGACY:Lorg/bson/BsonBinarySubType;
invokevirtual org.bson.BsonBinarySubType.getValue:()B
9: StackMap locals: org.bson.BsonBinary java.util.UUID org.bson.UuidRepresentation
StackMap stack: org.bson.BsonBinary int
putfield org.bson.BsonBinary.type:B
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/bson/BsonBinary;
0 11 1 uuid Ljava/util/UUID;
0 11 2 uuidRepresentation Lorg/bson/UuidRepresentation;
MethodParameters:
Name Flags
uuid final
uuidRepresentation final
public java.util.UUID asUuid();
descriptor: ()Ljava/util/UUID;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonBinary.type:B
invokestatic org.bson.BsonBinarySubType.isUuid:(B)Z
ifne 2
1: new org.bson.BsonInvalidOperationException
dup
ldc "type must be a UUID subtype."
invokespecial org.bson.BsonInvalidOperationException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.bson.BsonBinary.type:B
getstatic org.bson.BsonBinarySubType.UUID_STANDARD:Lorg/bson/BsonBinarySubType;
invokevirtual org.bson.BsonBinarySubType.getValue:()B
if_icmpeq 4
3: new org.bson.BsonInvalidOperationException
dup
ldc "uuidRepresentation must be set to return the correct UUID."
invokespecial org.bson.BsonInvalidOperationException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.bson.BsonBinary.data:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
aload 0
getfield org.bson.BsonBinary.type:B
getstatic org.bson.UuidRepresentation.STANDARD:Lorg/bson/UuidRepresentation;
invokestatic org.bson.internal.UuidHelper.decodeBinaryToUuid:([BBLorg/bson/UuidRepresentation;)Ljava/util/UUID;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bson/BsonBinary;
public java.util.UUID asUuid(org.bson.UuidRepresentation);
descriptor: (Lorg/bson/UuidRepresentation;)Ljava/util/UUID;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: ldc "uuidRepresentation"
aload 1
invokestatic org.bson.assertions.Assertions.notNull:(Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
getstatic org.bson.UuidRepresentation.STANDARD:Lorg/bson/UuidRepresentation;
if_acmpne 3
2: getstatic org.bson.BsonBinarySubType.UUID_STANDARD:Lorg/bson/BsonBinarySubType;
invokevirtual org.bson.BsonBinarySubType.getValue:()B
goto 4
3: StackMap locals:
StackMap stack:
getstatic org.bson.BsonBinarySubType.UUID_LEGACY:Lorg/bson/BsonBinarySubType;
invokevirtual org.bson.BsonBinarySubType.getValue:()B
4: StackMap locals:
StackMap stack: int
istore 2
start local 2 5: aload 0
getfield org.bson.BsonBinary.type:B
iload 2
if_icmpeq 7
6: new org.bson.BsonInvalidOperationException
dup
ldc "uuidRepresentation does not match current uuidRepresentation."
invokespecial org.bson.BsonInvalidOperationException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals: int
StackMap stack:
aload 0
getfield org.bson.BsonBinary.data:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
aload 0
getfield org.bson.BsonBinary.type:B
aload 1
invokestatic org.bson.internal.UuidHelper.decodeBinaryToUuid:([BBLorg/bson/UuidRepresentation;)Ljava/util/UUID;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/bson/BsonBinary;
0 8 1 uuidRepresentation Lorg/bson/UuidRepresentation;
5 8 2 uuidType B
MethodParameters:
Name Flags
uuidRepresentation final
public org.bson.BsonType getBsonType();
descriptor: ()Lorg/bson/BsonType;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic org.bson.BsonType.BINARY:Lorg/bson/BsonType;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonBinary;
public byte getType();
descriptor: ()B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonBinary.type:B
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonBinary;
public byte[] getData();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonBinary.data:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonBinary;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ifnull 3
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 4
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 1
checkcast org.bson.BsonBinary
astore 2
start local 2 5: aload 0
getfield org.bson.BsonBinary.data:[B
aload 2
getfield org.bson.BsonBinary.data:[B
invokestatic java.util.Arrays.equals:([B[B)Z
ifne 7
6: iconst_0
ireturn
7: StackMap locals: org.bson.BsonBinary
StackMap stack:
aload 0
getfield org.bson.BsonBinary.type:B
aload 2
getfield org.bson.BsonBinary.type:B
if_icmpeq 9
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/bson/BsonBinary;
0 10 1 o Ljava/lang/Object;
5 10 2 that Lorg/bson/BsonBinary;
MethodParameters:
Name Flags
o final
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.bson.BsonBinary.type:B
istore 1
start local 1 1: bipush 31
iload 1
imul
aload 0
getfield org.bson.BsonBinary.data:[B
invokestatic java.util.Arrays.hashCode:([B)I
iadd
istore 1
2: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bson/BsonBinary;
1 3 1 result I
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 "BsonBinary{type="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield org.bson.BsonBinary.type:B
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
2: ldc ", data="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.bson.BsonBinary.data:[B
invokestatic java.util.Arrays.toString:([B)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
4: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bson/BsonBinary;
static org.bson.BsonBinary clone(org.bson.BsonBinary);
descriptor: (Lorg/bson/BsonBinary;)Lorg/bson/BsonBinary;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new org.bson.BsonBinary
dup
aload 0
getfield org.bson.BsonBinary.type:B
aload 0
getfield org.bson.BsonBinary.data:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
invokespecial org.bson.BsonBinary.<init>:(B[B)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 from Lorg/bson/BsonBinary;
MethodParameters:
Name Flags
from final
}
SourceFile: "BsonBinary.java"