public final class io.vertx.core.json.impl.JsonUtil
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.vertx.core.json.impl.JsonUtil
super_class: java.lang.Object
{
public static final java.util.Base64$Encoder BASE64_ENCODER;
descriptor: Ljava/util/Base64$Encoder;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.util.Base64$Decoder BASE64_DECODER;
descriptor: Ljava/util/Base64$Decoder;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "legacy"
ldc "vertx.json.base64"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
1: invokestatic java.util.Base64.getEncoder:()Ljava/util/Base64$Encoder;
putstatic io.vertx.core.json.impl.JsonUtil.BASE64_ENCODER:Ljava/util/Base64$Encoder;
2: invokestatic java.util.Base64.getDecoder:()Ljava/util/Base64$Decoder;
putstatic io.vertx.core.json.impl.JsonUtil.BASE64_DECODER:Ljava/util/Base64$Decoder;
3: goto 6
4: StackMap locals:
StackMap stack:
invokestatic java.util.Base64.getUrlEncoder:()Ljava/util/Base64$Encoder;
invokevirtual java.util.Base64$Encoder.withoutPadding:()Ljava/util/Base64$Encoder;
putstatic io.vertx.core.json.impl.JsonUtil.BASE64_ENCODER:Ljava/util/Base64$Encoder;
5: invokestatic java.util.Base64.getUrlDecoder:()Ljava/util/Base64$Decoder;
putstatic io.vertx.core.json.impl.JsonUtil.BASE64_DECODER:Ljava/util/Base64$Decoder;
6: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
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 Lio/vertx/core/json/impl/JsonUtil;
public static java.lang.Object wrapJsonValue(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof java.util.Map
ifeq 5
3: new io.vertx.core.json.JsonObject
dup
aload 0
checkcast java.util.Map
invokespecial io.vertx.core.json.JsonObject.<init>:(Ljava/util/Map;)V
astore 0
4: goto 19
StackMap locals:
StackMap stack:
5: aload 0
instanceof java.util.List
ifeq 8
6: new io.vertx.core.json.JsonArray
dup
aload 0
checkcast java.util.List
invokespecial io.vertx.core.json.JsonArray.<init>:(Ljava/util/List;)V
astore 0
7: goto 19
StackMap locals:
StackMap stack:
8: aload 0
instanceof java.time.Instant
ifeq 11
9: getstatic java.time.format.DateTimeFormatter.ISO_INSTANT:Ljava/time/format/DateTimeFormatter;
aload 0
checkcast java.time.Instant
invokevirtual java.time.format.DateTimeFormatter.format:(Ljava/time/temporal/TemporalAccessor;)Ljava/lang/String;
astore 0
10: goto 19
StackMap locals:
StackMap stack:
11: aload 0
instanceof byte[]
ifeq 14
12: getstatic io.vertx.core.json.impl.JsonUtil.BASE64_ENCODER:Ljava/util/Base64$Encoder;
aload 0
checkcast byte[]
invokevirtual java.util.Base64$Encoder.encodeToString:([B)Ljava/lang/String;
astore 0
13: goto 19
StackMap locals:
StackMap stack:
14: aload 0
instanceof io.vertx.core.buffer.Buffer
ifeq 17
15: getstatic io.vertx.core.json.impl.JsonUtil.BASE64_ENCODER:Ljava/util/Base64$Encoder;
aload 0
checkcast io.vertx.core.buffer.Buffer
invokeinterface io.vertx.core.buffer.Buffer.getBytes:()[B
invokevirtual java.util.Base64$Encoder.encodeToString:([B)Ljava/lang/String;
astore 0
16: goto 19
StackMap locals:
StackMap stack:
17: aload 0
instanceof java.lang.Enum
ifeq 19
18: aload 0
checkcast java.lang.Enum
invokevirtual java.lang.Enum.name:()Ljava/lang/String;
astore 0
19: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 val Ljava/lang/Object;
MethodParameters:
Name Flags
val
public static java.lang.Object checkAndCopy(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
ifnull 24
1: aload 0
instanceof java.lang.Number
ifne 24
2: aload 0
instanceof java.lang.Boolean
ifne 24
3: aload 0
instanceof java.lang.String
ifne 24
4: aload 0
instanceof java.lang.Character
ifne 24
5: aload 0
instanceof java.lang.CharSequence
ifeq 8
6: aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 0
7: goto 24
StackMap locals:
StackMap stack:
8: aload 0
instanceof io.vertx.core.shareddata.Shareable
ifeq 11
9: aload 0
checkcast io.vertx.core.shareddata.Shareable
invokeinterface io.vertx.core.shareddata.Shareable.copy:()Lio/vertx/core/shareddata/Shareable;
astore 0
10: goto 24
StackMap locals:
StackMap stack:
11: aload 0
instanceof java.util.Map
ifeq 14
12: new io.vertx.core.json.JsonObject
dup
aload 0
checkcast java.util.Map
invokespecial io.vertx.core.json.JsonObject.<init>:(Ljava/util/Map;)V
invokevirtual io.vertx.core.json.JsonObject.copy:()Lio/vertx/core/json/JsonObject;
astore 0
13: goto 24
StackMap locals:
StackMap stack:
14: aload 0
instanceof java.util.List
ifeq 17
15: new io.vertx.core.json.JsonArray
dup
aload 0
checkcast java.util.List
invokespecial io.vertx.core.json.JsonArray.<init>:(Ljava/util/List;)V
invokevirtual io.vertx.core.json.JsonArray.copy:()Lio/vertx/core/json/JsonArray;
astore 0
16: goto 24
StackMap locals:
StackMap stack:
17: aload 0
instanceof io.vertx.core.buffer.Buffer
ifeq 20
18: aload 0
checkcast io.vertx.core.buffer.Buffer
invokeinterface io.vertx.core.buffer.Buffer.copy:()Lio/vertx/core/buffer/Buffer;
astore 0
19: goto 24
StackMap locals:
StackMap stack:
20: aload 0
instanceof byte[]
ifne 24
21: aload 0
instanceof java.time.Instant
ifne 24
22: aload 0
instanceof java.lang.Enum
ifne 24
23: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Illegal type in Json: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
24: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 val Ljava/lang/Object;
MethodParameters:
Name Flags
val
}
SourceFile: "JsonUtil.java"
InnerClasses:
public Decoder = java.util.Base64$Decoder of java.util.Base64
public Encoder = java.util.Base64$Encoder of java.util.Base64