public class com.mongodb.util.JSON
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.util.JSON
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/util/JSON;
public static java.lang.String serialize(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 0
aload 1
invokestatic com.mongodb.util.JSON.serialize:(Ljava/lang/Object;Ljava/lang/StringBuilder;)V
2: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 object Ljava/lang/Object;
1 3 1 buf Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
object final
public static void serialize(java.lang.Object, java.lang.StringBuilder);
descriptor: (Ljava/lang/Object;Ljava/lang/StringBuilder;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: invokestatic com.mongodb.util.JSONSerializers.getLegacy:()Lcom/mongodb/util/ObjectSerializer;
aload 0
aload 1
invokeinterface com.mongodb.util.ObjectSerializer.serialize:(Ljava/lang/Object;Ljava/lang/StringBuilder;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 object Ljava/lang/Object;
0 2 1 buf Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
object final
buf final
public static java.lang.Object parse(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
invokestatic com.mongodb.util.JSON.parse:(Ljava/lang/String;Lorg/bson/BSONCallback;)Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 jsonString Ljava/lang/String;
MethodParameters:
Name Flags
jsonString final
public static java.lang.Object parse(java.lang.String, org.bson.BSONCallback);
descriptor: (Ljava/lang/String;Lorg/bson/BSONCallback;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ifnull 1
aload 0
invokevirtual java.lang.String.trim:()Ljava/lang/String;
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
1: StackMap locals:
StackMap stack:
aconst_null
areturn
2: StackMap locals:
StackMap stack:
new com.mongodb.util.JSONParser
dup
aload 0
aload 1
invokespecial com.mongodb.util.JSONParser.<init>:(Ljava/lang/String;Lorg/bson/BSONCallback;)V
astore 2
start local 2 3: aload 2
invokevirtual com.mongodb.util.JSONParser.parse:()Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 s Ljava/lang/String;
0 4 1 c Lorg/bson/BSONCallback;
3 4 2 p Lcom/mongodb/util/JSONParser;
MethodParameters:
Name Flags
s final
c final
static void string(java.lang.StringBuilder, java.lang.String);
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/String;)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
1: iconst_0
istore 2
start local 2 2: goto 26
3: StackMap locals: int
StackMap stack:
aload 1
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 3
start local 3 4: iload 3
bipush 92
if_icmpne 7
5: aload 0
ldc "\\\\"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: goto 25
StackMap locals: int
StackMap stack:
7: iload 3
bipush 34
if_icmpne 10
8: aload 0
ldc "\\\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: goto 25
StackMap locals:
StackMap stack:
10: iload 3
bipush 10
if_icmpne 13
11: aload 0
ldc "\\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
12: goto 25
StackMap locals:
StackMap stack:
13: iload 3
bipush 13
if_icmpne 16
14: aload 0
ldc "\\r"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: goto 25
StackMap locals:
StackMap stack:
16: iload 3
bipush 9
if_icmpne 19
17: aload 0
ldc "\\t"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
18: goto 25
StackMap locals:
StackMap stack:
19: iload 3
bipush 8
if_icmpne 22
20: aload 0
ldc "\\b"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
21: goto 25
StackMap locals:
StackMap stack:
22: iload 3
bipush 32
if_icmpge 24
23: goto 25
24: StackMap locals:
StackMap stack:
aload 0
iload 3
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 3 25: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
26: iload 2
aload 1
invokevirtual java.lang.String.length:()I
if_icmplt 3
end local 2 27: aload 0
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
28: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 a Ljava/lang/StringBuilder;
0 29 1 s Ljava/lang/String;
2 27 2 i I
4 25 3 c C
MethodParameters:
Name Flags
a final
s final
}
SourceFile: "JSON.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()