public class org.graalvm.compiler.salver.serialize.JSONSerializer extends org.graalvm.compiler.salver.serialize.AbstractSerializer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.graalvm.compiler.salver.serialize.JSONSerializer
super_class: org.graalvm.compiler.salver.serialize.AbstractSerializer
{
public static final java.lang.String MEDIA_TYPE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "application/json"
public static final java.lang.String FILE_EXTENSION;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "json"
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.graalvm.compiler.salver.serialize.AbstractSerializer.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/salver/serialize/JSONSerializer;
public void <init>(org.graalvm.compiler.salver.writer.DumpWriter);
descriptor: (Lorg/graalvm/compiler/salver/writer/DumpWriter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.graalvm.compiler.salver.serialize.AbstractSerializer.<init>:(Lorg/graalvm/compiler/salver/writer/DumpWriter;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/graalvm/compiler/salver/serialize/JSONSerializer;
0 2 1 writer Lorg/graalvm/compiler/salver/writer/DumpWriter;
MethodParameters:
Name Flags
writer
public org.graalvm.compiler.salver.serialize.JSONSerializer serialize(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lorg/graalvm/compiler/salver/serialize/JSONSerializer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.graalvm.compiler.salver.serialize.JSONSerializer.writer:Lorg/graalvm/compiler/salver/writer/DumpWriter;
ifnull 2
1: aload 0
getfield org.graalvm.compiler.salver.serialize.JSONSerializer.writer:Lorg/graalvm/compiler/salver/writer/DumpWriter;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 1
invokestatic org.graalvm.compiler.salver.serialize.JSONSerializer.appendValue:(Ljava/lang/StringBuilder;Ljava/lang/Object;)Ljava/lang/StringBuilder;
bipush 10
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokeinterface org.graalvm.compiler.salver.writer.DumpWriter.write:(Ljava/lang/CharSequence;)Lorg/graalvm/compiler/salver/writer/DumpWriter;
pop
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/graalvm/compiler/salver/serialize/JSONSerializer;
0 3 1 obj Ljava/lang/Object;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
obj
public static java.lang.StringBuilder stringify(java.lang.StringBuilder, java.lang.Object);
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/Object;)Ljava/lang/StringBuilder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.graalvm.compiler.salver.serialize.JSONSerializer.appendValue:(Ljava/lang/StringBuilder;Ljava/lang/Object;)Ljava/lang/StringBuilder;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 sb Ljava/lang/StringBuilder;
0 1 1 obj Ljava/lang/Object;
MethodParameters:
Name Flags
sb
obj
public static java.lang.String stringify(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
invokestatic org.graalvm.compiler.salver.serialize.JSONSerializer.appendValue:(Ljava/lang/StringBuilder;Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public static java.lang.String getMediaType();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "application/json"
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.String getFileExtension();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "json"
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.StringBuilder appendValue(java.lang.StringBuilder, java.lang.Object);
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/Object;)Ljava/lang/StringBuilder;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.util.Map
ifeq 2
1: aload 0
aload 1
checkcast java.util.Map
invokestatic org.graalvm.compiler.salver.serialize.JSONSerializer.appendDict:(Ljava/lang/StringBuilder;Ljava/util/Map;)Ljava/lang/StringBuilder;
areturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof java.util.List
ifeq 4
3: aload 0
aload 1
checkcast java.util.List
invokestatic org.graalvm.compiler.salver.serialize.JSONSerializer.appendList:(Ljava/lang/StringBuilder;Ljava/util/List;)Ljava/lang/StringBuilder;
areturn
4: StackMap locals:
StackMap stack:
aload 1
instanceof byte[]
ifeq 6
5: aload 0
aload 1
checkcast byte[]
invokestatic org.graalvm.compiler.salver.serialize.JSONSerializer.appendByteArray:(Ljava/lang/StringBuilder;[B)Ljava/lang/StringBuilder;
areturn
6: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.Number
ifeq 8
7: aload 0
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
areturn
8: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.Boolean
ifeq 10
9: aload 0
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
areturn
10: StackMap locals:
StackMap stack:
aload 1
ifnonnull 12
11: aload 0
ldc "null"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
areturn
12: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokestatic org.graalvm.compiler.salver.serialize.JSONSerializer.appendString:(Ljava/lang/StringBuilder;Ljava/lang/String;)Ljava/lang/StringBuilder;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 sb Ljava/lang/StringBuilder;
0 13 1 val Ljava/lang/Object;
MethodParameters:
Name Flags
sb
val
private static java.lang.StringBuilder appendDict(java.lang.StringBuilder, java.util.Map<java.lang.Object, java.lang.Object>);
descriptor: (Ljava/lang/StringBuilder;Ljava/util/Map;)Ljava/lang/StringBuilder;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
bipush 123
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
1: iconst_0
istore 2
start local 2 2: aload 1
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 11
StackMap locals: java.lang.StringBuilder java.util.Map int top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 4: iload 2
ifeq 7
5: aload 0
bipush 44
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
6: goto 8
7: StackMap locals: java.lang.StringBuilder java.util.Map int java.util.Map$Entry java.util.Iterator
StackMap stack:
iconst_1
istore 2
8: StackMap locals:
StackMap stack:
aload 0
aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokestatic org.graalvm.compiler.salver.serialize.JSONSerializer.appendString:(Ljava/lang/StringBuilder;Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: aload 0
bipush 58
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
10: aload 0
aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokestatic org.graalvm.compiler.salver.serialize.JSONSerializer.appendValue:(Ljava/lang/StringBuilder;Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
end local 3 11: StackMap locals: java.lang.StringBuilder java.util.Map int top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
12: aload 0
bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 sb Ljava/lang/StringBuilder;
0 13 1 dict Ljava/util/Map<Ljava/lang/Object;Ljava/lang/Object;>;
2 13 2 comma Z
4 11 3 entry Ljava/util/Map$Entry<Ljava/lang/Object;Ljava/lang/Object;>;
Signature: (Ljava/lang/StringBuilder;Ljava/util/Map<Ljava/lang/Object;Ljava/lang/Object;>;)Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
sb
dict
private static java.lang.StringBuilder appendList(java.lang.StringBuilder, java.util.List<java.lang.Object>);
descriptor: (Ljava/lang/StringBuilder;Ljava/util/List;)Ljava/lang/StringBuilder;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
bipush 91
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
1: iconst_0
istore 2
start local 2 2: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 9
StackMap locals: java.lang.StringBuilder java.util.List int top java.util.Iterator
StackMap stack:
3: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 3
start local 3 4: iload 2
ifeq 7
5: aload 0
bipush 44
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
6: goto 8
7: StackMap locals: java.lang.StringBuilder java.util.List int java.lang.Object java.util.Iterator
StackMap stack:
iconst_1
istore 2
8: StackMap locals:
StackMap stack:
aload 0
aload 3
invokestatic org.graalvm.compiler.salver.serialize.JSONSerializer.appendValue:(Ljava/lang/StringBuilder;Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
end local 3 9: StackMap locals: java.lang.StringBuilder java.util.List int top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
10: aload 0
bipush 93
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 sb Ljava/lang/StringBuilder;
0 11 1 list Ljava/util/List<Ljava/lang/Object;>;
2 11 2 comma Z
4 9 3 val Ljava/lang/Object;
Signature: (Ljava/lang/StringBuilder;Ljava/util/List<Ljava/lang/Object;>;)Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
sb
list
private static java.lang.StringBuilder appendString(java.lang.StringBuilder, java.lang.String);
descriptor: (Ljava/lang/StringBuilder;Ljava/lang/String;)Ljava/lang/StringBuilder;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
bipush 34
invokevirtual java.lang.StringBuilder.append:(C)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
lookupswitch { // 7
8: 9
9: 17
10: 13
12: 11
13: 15
34: 5
92: 7
default: 19
}
5: StackMap locals: int
StackMap stack:
aload 0
ldc "\\\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: goto 25
7: StackMap locals:
StackMap stack:
aload 0
ldc "\\\\"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: goto 25
9: StackMap locals:
StackMap stack:
aload 0
ldc "\\b"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: goto 25
11: StackMap locals:
StackMap stack:
aload 0
ldc "\\f"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
12: goto 25
13: StackMap locals:
StackMap stack:
aload 0
ldc "\\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
14: goto 25
15: StackMap locals:
StackMap stack:
aload 0
ldc "\\r"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
16: goto 25
17: StackMap locals:
StackMap stack:
aload 0
ldc "\\t"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
18: goto 25
19: StackMap locals:
StackMap stack:
iload 3
invokestatic java.lang.Character.isISOControl:(C)Z
ifeq 24
20: aload 0
ldc "\\u00"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
21: aload 0
iload 3
iconst_4
ishr
bipush 15
iand
bipush 16
invokestatic java.lang.Character.forDigit:(II)C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
22: aload 0
iload 3
bipush 15
iand
bipush 16
invokestatic java.lang.Character.forDigit:(II)C
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
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
bipush 34
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 sb Ljava/lang/StringBuilder;
0 28 1 str Ljava/lang/String;
2 27 2 i I
4 25 3 c C
MethodParameters:
Name Flags
sb
str
private static java.lang.StringBuilder appendByteArray(java.lang.StringBuilder, byte[]);
descriptor: (Ljava/lang/StringBuilder;[B)Ljava/lang/StringBuilder;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 1
arraylength
ifle 8
1: aload 0
ldc "0x"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 6
StackMap locals: java.lang.StringBuilder byte[] top int int byte[]
StackMap stack:
3: aload 5
iload 3
baload
istore 2
start local 2 4: aload 0
ldc "%02x"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 2
invokestatic java.lang.Byte.valueOf:(B)Ljava/lang/Byte;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 2 5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
iload 4
if_icmplt 3
7: aload 0
areturn
8: StackMap locals: java.lang.StringBuilder byte[]
StackMap stack:
aload 0
ldc "null"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 sb Ljava/lang/StringBuilder;
0 9 1 arr [B
4 5 2 b B
MethodParameters:
Name Flags
sb
arr
public org.graalvm.compiler.salver.serialize.Serializer serialize(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lorg/graalvm/compiler/salver/serialize/Serializer;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokevirtual org.graalvm.compiler.salver.serialize.JSONSerializer.serialize:(Ljava/lang/Object;)Lorg/graalvm/compiler/salver/serialize/JSONSerializer;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.io.IOException
}
SourceFile: "JSONSerializer.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map