public class com.oracle.svm.hosted.dashboard.ToJson
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.oracle.svm.hosted.dashboard.ToJson
super_class: java.lang.Object
{
private static final java.lang.String EMPTY;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: ""
private static final java.lang.String NEW_LINE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "\n"
private static final char TAB;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 9
private static final java.lang.String OPEN_OBJECT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "{"
private static final java.lang.String CLOSE_OBJECT;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "}"
private static final java.lang.String OPEN_ARRAY;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "["
private static final java.lang.String CLOSE_ARRAY;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "]"
private static final char QUOTE;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 34
private static final char SLASH;
descriptor: C
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 92
private static final java.util.BitSet ESC;
descriptor: Ljava/util/BitSet;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.util.Map<java.lang.Character, java.lang.Character> MAP;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Character;Ljava/lang/Character;>;
private final boolean pretty;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String newPrefix;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String prefi;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String colon;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int depth;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.String pref;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private final java.util.List<java.lang.String> prepends;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Ljava/lang/String;>;
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: ldc Lcom/oracle/svm/hosted/dashboard/ToJson;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic com.oracle.svm.hosted.dashboard.ToJson.$assertionsDisabled:Z
3: bipush 8
anewarray java.lang.Character
dup
iconst_0
bipush 92
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
dup
iconst_1
bipush 34
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
dup
iconst_2
bipush 8
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
dup
iconst_3
bipush 12
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
dup
iconst_4
bipush 10
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
dup
iconst_5
bipush 13
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
dup
bipush 6
bipush 9
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
dup
bipush 7
bipush 47
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic get()Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
java/util/BitSet.<init>()V (8)
()Ljava/util/BitSet;
invokedynamic accept()Ljava/util/function/BiConsumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)V
java/util/BitSet.set(I)V (5)
(Ljava/util/BitSet;Ljava/lang/Character;)V
invokedynamic accept()Ljava/util/function/BiConsumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;Ljava/lang/Object;)V
java/util/BitSet.or(Ljava/util/BitSet;)V (5)
(Ljava/util/BitSet;Ljava/util/BitSet;)V
invokeinterface java.util.stream.Stream.collect:(Ljava/util/function/Supplier;Ljava/util/function/BiConsumer;Ljava/util/function/BiConsumer;)Ljava/lang/Object;
checkcast java.util.BitSet
putstatic com.oracle.svm.hosted.dashboard.ToJson.ESC:Ljava/util/BitSet;
4: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic com.oracle.svm.hosted.dashboard.ToJson.MAP:Ljava/util/Map;
5: getstatic com.oracle.svm.hosted.dashboard.ToJson.MAP:Ljava/util/Map;
bipush 8
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
bipush 98
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: getstatic com.oracle.svm.hosted.dashboard.ToJson.MAP:Ljava/util/Map;
bipush 12
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
bipush 102
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: getstatic com.oracle.svm.hosted.dashboard.ToJson.MAP:Ljava/util/Map;
bipush 10
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
bipush 110
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
8: getstatic com.oracle.svm.hosted.dashboard.ToJson.MAP:Ljava/util/Map;
bipush 13
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
bipush 114
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: getstatic com.oracle.svm.hosted.dashboard.ToJson.MAP:Ljava/util/Map;
bipush 9
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
bipush 116
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokespecial com.oracle.svm.hosted.dashboard.ToJson.<init>:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/oracle/svm/hosted/dashboard/ToJson;
public void <init>(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield com.oracle.svm.hosted.dashboard.ToJson.depth:I
2: aload 0
new com.oracle.svm.hosted.dashboard.ToJson$1
dup
aload 0
invokespecial com.oracle.svm.hosted.dashboard.ToJson$1.<init>:(Lcom/oracle/svm/hosted/dashboard/ToJson;)V
putfield com.oracle.svm.hosted.dashboard.ToJson.prepends:Ljava/util/List;
3: aload 0
iload 1
putfield com.oracle.svm.hosted.dashboard.ToJson.pretty:Z
4: iload 1
ifeq 9
5: aload 0
ldc ",\n"
putfield com.oracle.svm.hosted.dashboard.ToJson.prefi:Ljava/lang/String;
6: aload 0
ldc "\n"
putfield com.oracle.svm.hosted.dashboard.ToJson.newPrefix:Ljava/lang/String;
7: aload 0
ldc ": "
putfield com.oracle.svm.hosted.dashboard.ToJson.colon:Ljava/lang/String;
8: goto 12
9: StackMap locals: com.oracle.svm.hosted.dashboard.ToJson int
StackMap stack:
aload 0
ldc ","
putfield com.oracle.svm.hosted.dashboard.ToJson.prefi:Ljava/lang/String;
10: aload 0
ldc ""
putfield com.oracle.svm.hosted.dashboard.ToJson.newPrefix:Ljava/lang/String;
11: aload 0
ldc ":"
putfield com.oracle.svm.hosted.dashboard.ToJson.colon:Ljava/lang/String;
12: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.oracle.svm.hosted.dashboard.ToJson.newPrefix:Ljava/lang/String;
putfield com.oracle.svm.hosted.dashboard.ToJson.pref:Ljava/lang/String;
13: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lcom/oracle/svm/hosted/dashboard/ToJson;
0 14 1 pretty Z
MethodParameters:
Name Flags
pretty
public void (java.io.PrintWriter);
descriptor: (Ljava/io/PrintWriter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc "{"
invokevirtual java.io.PrintWriter.append:(Ljava/lang/CharSequence;)Ljava/io/PrintWriter;
pop
1: aload 0
dup
getfield com.oracle.svm.hosted.dashboard.ToJson.depth:I
iconst_1
iadd
putfield com.oracle.svm.hosted.dashboard.ToJson.depth:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/svm/hosted/dashboard/ToJson;
0 3 1 writer Ljava/io/PrintWriter;
MethodParameters:
Name Flags
writer
private void prepend(java.io.PrintWriter);
descriptor: (Ljava/io/PrintWriter;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.oracle.svm.hosted.dashboard.ToJson.pretty:Z
ifeq 2
1: aload 1
aload 0
getfield com.oracle.svm.hosted.dashboard.ToJson.prepends:Ljava/util/List;
aload 0
getfield com.oracle.svm.hosted.dashboard.ToJson.depth:I
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.CharSequence
invokevirtual java.io.PrintWriter.append:(Ljava/lang/CharSequence;)Ljava/io/PrintWriter;
pop
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/oracle/svm/hosted/dashboard/ToJson;
0 3 1 writer Ljava/io/PrintWriter;
MethodParameters:
Name Flags
writer
public void put(java.io.PrintWriter, java.lang.String, com.oracle.svm.hosted.dashboard.ToJson$JsonValue);
descriptor: (Ljava/io/PrintWriter;Ljava/lang/String;Lcom/oracle/svm/hosted/dashboard/ToJson$JsonValue;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield com.oracle.svm.hosted.dashboard.ToJson.depth:I
ifne 2
1: aload 0
aload 1
invokevirtual com.oracle.svm.hosted.dashboard.ToJson.printHeader:(Ljava/io/PrintWriter;)V
2: StackMap locals:
StackMap stack:
aload 3
ifnull 6
3: aload 1
aload 0
getfield com.oracle.svm.hosted.dashboard.ToJson.pref:Ljava/lang/String;
invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
4: aload 0
aload 1
aload 2
aload 3
invokevirtual com.oracle.svm.hosted.dashboard.ToJson.putProperty:(Ljava/io/PrintWriter;Ljava/lang/String;Lcom/oracle/svm/hosted/dashboard/ToJson$JsonValue;)V
5: aload 0
aload 0
getfield com.oracle.svm.hosted.dashboard.ToJson.prefi:Ljava/lang/String;
putfield com.oracle.svm.hosted.dashboard.ToJson.pref:Ljava/lang/String;
6: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/oracle/svm/hosted/dashboard/ToJson;
0 7 1 writer Ljava/io/PrintWriter;
0 7 2 name Ljava/lang/String;
0 7 3 value Lcom/oracle/svm/hosted/dashboard/ToJson$JsonValue;
MethodParameters:
Name Flags
writer
name
value
private void putProperty(java.io.PrintWriter, java.lang.String, com.oracle.svm.hosted.dashboard.ToJson$JsonValue);
descriptor: (Ljava/io/PrintWriter;Ljava/lang/String;Lcom/oracle/svm/hosted/dashboard/ToJson$JsonValue;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokevirtual com.oracle.svm.hosted.dashboard.ToJson.prepend:(Ljava/io/PrintWriter;)V
1: aload 1
aload 2
invokestatic com.oracle.svm.hosted.dashboard.ToJson.dumpString:(Ljava/io/PrintWriter;Ljava/lang/String;)V
2: aload 1
aload 0
getfield com.oracle.svm.hosted.dashboard.ToJson.colon:Ljava/lang/String;
invokevirtual java.io.PrintWriter.append:(Ljava/lang/CharSequence;)Ljava/io/PrintWriter;
pop
3: aload 3
aload 1
aload 0
invokevirtual com.oracle.svm.hosted.dashboard.ToJson$JsonValue.dump:(Ljava/io/PrintWriter;Lcom/oracle/svm/hosted/dashboard/ToJson;)V
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/oracle/svm/hosted/dashboard/ToJson;
0 5 1 writer Ljava/io/PrintWriter;
0 5 2 name Ljava/lang/String;
0 5 3 value Lcom/oracle/svm/hosted/dashboard/ToJson$JsonValue;
MethodParameters:
Name Flags
writer
name
value
private static void dumpString(java.io.PrintWriter, java.lang.String);
descriptor: (Ljava/io/PrintWriter;Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
bipush 34
invokevirtual java.io.PrintWriter.append:(C)Ljava/io/PrintWriter;
pop
1: iconst_0
istore 2
start local 2 2: aload 1
invokevirtual java.lang.String.length:()I
istore 3
start local 3 3: goto 11
4: StackMap locals: int int
StackMap stack:
aload 1
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 5: getstatic com.oracle.svm.hosted.dashboard.ToJson.ESC:Ljava/util/BitSet;
iload 4
invokevirtual java.util.BitSet.get:(I)Z
ifeq 9
6: aload 0
bipush 92
invokevirtual java.io.PrintWriter.append:(C)Ljava/io/PrintWriter;
pop
7: aload 0
getstatic com.oracle.svm.hosted.dashboard.ToJson.MAP:Ljava/util/Map;
iload 4
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
iload 4
invokestatic java.lang.Character.valueOf:(C)Ljava/lang/Character;
invokeinterface java.util.Map.getOrDefault:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Character
invokevirtual java.lang.Character.charValue:()C
invokevirtual java.io.PrintWriter.append:(C)Ljava/io/PrintWriter;
pop
8: goto 10
9: StackMap locals: int
StackMap stack:
aload 0
iload 4
invokevirtual java.io.PrintWriter.append:(C)Ljava/io/PrintWriter;
pop
end local 4 10: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
11: iload 2
iload 3
if_icmplt 4
end local 3 end local 2 12: aload 0
bipush 34
invokevirtual java.io.PrintWriter.append:(C)Ljava/io/PrintWriter;
pop
13: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 writer Ljava/io/PrintWriter;
0 14 1 string Ljava/lang/String;
2 12 2 i I
3 12 3 n I
5 10 4 c C
MethodParameters:
Name Flags
writer
string
private static void dumpElement(java.io.PrintWriter, java.lang.String);
descriptor: (Ljava/io/PrintWriter;Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 writer Ljava/io/PrintWriter;
0 2 1 element Ljava/lang/String;
MethodParameters:
Name Flags
writer
element
private static void dumpNumber(java.io.PrintWriter, java.lang.Number);
descriptor: (Ljava/io/PrintWriter;Ljava/lang/Number;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.io.PrintWriter.print:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 writer Ljava/io/PrintWriter;
0 2 1 number Ljava/lang/Number;
MethodParameters:
Name Flags
writer
number
private void dumpArray(java.io.PrintWriter, java.util.stream.Stream<com.oracle.svm.hosted.dashboard.ToJson$JsonValue>);
descriptor: (Ljava/io/PrintWriter;Ljava/util/stream/Stream;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "["
invokevirtual java.io.PrintWriter.append:(Ljava/lang/CharSequence;)Ljava/io/PrintWriter;
pop
1: aload 0
dup
getfield com.oracle.svm.hosted.dashboard.ToJson.depth:I
iconst_1
iadd
putfield com.oracle.svm.hosted.dashboard.ToJson.depth:I
2: iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
getfield com.oracle.svm.hosted.dashboard.ToJson.newPrefix:Ljava/lang/String;
aastore
astore 3
start local 3 3: aload 2
invokeinterface java.util.stream.Stream.sequential:()Ljava/util/stream/BaseStream;
checkcast java.util.stream.Stream
aload 0
aload 1
aload 3
invokedynamic accept(Lcom/oracle/svm/hosted/dashboard/ToJson;Ljava/io/PrintWriter;[Ljava/lang/String;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
com/oracle/svm/hosted/dashboard/ToJson.lambda$3(Ljava/io/PrintWriter;[Ljava/lang/String;Lcom/oracle/svm/hosted/dashboard/ToJson$JsonValue;)V (7)
(Lcom/oracle/svm/hosted/dashboard/ToJson$JsonValue;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
4: aload 0
dup
getfield com.oracle.svm.hosted.dashboard.ToJson.depth:I
iconst_1
isub
putfield com.oracle.svm.hosted.dashboard.ToJson.depth:I
5: aload 0
getfield com.oracle.svm.hosted.dashboard.ToJson.pretty:Z
ifeq 8
aload 3
iconst_0
aaload
ldc "\n"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
6: aload 1
ldc "\n"
invokevirtual java.io.PrintWriter.append:(Ljava/lang/CharSequence;)Ljava/io/PrintWriter;
pop
7: aload 0
aload 1
invokevirtual com.oracle.svm.hosted.dashboard.ToJson.prepend:(Ljava/io/PrintWriter;)V
8: StackMap locals: java.lang.String[]
StackMap stack:
aload 1
ldc "]"
invokevirtual java.io.PrintWriter.append:(Ljava/lang/CharSequence;)Ljava/io/PrintWriter;
pop
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/svm/hosted/dashboard/ToJson;
0 10 1 writer Ljava/io/PrintWriter;
0 10 2 values Ljava/util/stream/Stream<Lcom/oracle/svm/hosted/dashboard/ToJson$JsonValue;>;
3 10 3 prefix [Ljava/lang/String;
Signature: (Ljava/io/PrintWriter;Ljava/util/stream/Stream<Lcom/oracle/svm/hosted/dashboard/ToJson$JsonValue;>;)V
MethodParameters:
Name Flags
writer
values
private void dumpObject(java.io.PrintWriter, java.util.stream.Stream<java.lang.String>, java.util.function.Function<java.lang.String, com.oracle.svm.hosted.dashboard.ToJson$JsonValue>);
descriptor: (Ljava/io/PrintWriter;Ljava/util/stream/Stream;Ljava/util/function/Function;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ldc "{"
invokevirtual java.io.PrintWriter.append:(Ljava/lang/CharSequence;)Ljava/io/PrintWriter;
pop
1: aload 0
dup
getfield com.oracle.svm.hosted.dashboard.ToJson.depth:I
iconst_1
iadd
putfield com.oracle.svm.hosted.dashboard.ToJson.depth:I
2: iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
getfield com.oracle.svm.hosted.dashboard.ToJson.newPrefix:Ljava/lang/String;
aastore
astore 4
start local 4 3: aload 2
invokeinterface java.util.stream.Stream.sequential:()Ljava/util/stream/BaseStream;
checkcast java.util.stream.Stream
aload 0
aload 3
aload 1
aload 4
invokedynamic accept(Lcom/oracle/svm/hosted/dashboard/ToJson;Ljava/util/function/Function;Ljava/io/PrintWriter;[Ljava/lang/String;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
com/oracle/svm/hosted/dashboard/ToJson.lambda$4(Ljava/util/function/Function;Ljava/io/PrintWriter;[Ljava/lang/String;Ljava/lang/String;)V (7)
(Ljava/lang/String;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
4: aload 0
dup
getfield com.oracle.svm.hosted.dashboard.ToJson.depth:I
iconst_1
isub
putfield com.oracle.svm.hosted.dashboard.ToJson.depth:I
5: aload 0
getfield com.oracle.svm.hosted.dashboard.ToJson.pretty:Z
ifeq 8
aload 4
iconst_0
aaload
ldc "\n"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
6: aload 1
ldc "\n"
invokevirtual java.io.PrintWriter.append:(Ljava/lang/CharSequence;)Ljava/io/PrintWriter;
pop
7: aload 0
aload 1
invokevirtual com.oracle.svm.hosted.dashboard.ToJson.prepend:(Ljava/io/PrintWriter;)V
8: StackMap locals: java.lang.String[]
StackMap stack:
aload 1
ldc "}"
invokevirtual java.io.PrintWriter.append:(Ljava/lang/CharSequence;)Ljava/io/PrintWriter;
pop
9: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/oracle/svm/hosted/dashboard/ToJson;
0 10 1 writer Ljava/io/PrintWriter;
0 10 2 names Ljava/util/stream/Stream<Ljava/lang/String;>;
0 10 3 func Ljava/util/function/Function<Ljava/lang/String;Lcom/oracle/svm/hosted/dashboard/ToJson$JsonValue;>;
3 10 4 prefix [Ljava/lang/String;
Signature: (Ljava/io/PrintWriter;Ljava/util/stream/Stream<Ljava/lang/String;>;Ljava/util/function/Function<Ljava/lang/String;Lcom/oracle/svm/hosted/dashboard/ToJson$JsonValue;>;)V
MethodParameters:
Name Flags
writer
names
func
public void close(java.io.PrintWriter);
descriptor: (Ljava/io/PrintWriter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
dup
getfield com.oracle.svm.hosted.dashboard.ToJson.depth:I
iconst_1
isub
putfield com.oracle.svm.hosted.dashboard.ToJson.depth:I
1: getstatic com.oracle.svm.hosted.dashboard.ToJson.$assertionsDisabled:Z
ifne 2
aload 0
getfield com.oracle.svm.hosted.dashboard.ToJson.depth:I
ifeq 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 1
ldc "}"
invokevirtual java.io.PrintWriter.append:(Ljava/lang/CharSequence;)Ljava/io/PrintWriter;
pop
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/oracle/svm/hosted/dashboard/ToJson;
0 4 1 writer Ljava/io/PrintWriter;
MethodParameters:
Name Flags
writer
private void lambda$3(java.io.PrintWriter, java.lang.String[], com.oracle.svm.hosted.dashboard.ToJson$JsonValue);
descriptor: (Ljava/io/PrintWriter;[Ljava/lang/String;Lcom/oracle/svm/hosted/dashboard/ToJson$JsonValue;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 3 0: aload 3
ifnull 5
1: aload 1
aload 2
iconst_0
aaload
invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
2: aload 0
aload 1
invokevirtual com.oracle.svm.hosted.dashboard.ToJson.prepend:(Ljava/io/PrintWriter;)V
3: aload 3
aload 1
aload 0
invokevirtual com.oracle.svm.hosted.dashboard.ToJson$JsonValue.dump:(Ljava/io/PrintWriter;Lcom/oracle/svm/hosted/dashboard/ToJson;)V
4: aload 2
iconst_0
aload 0
getfield com.oracle.svm.hosted.dashboard.ToJson.prefi:Ljava/lang/String;
aastore
5: StackMap locals:
StackMap stack:
return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/svm/hosted/dashboard/ToJson;
0 6 3 val Lcom/oracle/svm/hosted/dashboard/ToJson$JsonValue;
private void lambda$4(java.util.function.Function, java.io.PrintWriter, java.lang.String[], java.lang.String);
descriptor: (Ljava/util/function/Function;Ljava/io/PrintWriter;[Ljava/lang/String;Ljava/lang/String;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=6, args_size=5
start local 0 start local 4 0: aload 1
aload 4
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.oracle.svm.hosted.dashboard.ToJson$JsonValue
astore 5
start local 5 1: aload 5
ifnull 5
2: aload 2
aload 3
iconst_0
aaload
invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
3: aload 0
aload 2
aload 4
aload 5
invokevirtual com.oracle.svm.hosted.dashboard.ToJson.putProperty:(Ljava/io/PrintWriter;Ljava/lang/String;Lcom/oracle/svm/hosted/dashboard/ToJson$JsonValue;)V
4: aload 3
iconst_0
aload 0
getfield com.oracle.svm.hosted.dashboard.ToJson.prefi:Ljava/lang/String;
aastore
end local 5 5: StackMap locals:
StackMap stack:
return
end local 4 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/oracle/svm/hosted/dashboard/ToJson;
0 6 4 name Ljava/lang/String;
1 5 5 val Lcom/oracle/svm/hosted/dashboard/ToJson$JsonValue;
}
SourceFile: "ToJson.java"
NestMembers:
com.oracle.svm.hosted.dashboard.ToJson$1 com.oracle.svm.hosted.dashboard.ToJson$JsonArray com.oracle.svm.hosted.dashboard.ToJson$JsonArray$1 com.oracle.svm.hosted.dashboard.ToJson$JsonElement com.oracle.svm.hosted.dashboard.ToJson$JsonElement$1 com.oracle.svm.hosted.dashboard.ToJson$JsonNumber com.oracle.svm.hosted.dashboard.ToJson$JsonNumber$1 com.oracle.svm.hosted.dashboard.ToJson$JsonObject com.oracle.svm.hosted.dashboard.ToJson$JsonObject$1 com.oracle.svm.hosted.dashboard.ToJson$JsonString com.oracle.svm.hosted.dashboard.ToJson$JsonString$1 com.oracle.svm.hosted.dashboard.ToJson$JsonValue
InnerClasses:
com.oracle.svm.hosted.dashboard.ToJson$1
public abstract JsonArray = com.oracle.svm.hosted.dashboard.ToJson$JsonArray of com.oracle.svm.hosted.dashboard.ToJson
private abstract JsonElement = com.oracle.svm.hosted.dashboard.ToJson$JsonElement of com.oracle.svm.hosted.dashboard.ToJson
public abstract JsonNumber = com.oracle.svm.hosted.dashboard.ToJson$JsonNumber of com.oracle.svm.hosted.dashboard.ToJson
public abstract JsonObject = com.oracle.svm.hosted.dashboard.ToJson$JsonObject of com.oracle.svm.hosted.dashboard.ToJson
public abstract JsonString = com.oracle.svm.hosted.dashboard.ToJson$JsonString of com.oracle.svm.hosted.dashboard.ToJson
public abstract JsonValue = com.oracle.svm.hosted.dashboard.ToJson$JsonValue of com.oracle.svm.hosted.dashboard.ToJson
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles