public class io.vertx.core.json.jackson.DatabindCodec extends io.vertx.core.json.jackson.JacksonCodec
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.json.jackson.DatabindCodec
super_class: io.vertx.core.json.jackson.JacksonCodec
{
private static final com.fasterxml.jackson.databind.ObjectMapper mapper;
descriptor: Lcom/fasterxml/jackson/databind/ObjectMapper;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final com.fasterxml.jackson.databind.ObjectMapper prettyMapper;
descriptor: Lcom/fasterxml/jackson/databind/ObjectMapper;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new com.fasterxml.jackson.databind.ObjectMapper
dup
invokespecial com.fasterxml.jackson.databind.ObjectMapper.<init>:()V
putstatic io.vertx.core.json.jackson.DatabindCodec.mapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
1: new com.fasterxml.jackson.databind.ObjectMapper
dup
invokespecial com.fasterxml.jackson.databind.ObjectMapper.<init>:()V
putstatic io.vertx.core.json.jackson.DatabindCodec.prettyMapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
2: invokestatic io.vertx.core.json.jackson.DatabindCodec.initialize:()V
3: 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 io.vertx.core.json.jackson.JacksonCodec.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/json/jackson/DatabindCodec;
private static void initialize();
descriptor: ()V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: getstatic io.vertx.core.json.jackson.DatabindCodec.mapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
getstatic com.fasterxml.jackson.core.JsonParser$Feature.ALLOW_COMMENTS:Lcom/fasterxml/jackson/core/JsonParser$Feature;
iconst_1
invokevirtual com.fasterxml.jackson.databind.ObjectMapper.configure:(Lcom/fasterxml/jackson/core/JsonParser$Feature;Z)Lcom/fasterxml/jackson/databind/ObjectMapper;
pop
1: getstatic io.vertx.core.json.jackson.DatabindCodec.prettyMapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
getstatic com.fasterxml.jackson.core.JsonParser$Feature.ALLOW_COMMENTS:Lcom/fasterxml/jackson/core/JsonParser$Feature;
iconst_1
invokevirtual com.fasterxml.jackson.databind.ObjectMapper.configure:(Lcom/fasterxml/jackson/core/JsonParser$Feature;Z)Lcom/fasterxml/jackson/databind/ObjectMapper;
pop
2: getstatic io.vertx.core.json.jackson.DatabindCodec.prettyMapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
getstatic com.fasterxml.jackson.databind.SerializationFeature.INDENT_OUTPUT:Lcom/fasterxml/jackson/databind/SerializationFeature;
iconst_1
invokevirtual com.fasterxml.jackson.databind.ObjectMapper.configure:(Lcom/fasterxml/jackson/databind/SerializationFeature;Z)Lcom/fasterxml/jackson/databind/ObjectMapper;
pop
3: new com.fasterxml.jackson.databind.module.SimpleModule
dup
invokespecial com.fasterxml.jackson.databind.module.SimpleModule.<init>:()V
astore 0
start local 0 4: aload 0
ldc Lio/vertx/core/json/JsonObject;
new io.vertx.core.json.jackson.JsonObjectSerializer
dup
invokespecial io.vertx.core.json.jackson.JsonObjectSerializer.<init>:()V
invokevirtual com.fasterxml.jackson.databind.module.SimpleModule.addSerializer:(Ljava/lang/Class;Lcom/fasterxml/jackson/databind/JsonSerializer;)Lcom/fasterxml/jackson/databind/module/SimpleModule;
pop
5: aload 0
ldc Lio/vertx/core/json/JsonArray;
new io.vertx.core.json.jackson.JsonArraySerializer
dup
invokespecial io.vertx.core.json.jackson.JsonArraySerializer.<init>:()V
invokevirtual com.fasterxml.jackson.databind.module.SimpleModule.addSerializer:(Ljava/lang/Class;Lcom/fasterxml/jackson/databind/JsonSerializer;)Lcom/fasterxml/jackson/databind/module/SimpleModule;
pop
6: aload 0
ldc Ljava/time/Instant;
new io.vertx.core.json.jackson.InstantSerializer
dup
invokespecial io.vertx.core.json.jackson.InstantSerializer.<init>:()V
invokevirtual com.fasterxml.jackson.databind.module.SimpleModule.addSerializer:(Ljava/lang/Class;Lcom/fasterxml/jackson/databind/JsonSerializer;)Lcom/fasterxml/jackson/databind/module/SimpleModule;
pop
7: aload 0
ldc Ljava/time/Instant;
new io.vertx.core.json.jackson.InstantDeserializer
dup
invokespecial io.vertx.core.json.jackson.InstantDeserializer.<init>:()V
invokevirtual com.fasterxml.jackson.databind.module.SimpleModule.addDeserializer:(Ljava/lang/Class;Lcom/fasterxml/jackson/databind/JsonDeserializer;)Lcom/fasterxml/jackson/databind/module/SimpleModule;
pop
8: aload 0
ldc [B
new io.vertx.core.json.jackson.ByteArraySerializer
dup
invokespecial io.vertx.core.json.jackson.ByteArraySerializer.<init>:()V
invokevirtual com.fasterxml.jackson.databind.module.SimpleModule.addSerializer:(Ljava/lang/Class;Lcom/fasterxml/jackson/databind/JsonSerializer;)Lcom/fasterxml/jackson/databind/module/SimpleModule;
pop
9: aload 0
ldc [B
new io.vertx.core.json.jackson.ByteArrayDeserializer
dup
invokespecial io.vertx.core.json.jackson.ByteArrayDeserializer.<init>:()V
invokevirtual com.fasterxml.jackson.databind.module.SimpleModule.addDeserializer:(Ljava/lang/Class;Lcom/fasterxml/jackson/databind/JsonDeserializer;)Lcom/fasterxml/jackson/databind/module/SimpleModule;
pop
10: aload 0
ldc Lio/vertx/core/buffer/Buffer;
new io.vertx.core.json.jackson.BufferSerializer
dup
invokespecial io.vertx.core.json.jackson.BufferSerializer.<init>:()V
invokevirtual com.fasterxml.jackson.databind.module.SimpleModule.addSerializer:(Ljava/lang/Class;Lcom/fasterxml/jackson/databind/JsonSerializer;)Lcom/fasterxml/jackson/databind/module/SimpleModule;
pop
11: aload 0
ldc Lio/vertx/core/buffer/Buffer;
new io.vertx.core.json.jackson.BufferDeserializer
dup
invokespecial io.vertx.core.json.jackson.BufferDeserializer.<init>:()V
invokevirtual com.fasterxml.jackson.databind.module.SimpleModule.addDeserializer:(Ljava/lang/Class;Lcom/fasterxml/jackson/databind/JsonDeserializer;)Lcom/fasterxml/jackson/databind/module/SimpleModule;
pop
12: getstatic io.vertx.core.json.jackson.DatabindCodec.mapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
aload 0
invokevirtual com.fasterxml.jackson.databind.ObjectMapper.registerModule:(Lcom/fasterxml/jackson/databind/Module;)Lcom/fasterxml/jackson/databind/ObjectMapper;
pop
13: getstatic io.vertx.core.json.jackson.DatabindCodec.prettyMapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
aload 0
invokevirtual com.fasterxml.jackson.databind.ObjectMapper.registerModule:(Lcom/fasterxml/jackson/databind/Module;)Lcom/fasterxml/jackson/databind/ObjectMapper;
pop
14: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
4 15 0 module Lcom/fasterxml/jackson/databind/module/SimpleModule;
public static com.fasterxml.jackson.databind.ObjectMapper mapper();
descriptor: ()Lcom/fasterxml/jackson/databind/ObjectMapper;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic io.vertx.core.json.jackson.DatabindCodec.mapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static com.fasterxml.jackson.databind.ObjectMapper prettyMapper();
descriptor: ()Lcom/fasterxml/jackson/databind/ObjectMapper;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic io.vertx.core.json.jackson.DatabindCodec.prettyMapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
areturn
LocalVariableTable:
Start End Slot Name Signature
public <T> T fromValue(, java.lang.Class<T>);
descriptor: (Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic io.vertx.core.json.jackson.DatabindCodec.mapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
aload 1
aload 2
invokevirtual com.fasterxml.jackson.databind.ObjectMapper.convertValue:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
astore 3
start local 3 1: aload 2
ldc Ljava/lang/Object;
if_acmpne 3
2: aload 3
invokestatic io.vertx.core.json.jackson.DatabindCodec.adapt:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
3: StackMap locals: java.lang.Object
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/json/jackson/DatabindCodec;
0 4 1 json Ljava/lang/Object;
0 4 2 clazz Ljava/lang/Class<TT;>;
1 4 3 value TT;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Object;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
json
clazz
public <T> T fromValue(, com.fasterxml.jackson.core.type.TypeReference<T>);
descriptor: (Ljava/lang/Object;Lcom/fasterxml/jackson/core/type/TypeReference;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic io.vertx.core.json.jackson.DatabindCodec.mapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
aload 1
aload 2
invokevirtual com.fasterxml.jackson.databind.ObjectMapper.convertValue:(Ljava/lang/Object;Lcom/fasterxml/jackson/core/type/TypeReference;)Ljava/lang/Object;
astore 3
start local 3 1: aload 2
invokevirtual com.fasterxml.jackson.core.type.TypeReference.getType:()Ljava/lang/reflect/Type;
ldc Ljava/lang/Object;
if_acmpne 3
2: aload 3
invokestatic io.vertx.core.json.jackson.DatabindCodec.adapt:(Ljava/lang/Object;)Ljava/lang/Object;
astore 3
3: StackMap locals: java.lang.Object
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/json/jackson/DatabindCodec;
0 4 1 json Ljava/lang/Object;
0 4 2 type Lcom/fasterxml/jackson/core/type/TypeReference<TT;>;
1 4 3 value TT;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Object;Lcom/fasterxml/jackson/core/type/TypeReference<TT;>;)TT;
MethodParameters:
Name Flags
json
type
public <T> T fromString(java.lang.String, java.lang.Class<T>);
descriptor: (Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic io.vertx.core.json.jackson.DatabindCodec.createParser:(Ljava/lang/String;)Lcom/fasterxml/jackson/core/JsonParser;
aload 2
invokestatic io.vertx.core.json.jackson.DatabindCodec.fromParser:(Lcom/fasterxml/jackson/core/JsonParser;Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/json/jackson/DatabindCodec;
0 1 1 str Ljava/lang/String;
0 1 2 clazz Ljava/lang/Class<TT;>;
Exceptions:
throws io.vertx.core.json.DecodeException
Signature: <T:Ljava/lang/Object;>(Ljava/lang/String;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
str
clazz
public <T> T fromString(java.lang.String, com.fasterxml.jackson.core.type.TypeReference<T>);
descriptor: (Ljava/lang/String;Lcom/fasterxml/jackson/core/type/TypeReference;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic io.vertx.core.json.jackson.DatabindCodec.createParser:(Ljava/lang/String;)Lcom/fasterxml/jackson/core/JsonParser;
aload 2
invokestatic io.vertx.core.json.jackson.DatabindCodec.fromParser:(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/core/type/TypeReference;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/json/jackson/DatabindCodec;
0 1 1 str Ljava/lang/String;
0 1 2 typeRef Lcom/fasterxml/jackson/core/type/TypeReference<TT;>;
Exceptions:
throws io.vertx.core.json.DecodeException
Signature: <T:Ljava/lang/Object;>(Ljava/lang/String;Lcom/fasterxml/jackson/core/type/TypeReference<TT;>;)TT;
MethodParameters:
Name Flags
str
typeRef
public <T> T fromBuffer(io.vertx.core.buffer.Buffer, java.lang.Class<T>);
descriptor: (Lio/vertx/core/buffer/Buffer;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic io.vertx.core.json.jackson.DatabindCodec.createParser:(Lio/vertx/core/buffer/Buffer;)Lcom/fasterxml/jackson/core/JsonParser;
aload 2
invokestatic io.vertx.core.json.jackson.DatabindCodec.fromParser:(Lcom/fasterxml/jackson/core/JsonParser;Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/json/jackson/DatabindCodec;
0 1 1 buf Lio/vertx/core/buffer/Buffer;
0 1 2 clazz Ljava/lang/Class<TT;>;
Exceptions:
throws io.vertx.core.json.DecodeException
Signature: <T:Ljava/lang/Object;>(Lio/vertx/core/buffer/Buffer;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
buf
clazz
public <T> T fromBuffer(io.vertx.core.buffer.Buffer, com.fasterxml.jackson.core.type.TypeReference<T>);
descriptor: (Lio/vertx/core/buffer/Buffer;Lcom/fasterxml/jackson/core/type/TypeReference;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic io.vertx.core.json.jackson.DatabindCodec.createParser:(Lio/vertx/core/buffer/Buffer;)Lcom/fasterxml/jackson/core/JsonParser;
aload 2
invokestatic io.vertx.core.json.jackson.DatabindCodec.fromParser:(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/core/type/TypeReference;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/json/jackson/DatabindCodec;
0 1 1 buf Lio/vertx/core/buffer/Buffer;
0 1 2 typeRef Lcom/fasterxml/jackson/core/type/TypeReference<TT;>;
Exceptions:
throws io.vertx.core.json.DecodeException
Signature: <T:Ljava/lang/Object;>(Lio/vertx/core/buffer/Buffer;Lcom/fasterxml/jackson/core/type/TypeReference<TT;>;)TT;
MethodParameters:
Name Flags
buf
typeRef
public static com.fasterxml.jackson.core.JsonParser createParser(io.vertx.core.buffer.Buffer);
descriptor: (Lio/vertx/core/buffer/Buffer;)Lcom/fasterxml/jackson/core/JsonParser;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: getstatic io.vertx.core.json.jackson.DatabindCodec.mapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
invokevirtual com.fasterxml.jackson.databind.ObjectMapper.getFactory:()Lcom/fasterxml/jackson/core/JsonFactory;
new io.netty.buffer.ByteBufInputStream
dup
aload 0
invokeinterface io.vertx.core.buffer.Buffer.getByteBuf:()Lio/netty/buffer/ByteBuf;
invokespecial io.netty.buffer.ByteBufInputStream.<init>:(Lio/netty/buffer/ByteBuf;)V
invokevirtual com.fasterxml.jackson.core.JsonFactory.createParser:(Ljava/io/InputStream;)Lcom/fasterxml/jackson/core/JsonParser;
1: areturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 3: new io.vertx.core.json.DecodeException
dup
new java.lang.StringBuilder
dup
ldc "Failed to decode:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial io.vertx.core.json.DecodeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 buf Lio/vertx/core/buffer/Buffer;
3 4 1 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
buf
public static com.fasterxml.jackson.core.JsonParser createParser(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/fasterxml/jackson/core/JsonParser;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: getstatic io.vertx.core.json.jackson.DatabindCodec.mapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
invokevirtual com.fasterxml.jackson.databind.ObjectMapper.getFactory:()Lcom/fasterxml/jackson/core/JsonFactory;
aload 0
invokevirtual com.fasterxml.jackson.core.JsonFactory.createParser:(Ljava/lang/String;)Lcom/fasterxml/jackson/core/JsonParser;
1: areturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 3: new io.vertx.core.json.DecodeException
dup
new java.lang.StringBuilder
dup
ldc "Failed to decode:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 1
invokespecial io.vertx.core.json.DecodeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 str Ljava/lang/String;
3 4 1 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
str
public static <T> T fromParser(com.fasterxml.jackson.core.JsonParser, java.lang.Class<T>);
descriptor: (Lcom/fasterxml/jackson/core/JsonParser;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=2
start local 0 start local 1 0: getstatic io.vertx.core.json.jackson.DatabindCodec.mapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
aload 0
aload 1
invokevirtual com.fasterxml.jackson.databind.ObjectMapper.readValue:(Lcom/fasterxml/jackson/core/JsonParser;Ljava/lang/Class;)Ljava/lang/Object;
astore 2
start local 2 1: aload 0
invokevirtual com.fasterxml.jackson.core.JsonParser.nextToken:()Lcom/fasterxml/jackson/core/JsonToken;
astore 3
start local 3 2: goto 8
end local 3 end local 2 StackMap locals:
StackMap stack: java.lang.Exception
3: astore 4
start local 4 4: new io.vertx.core.json.DecodeException
dup
new java.lang.StringBuilder
dup
ldc "Failed to decode:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokespecial io.vertx.core.json.DecodeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 5: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
6: aload 0
invokestatic io.vertx.core.json.jackson.DatabindCodec.close:(Ljava/io/Closeable;)V
7: aload 5
athrow
start local 2 start local 3 8: StackMap locals: java.lang.Object com.fasterxml.jackson.core.JsonToken
StackMap stack:
aload 0
invokestatic io.vertx.core.json.jackson.DatabindCodec.close:(Ljava/io/Closeable;)V
9: aload 3
ifnull 11
10: new io.vertx.core.json.DecodeException
dup
ldc "Unexpected trailing token"
invokespecial io.vertx.core.json.DecodeException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/lang/Object;
if_acmpne 13
12: aload 2
invokestatic io.vertx.core.json.jackson.DatabindCodec.adapt:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
13: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 parser Lcom/fasterxml/jackson/core/JsonParser;
0 14 1 type Ljava/lang/Class<TT;>;
1 3 2 value TT;
8 14 2 value TT;
2 3 3 remaining Lcom/fasterxml/jackson/core/JsonToken;
8 14 3 remaining Lcom/fasterxml/jackson/core/JsonToken;
4 5 4 e Ljava/lang/Exception;
Exception table:
from to target type
0 2 3 Class java.lang.Exception
0 5 5 any
Exceptions:
throws io.vertx.core.json.DecodeException
Signature: <T:Ljava/lang/Object;>(Lcom/fasterxml/jackson/core/JsonParser;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
parser
type
private static <T> T fromParser(com.fasterxml.jackson.core.JsonParser, com.fasterxml.jackson.core.type.TypeReference<T>);
descriptor: (Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/core/type/TypeReference;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: getstatic io.vertx.core.json.jackson.DatabindCodec.mapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
aload 0
aload 1
invokevirtual com.fasterxml.jackson.databind.ObjectMapper.readValue:(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/core/type/TypeReference;)Ljava/lang/Object;
astore 2
start local 2 1: goto 7
end local 2 StackMap locals:
StackMap stack: java.lang.Exception
2: astore 3
start local 3 3: new io.vertx.core.json.DecodeException
dup
new java.lang.StringBuilder
dup
ldc "Failed to decode:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial io.vertx.core.json.DecodeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
5: aload 0
invokestatic io.vertx.core.json.jackson.DatabindCodec.close:(Ljava/io/Closeable;)V
6: aload 4
athrow
start local 2 7: StackMap locals: java.lang.Object
StackMap stack:
aload 0
invokestatic io.vertx.core.json.jackson.DatabindCodec.close:(Ljava/io/Closeable;)V
8: aload 1
invokevirtual com.fasterxml.jackson.core.type.TypeReference.getType:()Ljava/lang/reflect/Type;
ldc Ljava/lang/Object;
if_acmpne 10
9: aload 2
invokestatic io.vertx.core.json.jackson.DatabindCodec.adapt:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
10: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 parser Lcom/fasterxml/jackson/core/JsonParser;
0 11 1 type Lcom/fasterxml/jackson/core/type/TypeReference<TT;>;
1 2 2 value TT;
7 11 2 value TT;
3 4 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
0 4 4 any
Exceptions:
throws io.vertx.core.json.DecodeException
Signature: <T:Ljava/lang/Object;>(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/core/type/TypeReference<TT;>;)TT;
MethodParameters:
Name Flags
parser
type
public java.lang.String toString(java.lang.Object, boolean);
descriptor: (Ljava/lang/Object;Z)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ifeq 1
getstatic io.vertx.core.json.jackson.DatabindCodec.prettyMapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
goto 2
StackMap locals:
StackMap stack:
1: getstatic io.vertx.core.json.jackson.DatabindCodec.mapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
StackMap locals:
StackMap stack: com.fasterxml.jackson.databind.ObjectMapper
2: astore 3
start local 3 3: aload 3
aload 1
invokevirtual com.fasterxml.jackson.databind.ObjectMapper.writeValueAsString:(Ljava/lang/Object;)Ljava/lang/String;
4: areturn
end local 3 5: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 6: new io.vertx.core.json.EncodeException
dup
new java.lang.StringBuilder
dup
ldc "Failed to encode as JSON: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.vertx.core.json.EncodeException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/vertx/core/json/jackson/DatabindCodec;
0 7 1 object Ljava/lang/Object;
0 7 2 pretty Z
3 5 3 mapper Lcom/fasterxml/jackson/databind/ObjectMapper;
6 7 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 4 5 Class java.lang.Exception
Exceptions:
throws io.vertx.core.json.EncodeException
MethodParameters:
Name Flags
object
pretty
public io.vertx.core.buffer.Buffer toBuffer(java.lang.Object, boolean);
descriptor: (Ljava/lang/Object;Z)Lio/vertx/core/buffer/Buffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ifeq 1
getstatic io.vertx.core.json.jackson.DatabindCodec.prettyMapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
goto 2
StackMap locals:
StackMap stack:
1: getstatic io.vertx.core.json.jackson.DatabindCodec.mapper:Lcom/fasterxml/jackson/databind/ObjectMapper;
StackMap locals:
StackMap stack: com.fasterxml.jackson.databind.ObjectMapper
2: astore 3
start local 3 3: aload 3
aload 1
invokevirtual com.fasterxml.jackson.databind.ObjectMapper.writeValueAsBytes:(Ljava/lang/Object;)[B
invokestatic io.vertx.core.buffer.Buffer.buffer:([B)Lio/vertx/core/buffer/Buffer;
4: areturn
end local 3 5: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 6: new io.vertx.core.json.EncodeException
dup
new java.lang.StringBuilder
dup
ldc "Failed to encode as JSON: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.vertx.core.json.EncodeException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/vertx/core/json/jackson/DatabindCodec;
0 7 1 object Ljava/lang/Object;
0 7 2 pretty Z
3 5 3 mapper Lcom/fasterxml/jackson/databind/ObjectMapper;
6 7 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 4 5 Class java.lang.Exception
Exceptions:
throws io.vertx.core.json.EncodeException
MethodParameters:
Name Flags
object
pretty
private static java.lang.Object adapt(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
instanceof java.util.List
ifeq 4
1: aload 0
checkcast java.util.List
astore 1
start local 1 2: new io.vertx.core.json.JsonArray
dup
aload 1
invokespecial io.vertx.core.json.JsonArray.<init>:(Ljava/util/List;)V
3: areturn
end local 1 4: StackMap locals:
StackMap stack:
aload 0
instanceof java.util.Map
ifeq 8
5: aload 0
checkcast java.util.Map
astore 1
start local 1 6: new io.vertx.core.json.JsonObject
dup
aload 1
invokespecial io.vertx.core.json.JsonObject.<init>:(Ljava/util/Map;)V
7: areturn
end local 1 8: StackMap locals:
StackMap stack:
aload 0
9: areturn
10: StackMap locals:
StackMap stack: java.lang.Exception
astore 1
start local 1 11: new io.vertx.core.json.DecodeException
dup
new java.lang.StringBuilder
dup
ldc "Failed to decode: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.vertx.core.json.DecodeException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 o Ljava/lang/Object;
2 4 1 list Ljava/util/List;
6 8 1 map Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
11 12 1 e Ljava/lang/Exception;
Exception table:
from to target type
0 3 10 Class java.lang.Exception
4 7 10 Class java.lang.Exception
8 9 10 Class java.lang.Exception
MethodParameters:
Name Flags
o
}
SourceFile: "DatabindCodec.java"
InnerClasses:
public final Feature = com.fasterxml.jackson.core.JsonParser$Feature of com.fasterxml.jackson.core.JsonParser