public abstract class org.bson.BsonValue
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.bson.BsonValue
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
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/BsonValue;
public abstract org.bson.BsonType getBsonType();
descriptor: ()Lorg/bson/BsonType;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public org.bson.BsonDocument asDocument();
descriptor: ()Lorg/bson/BsonDocument;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.DOCUMENT:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonDocument
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public org.bson.BsonArray asArray();
descriptor: ()Lorg/bson/BsonArray;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.ARRAY:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonArray
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public org.bson.BsonString asString();
descriptor: ()Lorg/bson/BsonString;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.STRING:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonString
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public org.bson.BsonNumber asNumber();
descriptor: ()Lorg/bson/BsonNumber;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.bson.BsonValue.getBsonType:()Lorg/bson/BsonType;
getstatic org.bson.BsonType.INT32:Lorg/bson/BsonType;
if_acmpeq 4
aload 0
invokevirtual org.bson.BsonValue.getBsonType:()Lorg/bson/BsonType;
getstatic org.bson.BsonType.INT64:Lorg/bson/BsonType;
if_acmpeq 4
aload 0
invokevirtual org.bson.BsonValue.getBsonType:()Lorg/bson/BsonType;
getstatic org.bson.BsonType.DOUBLE:Lorg/bson/BsonType;
if_acmpeq 4
1: new org.bson.BsonInvalidOperationException
dup
ldc "Value expected to be of a numerical BSON type is of unexpected type %s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
2: aload 0
invokevirtual org.bson.BsonValue.getBsonType:()Lorg/bson/BsonType;
aastore
3: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.bson.BsonInvalidOperationException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
checkcast org.bson.BsonNumber
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bson/BsonValue;
public org.bson.BsonInt32 asInt32();
descriptor: ()Lorg/bson/BsonInt32;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.INT32:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonInt32
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public org.bson.BsonInt64 asInt64();
descriptor: ()Lorg/bson/BsonInt64;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.INT64:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonInt64
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public org.bson.BsonDecimal128 asDecimal128();
descriptor: ()Lorg/bson/BsonDecimal128;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.DECIMAL128:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonDecimal128
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public org.bson.BsonDouble asDouble();
descriptor: ()Lorg/bson/BsonDouble;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.DOUBLE:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonDouble
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public org.bson.BsonBoolean asBoolean();
descriptor: ()Lorg/bson/BsonBoolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.BOOLEAN:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonBoolean
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public org.bson.BsonObjectId asObjectId();
descriptor: ()Lorg/bson/BsonObjectId;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.OBJECT_ID:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonObjectId
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public org.bson.BsonDbPointer asDBPointer();
descriptor: ()Lorg/bson/BsonDbPointer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.DB_POINTER:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonDbPointer
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public org.bson.BsonTimestamp asTimestamp();
descriptor: ()Lorg/bson/BsonTimestamp;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.TIMESTAMP:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonTimestamp
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public org.bson.BsonBinary asBinary();
descriptor: ()Lorg/bson/BsonBinary;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.BINARY:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonBinary
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public org.bson.BsonDateTime asDateTime();
descriptor: ()Lorg/bson/BsonDateTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.DATE_TIME:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonDateTime
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public org.bson.BsonSymbol asSymbol();
descriptor: ()Lorg/bson/BsonSymbol;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.SYMBOL:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonSymbol
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public org.bson.BsonRegularExpression asRegularExpression();
descriptor: ()Lorg/bson/BsonRegularExpression;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.REGULAR_EXPRESSION:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonRegularExpression
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public org.bson.BsonJavaScript asJavaScript();
descriptor: ()Lorg/bson/BsonJavaScript;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.JAVASCRIPT:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonJavaScript
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public org.bson.BsonJavaScriptWithScope asJavaScriptWithScope();
descriptor: ()Lorg/bson/BsonJavaScriptWithScope;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bson.BsonType.JAVASCRIPT_WITH_SCOPE:Lorg/bson/BsonType;
invokevirtual org.bson.BsonValue.throwIfInvalidType:(Lorg/bson/BsonType;)V
1: aload 0
checkcast org.bson.BsonJavaScriptWithScope
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public boolean isNull();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonNull
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isDocument();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonDocument
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isArray();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonArray
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isString();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonString
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isNumber();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.bson.BsonValue.isInt32:()Z
ifne 1
aload 0
invokevirtual org.bson.BsonValue.isInt64:()Z
ifne 1
aload 0
invokevirtual org.bson.BsonValue.isDouble:()Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bson/BsonValue;
public boolean isInt32();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonInt32
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isInt64();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonInt64
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isDecimal128();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonDecimal128
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isDouble();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonDouble
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isBoolean();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonBoolean
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isObjectId();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonObjectId
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isDBPointer();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonDbPointer
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isTimestamp();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonTimestamp
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isBinary();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonBinary
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isDateTime();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonDateTime
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isSymbol();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonSymbol
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isRegularExpression();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonRegularExpression
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isJavaScript();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonJavaScript
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
public boolean isJavaScriptWithScope();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bson.BsonJavaScriptWithScope
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/BsonValue;
private void throwIfInvalidType(org.bson.BsonType);
descriptor: (Lorg/bson/BsonType;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.bson.BsonValue.getBsonType:()Lorg/bson/BsonType;
aload 1
if_acmpeq 4
1: new org.bson.BsonInvalidOperationException
dup
ldc "Value expected to be of type %s is of unexpected type %s"
iconst_2
anewarray java.lang.Object
dup
iconst_0
2: aload 1
aastore
dup
iconst_1
aload 0
invokevirtual org.bson.BsonValue.getBsonType:()Lorg/bson/BsonType;
aastore
3: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial org.bson.BsonInvalidOperationException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bson/BsonValue;
0 5 1 expectedType Lorg/bson/BsonType;
MethodParameters:
Name Flags
expectedType final
}
SourceFile: "BsonValue.java"