public final class org.graalvm.util.OptionsEncoder
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.graalvm.util.OptionsEncoder
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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/graalvm/util/OptionsEncoder;
public static boolean isValueSupported(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.graalvm.util.TypedDataOutputStream.isValueSupported:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value Ljava/lang/Object;
MethodParameters:
Name Flags
value
public static byte[] encode(java.util.Map<java.lang.String, java.lang.Object>);
descriptor: (Ljava/util/Map;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=10, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
astore 3
start local 3 2: aconst_null
astore 4
aconst_null
astore 5
3: new org.graalvm.util.TypedDataOutputStream
dup
aload 3
invokespecial org.graalvm.util.TypedDataOutputStream.<init>:(Ljava/io/OutputStream;)V
astore 6
start local 6 4: aload 6
aload 0
invokeinterface java.util.Map.size:()I
invokevirtual org.graalvm.util.TypedDataOutputStream.writeInt:(I)V
5: aload 0
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 8
goto 16
StackMap locals: java.util.Map java.lang.Throwable java.lang.Throwable java.io.ByteArrayOutputStream java.lang.Throwable java.lang.Throwable org.graalvm.util.TypedDataOutputStream top java.util.Iterator
StackMap stack:
6: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 7
start local 7 7: aload 6
aload 7
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
invokevirtual org.graalvm.util.TypedDataOutputStream.writeUTF:(Ljava/lang/String;)V
8: aload 6
aload 7
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual org.graalvm.util.TypedDataOutputStream.writeTypedValue:(Ljava/lang/Object;)V
9: goto 16
StackMap locals: java.util.Map java.lang.Throwable java.lang.Throwable java.io.ByteArrayOutputStream java.lang.Throwable java.lang.Throwable org.graalvm.util.TypedDataOutputStream java.util.Map$Entry java.util.Iterator
StackMap stack: java.lang.IllegalArgumentException
10: astore 9
start local 9 11: new java.lang.IllegalArgumentException
dup
ldc "Key: %s, Value: %s, Value type: %s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
12: aload 7
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
aastore
dup
iconst_1
aload 7
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
aastore
dup
iconst_2
aload 7
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aastore
13: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
14: aload 9
15: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 9 end local 7 16: StackMap locals: java.util.Map java.lang.Throwable java.lang.Throwable java.io.ByteArrayOutputStream java.lang.Throwable java.lang.Throwable org.graalvm.util.TypedDataOutputStream top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
17: aload 6
ifnull 23
aload 6
invokevirtual org.graalvm.util.TypedDataOutputStream.close:()V
goto 23
StackMap locals: java.util.Map java.lang.Throwable java.lang.Throwable java.io.ByteArrayOutputStream java.lang.Throwable java.lang.Throwable org.graalvm.util.TypedDataOutputStream
StackMap stack: java.lang.Throwable
18: astore 4
aload 6
ifnull 19
aload 6
invokevirtual org.graalvm.util.TypedDataOutputStream.close:()V
end local 6 StackMap locals:
StackMap stack:
19: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
20: astore 5
aload 4
ifnonnull 21
aload 5
astore 4
goto 22
StackMap locals:
StackMap stack:
21: aload 4
aload 5
if_acmpeq 22
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
22: aload 4
athrow
23: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
24: aload 3
ifnull 25
aload 3
invokevirtual java.io.ByteArrayOutputStream.close:()V
25: StackMap locals:
StackMap stack: byte[]
areturn
StackMap locals:
StackMap stack: java.lang.Throwable
26: astore 1
27: aload 3
ifnull 28
aload 3
invokevirtual java.io.ByteArrayOutputStream.close:()V
end local 3 StackMap locals:
StackMap stack:
28: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
29: astore 2
aload 1
ifnonnull 30
aload 2
astore 1
goto 31
StackMap locals:
StackMap stack:
30: aload 1
aload 2
if_acmpeq 31
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
31: aload 1
athrow
StackMap locals: java.util.Map
StackMap stack: java.io.IOException
32: astore 1
start local 1 33: new java.lang.IllegalArgumentException
dup
aload 1
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 options Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
2 28 3 baout Ljava/io/ByteArrayOutputStream;
4 19 6 out Lorg/graalvm/util/TypedDataOutputStream;
7 16 7 e Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Object;>;
11 16 9 iae Ljava/lang/IllegalArgumentException;
33 34 1 ioe Ljava/io/IOException;
Exception table:
from to target type
8 9 10 Class java.lang.IllegalArgumentException
4 17 18 any
3 20 20 any
2 24 26 any
1 25 29 any
26 29 29 any
0 25 32 Class java.io.IOException
26 32 32 Class java.io.IOException
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;)[B
MethodParameters:
Name Flags
options final
public static java.util.Map<java.lang.String, java.lang.Object> decode(byte[]);
descriptor: ([B)Ljava/util/Map;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=9, args_size=1
start local 0 0: new java.util.LinkedHashMap
dup
invokespecial java.util.LinkedHashMap.<init>:()V
astore 1
start local 1 1: aconst_null
astore 2
aconst_null
astore 3
2: new org.graalvm.util.TypedDataInputStream
dup
new java.io.ByteArrayInputStream
dup
aload 0
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
invokespecial org.graalvm.util.TypedDataInputStream.<init>:(Ljava/io/InputStream;)V
astore 4
start local 4 3: aload 4
invokevirtual org.graalvm.util.TypedDataInputStream.readInt:()I
istore 5
start local 5 4: iconst_0
istore 6
start local 6 5: goto 10
6: StackMap locals: byte[] java.util.Map java.lang.Throwable java.lang.Throwable org.graalvm.util.TypedDataInputStream int int
StackMap stack:
aload 4
invokevirtual org.graalvm.util.TypedDataInputStream.readUTF:()Ljava/lang/String;
astore 7
start local 7 7: aload 4
invokevirtual org.graalvm.util.TypedDataInputStream.readTypedValue:()Ljava/lang/Object;
astore 8
start local 8 8: aload 1
aload 7
aload 8
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 8 end local 7 9: iinc 6 1
StackMap locals:
StackMap stack:
10: iload 6
iload 5
if_icmplt 6
end local 6 11: aload 4
invokevirtual org.graalvm.util.TypedDataInputStream.available:()I
ifeq 13
12: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
aload 4
invokevirtual org.graalvm.util.TypedDataInputStream.available:()I
invokestatic java.lang.String.valueOf:(I)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " undecoded bytes"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 5 13: StackMap locals:
StackMap stack:
aload 4
ifnull 21
aload 4
invokevirtual org.graalvm.util.TypedDataInputStream.close:()V
goto 21
StackMap locals:
StackMap stack: java.lang.Throwable
14: astore 2
aload 4
ifnull 15
aload 4
invokevirtual org.graalvm.util.TypedDataInputStream.close:()V
end local 4 StackMap locals:
StackMap stack:
15: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
16: astore 3
aload 2
ifnonnull 17
aload 3
astore 2
goto 18
StackMap locals:
StackMap stack:
17: aload 2
aload 3
if_acmpeq 18
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
18: aload 2
athrow
StackMap locals: byte[] java.util.Map
StackMap stack: java.io.IOException
19: astore 2
start local 2 20: new java.lang.IllegalArgumentException
dup
aload 2
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 21: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 input [B
1 22 1 res Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
3 15 4 in Lorg/graalvm/util/TypedDataInputStream;
4 13 5 size I
5 11 6 i I
7 9 7 key Ljava/lang/String;
8 9 8 value Ljava/lang/Object;
20 21 2 ioe Ljava/io/IOException;
Exception table:
from to target type
3 13 14 any
2 16 16 any
1 19 19 Class java.io.IOException
Signature: ([B)Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
MethodParameters:
Name Flags
input
}
SourceFile: "OptionsEncoder.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map