public class io.vertx.core.json.jackson.JacksonCodec implements io.vertx.core.spi.json.JsonCodec
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.json.jackson.JacksonCodec
super_class: java.lang.Object
{
private static final com.fasterxml.jackson.core.JsonFactory factory;
descriptor: Lcom/fasterxml/jackson/core/JsonFactory;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new com.fasterxml.jackson.core.JsonFactory
dup
invokespecial com.fasterxml.jackson.core.JsonFactory.<init>:()V
putstatic io.vertx.core.json.jackson.JacksonCodec.factory:Lcom/fasterxml/jackson/core/JsonFactory;
1: getstatic io.vertx.core.json.jackson.JacksonCodec.factory:Lcom/fasterxml/jackson/core/JsonFactory;
getstatic com.fasterxml.jackson.core.JsonParser$Feature.ALLOW_COMMENTS:Lcom/fasterxml/jackson/core/JsonParser$Feature;
iconst_1
invokevirtual com.fasterxml.jackson.core.JsonFactory.configure:(Lcom/fasterxml/jackson/core/JsonParser$Feature;Z)Lcom/fasterxml/jackson/core/JsonFactory;
pop
2: 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/jackson/JacksonCodec;
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.JacksonCodec.createParser:(Ljava/lang/String;)Lcom/fasterxml/jackson/core/JsonParser;
aload 2
invokestatic io.vertx.core.json.jackson.JacksonCodec.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/JacksonCodec;
0 1 1 json 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
json
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=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic io.vertx.core.json.jackson.JacksonCodec.classTypeOf:(Lcom/fasterxml/jackson/core/type/TypeReference;)Ljava/lang/Class;
invokevirtual io.vertx.core.json.jackson.JacksonCodec.fromString:(Ljava/lang/String;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/JacksonCodec;
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.JacksonCodec.createParser:(Lio/vertx/core/buffer/Buffer;)Lcom/fasterxml/jackson/core/JsonParser;
aload 2
invokestatic io.vertx.core.json.jackson.JacksonCodec.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/JacksonCodec;
0 1 1 json 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
json
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=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokestatic io.vertx.core.json.jackson.JacksonCodec.classTypeOf:(Lcom/fasterxml/jackson/core/type/TypeReference;)Ljava/lang/Class;
invokevirtual io.vertx.core.json.jackson.JacksonCodec.fromBuffer:(Lio/vertx/core/buffer/Buffer;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/JacksonCodec;
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 <T> T fromValue(, java.lang.Class<T>);
descriptor: (Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new io.vertx.core.json.DecodeException
dup
new java.lang.StringBuilder
dup
ldc "Mapping "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " is not available without Jackson Databind on the classpath"
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 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/json/jackson/JacksonCodec;
0 1 1 json Ljava/lang/Object;
0 1 2 toValueType Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Object;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
json
toValueType
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=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new io.vertx.core.json.DecodeException
dup
new java.lang.StringBuilder
dup
ldc "Mapping "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual com.fasterxml.jackson.core.type.TypeReference.getType:()Ljava/lang/reflect/Type;
invokeinterface java.lang.reflect.Type.getTypeName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " is not available without Jackson Databind on the classpath"
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 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/json/jackson/JacksonCodec;
0 1 1 json Ljava/lang/Object;
0 1 2 type Lcom/fasterxml/jackson/core/type/TypeReference<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Object;Lcom/fasterxml/jackson/core/type/TypeReference<TT;>;)TT;
MethodParameters:
Name Flags
json
type
public java.lang.String toString(java.lang.Object, boolean);
descriptor: (Ljava/lang/Object;Z)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: new java.io.StringWriter
dup
invokespecial java.io.StringWriter.<init>:()V
astore 3
start local 3 1: aload 3
iload 2
invokestatic io.vertx.core.json.jackson.JacksonCodec.createGenerator:(Ljava/io/Writer;Z)Lcom/fasterxml/jackson/core/JsonGenerator;
astore 4
start local 4 2: aload 1
aload 4
invokestatic io.vertx.core.json.jackson.JacksonCodec.encodeJson:(Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V
3: aload 4
invokevirtual com.fasterxml.jackson.core.JsonGenerator.flush:()V
4: aload 3
invokevirtual java.io.StringWriter.toString:()Ljava/lang/String;
astore 7
5: aload 4
invokestatic io.vertx.core.json.jackson.JacksonCodec.close:(Ljava/io/Closeable;)V
6: aload 7
areturn
7: StackMap locals: io.vertx.core.json.jackson.JacksonCodec java.lang.Object int java.io.StringWriter com.fasterxml.jackson.core.JsonGenerator
StackMap stack: java.io.IOException
astore 5
start local 5 8: new io.vertx.core.json.EncodeException
dup
aload 5
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aload 5
invokespecial io.vertx.core.json.EncodeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 9: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
10: aload 4
invokestatic io.vertx.core.json.jackson.JacksonCodec.close:(Ljava/io/Closeable;)V
11: aload 6
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/vertx/core/json/jackson/JacksonCodec;
0 12 1 object Ljava/lang/Object;
0 12 2 pretty Z
1 12 3 sw Ljava/io/StringWriter;
2 12 4 generator Lcom/fasterxml/jackson/core/JsonGenerator;
8 9 5 e Ljava/io/IOException;
Exception table:
from to target type
2 5 7 Class java.io.IOException
2 5 9 any
7 9 9 any
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=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: invokestatic io.netty.buffer.Unpooled.buffer:()Lio/netty/buffer/ByteBuf;
astore 3
start local 3 1: new io.netty.buffer.ByteBufOutputStream
dup
aload 3
invokespecial io.netty.buffer.ByteBufOutputStream.<init>:(Lio/netty/buffer/ByteBuf;)V
astore 4
start local 4 2: aload 4
iload 2
invokestatic io.vertx.core.json.jackson.JacksonCodec.createGenerator:(Ljava/io/OutputStream;Z)Lcom/fasterxml/jackson/core/JsonGenerator;
astore 5
start local 5 3: aload 1
aload 5
invokestatic io.vertx.core.json.jackson.JacksonCodec.encodeJson:(Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V
4: aload 5
invokevirtual com.fasterxml.jackson.core.JsonGenerator.flush:()V
5: aload 3
invokestatic io.vertx.core.buffer.Buffer.buffer:(Lio/netty/buffer/ByteBuf;)Lio/vertx/core/buffer/Buffer;
astore 8
6: aload 5
invokestatic io.vertx.core.json.jackson.JacksonCodec.close:(Ljava/io/Closeable;)V
7: aload 8
areturn
8: StackMap locals: io.vertx.core.json.jackson.JacksonCodec java.lang.Object int io.netty.buffer.ByteBuf io.netty.buffer.ByteBufOutputStream com.fasterxml.jackson.core.JsonGenerator
StackMap stack: java.io.IOException
astore 6
start local 6 9: new io.vertx.core.json.EncodeException
dup
aload 6
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aload 6
invokespecial io.vertx.core.json.EncodeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 6 10: StackMap locals:
StackMap stack: java.lang.Throwable
astore 7
11: aload 5
invokestatic io.vertx.core.json.jackson.JacksonCodec.close:(Ljava/io/Closeable;)V
12: aload 7
athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/vertx/core/json/jackson/JacksonCodec;
0 13 1 object Ljava/lang/Object;
0 13 2 pretty Z
1 13 3 buf Lio/netty/buffer/ByteBuf;
2 13 4 out Lio/netty/buffer/ByteBufOutputStream;
3 13 5 generator Lcom/fasterxml/jackson/core/JsonGenerator;
9 10 6 e Ljava/io/IOException;
Exception table:
from to target type
3 6 8 Class java.io.IOException
3 6 10 any
8 10 10 any
Exceptions:
throws io.vertx.core.json.EncodeException
MethodParameters:
Name Flags
object
pretty
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.JacksonCodec.factory: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 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.JacksonCodec.factory: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
private static com.fasterxml.jackson.core.JsonGenerator createGenerator(java.io.Writer, boolean);
descriptor: (Ljava/io/Writer;Z)Lcom/fasterxml/jackson/core/JsonGenerator;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: getstatic io.vertx.core.json.jackson.JacksonCodec.factory:Lcom/fasterxml/jackson/core/JsonFactory;
aload 0
invokevirtual com.fasterxml.jackson.core.JsonFactory.createGenerator:(Ljava/io/Writer;)Lcom/fasterxml/jackson/core/JsonGenerator;
astore 2
start local 2 1: iload 1
ifeq 3
2: aload 2
invokevirtual com.fasterxml.jackson.core.JsonGenerator.useDefaultPrettyPrinter:()Lcom/fasterxml/jackson/core/JsonGenerator;
pop
3: StackMap locals: com.fasterxml.jackson.core.JsonGenerator
StackMap stack:
aload 2
4: areturn
end local 2 5: StackMap locals: java.io.Writer int
StackMap stack: java.io.IOException
astore 2
start local 2 6: 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 2
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 2
invokespecial io.vertx.core.json.DecodeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 out Ljava/io/Writer;
0 7 1 pretty Z
1 5 2 generator Lcom/fasterxml/jackson/core/JsonGenerator;
6 7 2 e Ljava/io/IOException;
Exception table:
from to target type
0 4 5 Class java.io.IOException
MethodParameters:
Name Flags
out
pretty
private static com.fasterxml.jackson.core.JsonGenerator createGenerator(java.io.OutputStream, boolean);
descriptor: (Ljava/io/OutputStream;Z)Lcom/fasterxml/jackson/core/JsonGenerator;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: getstatic io.vertx.core.json.jackson.JacksonCodec.factory:Lcom/fasterxml/jackson/core/JsonFactory;
aload 0
invokevirtual com.fasterxml.jackson.core.JsonFactory.createGenerator:(Ljava/io/OutputStream;)Lcom/fasterxml/jackson/core/JsonGenerator;
astore 2
start local 2 1: iload 1
ifeq 3
2: aload 2
invokevirtual com.fasterxml.jackson.core.JsonGenerator.useDefaultPrettyPrinter:()Lcom/fasterxml/jackson/core/JsonGenerator;
pop
3: StackMap locals: com.fasterxml.jackson.core.JsonGenerator
StackMap stack:
aload 2
4: areturn
end local 2 5: StackMap locals: java.io.OutputStream int
StackMap stack: java.io.IOException
astore 2
start local 2 6: 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 2
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 2
invokespecial io.vertx.core.json.DecodeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 out Ljava/io/OutputStream;
0 7 1 pretty Z
1 5 2 generator Lcom/fasterxml/jackson/core/JsonGenerator;
6 7 2 e Ljava/io/IOException;
Exception table:
from to target type
0 4 5 Class java.io.IOException
MethodParameters:
Name Flags
out
pretty
public java.lang.Object fromString(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic io.vertx.core.json.jackson.JacksonCodec.createParser:(Ljava/lang/String;)Lcom/fasterxml/jackson/core/JsonParser;
ldc Ljava/lang/Object;
invokestatic io.vertx.core.json.jackson.JacksonCodec.fromParser:(Lcom/fasterxml/jackson/core/JsonParser;Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/json/jackson/JacksonCodec;
0 1 1 str Ljava/lang/String;
Exceptions:
throws io.vertx.core.json.DecodeException
MethodParameters:
Name Flags
str
public java.lang.Object fromBuffer(io.vertx.core.buffer.Buffer);
descriptor: (Lio/vertx/core/buffer/Buffer;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic io.vertx.core.json.jackson.JacksonCodec.createParser:(Lio/vertx/core/buffer/Buffer;)Lcom/fasterxml/jackson/core/JsonParser;
ldc Ljava/lang/Object;
invokestatic io.vertx.core.json.jackson.JacksonCodec.fromParser:(Lcom/fasterxml/jackson/core/JsonParser;Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/json/jackson/JacksonCodec;
0 1 1 buf Lio/vertx/core/buffer/Buffer;
Exceptions:
throws io.vertx.core.json.DecodeException
MethodParameters:
Name Flags
buf
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=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual com.fasterxml.jackson.core.JsonParser.nextToken:()Lcom/fasterxml/jackson/core/JsonToken;
pop
1: aload 0
invokestatic io.vertx.core.json.jackson.JacksonCodec.parseAny:(Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object;
astore 2
start local 2 2: aload 0
invokevirtual com.fasterxml.jackson.core.JsonParser.nextToken:()Lcom/fasterxml/jackson/core/JsonToken;
astore 3
start local 3 3: goto 9
end local 3 end local 2 StackMap locals:
StackMap stack: java.io.IOException
4: astore 4
start local 4 5: new io.vertx.core.json.DecodeException
dup
aload 4
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aload 4
invokespecial io.vertx.core.json.DecodeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 6: StackMap locals:
StackMap stack: java.lang.Throwable
astore 5
7: aload 0
invokestatic io.vertx.core.json.jackson.JacksonCodec.close:(Ljava/io/Closeable;)V
8: aload 5
athrow
start local 2 start local 3 9: StackMap locals: java.lang.Object com.fasterxml.jackson.core.JsonToken
StackMap stack:
aload 0
invokestatic io.vertx.core.json.jackson.JacksonCodec.close:(Ljava/io/Closeable;)V
10: aload 3
ifnull 12
11: new io.vertx.core.json.DecodeException
dup
ldc "Unexpected trailing token"
invokespecial io.vertx.core.json.DecodeException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 2
aload 1
invokestatic io.vertx.core.json.jackson.JacksonCodec.cast:(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 parser Lcom/fasterxml/jackson/core/JsonParser;
0 13 1 type Ljava/lang/Class<TT;>;
2 4 2 res Ljava/lang/Object;
9 13 2 res Ljava/lang/Object;
3 4 3 remaining Lcom/fasterxml/jackson/core/JsonToken;
9 13 3 remaining Lcom/fasterxml/jackson/core/JsonToken;
5 6 4 e Ljava/io/IOException;
Exception table:
from to target type
0 3 4 Class java.io.IOException
0 6 6 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 java.lang.Object parseAny(com.fasterxml.jackson.core.JsonParser);
descriptor: (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.fasterxml.jackson.core.JsonParser.getCurrentTokenId:()I
tableswitch { // 1 - 11
1: 1
2: 8
3: 2
4: 8
5: 8
6: 3
7: 4
8: 4
9: 5
10: 6
11: 7
default: 8
}
1: StackMap locals:
StackMap stack:
aload 0
invokestatic io.vertx.core.json.jackson.JacksonCodec.parseObject:(Lcom/fasterxml/jackson/core/JsonParser;)Ljava/util/Map;
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic io.vertx.core.json.jackson.JacksonCodec.parseArray:(Lcom/fasterxml/jackson/core/JsonParser;)Ljava/util/List;
areturn
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.fasterxml.jackson.core.JsonParser.getText:()Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.fasterxml.jackson.core.JsonParser.getNumberValue:()Ljava/lang/Number;
areturn
5: StackMap locals:
StackMap stack:
getstatic java.lang.Boolean.TRUE:Ljava/lang/Boolean;
areturn
6: StackMap locals:
StackMap stack:
getstatic java.lang.Boolean.FALSE:Ljava/lang/Boolean;
areturn
7: StackMap locals:
StackMap stack:
aconst_null
areturn
8: StackMap locals:
StackMap stack:
new io.vertx.core.json.DecodeException
dup
ldc "Unexpected token"
invokespecial io.vertx.core.json.DecodeException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 parser Lcom/fasterxml/jackson/core/JsonParser;
Exceptions:
throws java.io.IOException, io.vertx.core.json.DecodeException
MethodParameters:
Name Flags
parser
private static java.util.Map<java.lang.String, java.lang.Object> parseObject(com.fasterxml.jackson.core.JsonParser);
descriptor: (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/util/Map;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=8, args_size=1
start local 0 0: aload 0
invokevirtual com.fasterxml.jackson.core.JsonParser.nextFieldName:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: new java.util.LinkedHashMap
dup
iconst_2
invokespecial java.util.LinkedHashMap.<init>:(I)V
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
invokevirtual com.fasterxml.jackson.core.JsonParser.nextToken:()Lcom/fasterxml/jackson/core/JsonToken;
pop
4: aload 0
invokestatic io.vertx.core.json.jackson.JacksonCodec.parseAny:(Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object;
astore 2
start local 2 5: aload 0
invokevirtual com.fasterxml.jackson.core.JsonParser.nextFieldName:()Ljava/lang/String;
astore 3
start local 3 6: aload 3
ifnonnull 10
7: new java.util.LinkedHashMap
dup
iconst_2
invokespecial java.util.LinkedHashMap.<init>:(I)V
astore 4
start local 4 8: aload 4
aload 1
aload 2
invokevirtual java.util.LinkedHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: aload 4
areturn
end local 4 10: StackMap locals: java.lang.Object java.lang.String
StackMap stack:
aload 0
invokevirtual com.fasterxml.jackson.core.JsonParser.nextToken:()Lcom/fasterxml/jackson/core/JsonToken;
pop
11: aload 0
invokestatic io.vertx.core.json.jackson.JacksonCodec.parseAny:(Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object;
astore 4
start local 4 12: aload 0
invokevirtual com.fasterxml.jackson.core.JsonParser.nextFieldName:()Ljava/lang/String;
astore 5
start local 5 13: aload 5
ifnonnull 18
14: new java.util.LinkedHashMap
dup
iconst_2
invokespecial java.util.LinkedHashMap.<init>:(I)V
astore 6
start local 6 15: aload 6
aload 1
aload 2
invokevirtual java.util.LinkedHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
16: aload 6
aload 3
aload 4
invokevirtual java.util.LinkedHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
17: aload 6
areturn
end local 6 18: StackMap locals: java.lang.Object java.lang.String
StackMap stack:
new java.util.LinkedHashMap
dup
invokespecial java.util.LinkedHashMap.<init>:()V
astore 6
start local 6 19: aload 6
aload 1
aload 2
invokevirtual java.util.LinkedHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
20: aload 6
aload 3
aload 4
invokevirtual java.util.LinkedHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
21: StackMap locals: java.util.LinkedHashMap
StackMap stack:
aload 0
invokevirtual com.fasterxml.jackson.core.JsonParser.nextToken:()Lcom/fasterxml/jackson/core/JsonToken;
pop
22: aload 0
invokestatic io.vertx.core.json.jackson.JacksonCodec.parseAny:(Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object;
astore 7
start local 7 23: aload 6
aload 5
aload 7
invokevirtual java.util.LinkedHashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
24: aload 0
invokevirtual com.fasterxml.jackson.core.JsonParser.nextFieldName:()Ljava/lang/String;
astore 5
end local 7 25: aload 5
ifnonnull 21
26: aload 6
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 parser Lcom/fasterxml/jackson/core/JsonParser;
1 27 1 key1 Ljava/lang/String;
5 27 2 value1 Ljava/lang/Object;
6 27 3 key2 Ljava/lang/String;
8 10 4 obj Ljava/util/LinkedHashMap<Ljava/lang/String;Ljava/lang/Object;>;
12 27 4 value2 Ljava/lang/Object;
13 27 5 key Ljava/lang/String;
15 18 6 obj Ljava/util/LinkedHashMap<Ljava/lang/String;Ljava/lang/Object;>;
19 27 6 obj Ljava/util/LinkedHashMap<Ljava/lang/String;Ljava/lang/Object;>;
23 25 7 value Ljava/lang/Object;
Exceptions:
throws java.io.IOException
Signature: (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/Object;>;
MethodParameters:
Name Flags
parser
private static java.util.List<java.lang.Object> parseArray(com.fasterxml.jackson.core.JsonParser);
descriptor: (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 1: StackMap locals: java.util.List
StackMap stack:
aload 0
invokevirtual com.fasterxml.jackson.core.JsonParser.nextToken:()Lcom/fasterxml/jackson/core/JsonToken;
pop
2: aload 0
invokevirtual com.fasterxml.jackson.core.JsonParser.getCurrentTokenId:()I
istore 2
start local 2 3: iload 2
iconst_5
if_icmpne 5
4: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
5: StackMap locals: int
StackMap stack:
iload 2
iconst_4
if_icmpne 7
6: aload 1
areturn
7: StackMap locals:
StackMap stack:
aload 0
invokestatic io.vertx.core.json.jackson.JacksonCodec.parseAny:(Lcom/fasterxml/jackson/core/JsonParser;)Ljava/lang/Object;
astore 3
start local 3 8: aload 1
aload 3
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 3 end local 2 9: goto 1
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 parser Lcom/fasterxml/jackson/core/JsonParser;
1 10 1 array Ljava/util/List<Ljava/lang/Object;>;
3 9 2 tokenId I
8 9 3 value Ljava/lang/Object;
Exceptions:
throws java.io.IOException
Signature: (Lcom/fasterxml/jackson/core/JsonParser;)Ljava/util/List<Ljava/lang/Object;>;
MethodParameters:
Name Flags
parser
static void close(java.io.Closeable);
descriptor: (Ljava/io/Closeable;)V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface java.io.Closeable.close:()V
1: goto 3
StackMap locals:
StackMap stack: java.io.IOException
2: pop
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 parser Ljava/io/Closeable;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
parser
private static void encodeJson(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator);
descriptor: (Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
instanceof io.vertx.core.json.JsonObject
ifeq 3
1: aload 0
checkcast io.vertx.core.json.JsonObject
invokevirtual io.vertx.core.json.JsonObject.getMap:()Ljava/util/Map;
astore 0
2: goto 5
StackMap locals:
StackMap stack:
3: aload 0
instanceof io.vertx.core.json.JsonArray
ifeq 5
4: aload 0
checkcast io.vertx.core.json.JsonArray
invokevirtual io.vertx.core.json.JsonArray.getList:()Ljava/util/List;
astore 0
5: StackMap locals:
StackMap stack:
aload 0
instanceof java.util.Map
ifeq 14
6: aload 1
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeStartObject:()V
7: aload 0
checkcast java.util.Map
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 11
StackMap locals: java.lang.Object com.fasterxml.jackson.core.JsonGenerator top java.util.Iterator
StackMap stack:
8: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 9: aload 1
aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeFieldName:(Ljava/lang/String;)V
10: aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
aload 1
invokestatic io.vertx.core.json.jackson.JacksonCodec.encodeJson:(Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V
end local 2 11: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
12: aload 1
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeEndObject:()V
13: goto 73
StackMap locals: java.lang.Object com.fasterxml.jackson.core.JsonGenerator
StackMap stack:
14: aload 0
instanceof java.util.List
ifeq 22
15: aload 1
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeStartArray:()V
16: aload 0
checkcast java.util.List
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 19
StackMap locals: java.lang.Object com.fasterxml.jackson.core.JsonGenerator top java.util.Iterator
StackMap stack:
17: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 2
start local 2 18: aload 2
aload 1
invokestatic io.vertx.core.json.jackson.JacksonCodec.encodeJson:(Ljava/lang/Object;Lcom/fasterxml/jackson/core/JsonGenerator;)V
end local 2 19: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 17
20: aload 1
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeEndArray:()V
21: goto 73
StackMap locals: java.lang.Object com.fasterxml.jackson.core.JsonGenerator
StackMap stack:
22: aload 0
instanceof java.lang.String
ifeq 25
23: aload 1
aload 0
checkcast java.lang.String
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeString:(Ljava/lang/String;)V
24: goto 73
StackMap locals:
StackMap stack:
25: aload 0
instanceof java.lang.Number
ifeq 52
26: aload 0
instanceof java.lang.Short
ifeq 29
27: aload 1
aload 0
checkcast java.lang.Short
invokevirtual java.lang.Short.shortValue:()S
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNumber:(S)V
28: goto 73
StackMap locals:
StackMap stack:
29: aload 0
instanceof java.lang.Integer
ifeq 32
30: aload 1
aload 0
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNumber:(I)V
31: goto 73
StackMap locals:
StackMap stack:
32: aload 0
instanceof java.lang.Long
ifeq 35
33: aload 1
aload 0
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNumber:(J)V
34: goto 73
StackMap locals:
StackMap stack:
35: aload 0
instanceof java.lang.Float
ifeq 38
36: aload 1
aload 0
checkcast java.lang.Float
invokevirtual java.lang.Float.floatValue:()F
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNumber:(F)V
37: goto 73
StackMap locals:
StackMap stack:
38: aload 0
instanceof java.lang.Double
ifeq 41
39: aload 1
aload 0
checkcast java.lang.Double
invokevirtual java.lang.Double.doubleValue:()D
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNumber:(D)V
40: goto 73
StackMap locals:
StackMap stack:
41: aload 0
instanceof java.lang.Byte
ifeq 44
42: aload 1
aload 0
checkcast java.lang.Byte
invokevirtual java.lang.Byte.byteValue:()B
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNumber:(S)V
43: goto 73
StackMap locals:
StackMap stack:
44: aload 0
instanceof java.math.BigInteger
ifeq 47
45: aload 1
aload 0
checkcast java.math.BigInteger
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNumber:(Ljava/math/BigInteger;)V
46: goto 73
StackMap locals:
StackMap stack:
47: aload 0
instanceof java.math.BigDecimal
ifeq 50
48: aload 1
aload 0
checkcast java.math.BigDecimal
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNumber:(Ljava/math/BigDecimal;)V
49: goto 73
50: StackMap locals:
StackMap stack:
aload 1
aload 0
checkcast java.lang.Number
invokevirtual java.lang.Number.doubleValue:()D
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNumber:(D)V
51: goto 73
StackMap locals:
StackMap stack:
52: aload 0
instanceof java.lang.Boolean
ifeq 55
53: aload 1
aload 0
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeBoolean:(Z)V
54: goto 73
StackMap locals:
StackMap stack:
55: aload 0
instanceof java.time.Instant
ifeq 58
56: aload 1
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;
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeString:(Ljava/lang/String;)V
57: goto 73
StackMap locals:
StackMap stack:
58: aload 0
instanceof byte[]
ifeq 61
59: aload 1
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;
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeString:(Ljava/lang/String;)V
60: goto 73
StackMap locals:
StackMap stack:
61: aload 0
instanceof io.vertx.core.buffer.Buffer
ifeq 64
62: aload 1
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;
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeString:(Ljava/lang/String;)V
63: goto 73
StackMap locals:
StackMap stack:
64: aload 0
instanceof java.lang.Enum
ifeq 67
65: aload 1
aload 0
checkcast java.lang.Enum
invokevirtual java.lang.Enum.name:()Ljava/lang/String;
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeString:(Ljava/lang/String;)V
66: goto 73
StackMap locals:
StackMap stack:
67: aload 0
ifnonnull 70
68: aload 1
invokevirtual com.fasterxml.jackson.core.JsonGenerator.writeNull:()V
69: goto 73
70: StackMap locals:
StackMap stack:
new io.vertx.core.json.EncodeException
dup
new java.lang.StringBuilder
dup
ldc "Mapping "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " is not available without Jackson Databind on the classpath"
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
71: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 72: new io.vertx.core.json.EncodeException
dup
aload 2
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aload 2
invokespecial io.vertx.core.json.EncodeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 73: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 74 0 json Ljava/lang/Object;
0 74 1 generator Lcom/fasterxml/jackson/core/JsonGenerator;
9 11 2 e Ljava/util/Map$Entry<Ljava/lang/String;*>;
18 19 2 item Ljava/lang/Object;
72 73 2 e Ljava/io/IOException;
Exception table:
from to target type
0 71 71 Class java.io.IOException
Exceptions:
throws io.vertx.core.json.EncodeException
MethodParameters:
Name Flags
json
generator
private static <T> java.lang.Class<T> classTypeOf(com.fasterxml.jackson.core.type.TypeReference<T>);
descriptor: (Lcom/fasterxml/jackson/core/type/TypeReference;)Ljava/lang/Class;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual com.fasterxml.jackson.core.type.TypeReference.getType:()Ljava/lang/reflect/Type;
astore 1
start local 1 1: aload 1
instanceof java.lang.Class
ifeq 3
2: aload 1
checkcast java.lang.Class
areturn
3: StackMap locals: java.lang.reflect.Type
StackMap stack:
aload 1
instanceof java.lang.reflect.ParameterizedType
ifeq 5
4: aload 1
checkcast java.lang.reflect.ParameterizedType
invokeinterface java.lang.reflect.ParameterizedType.getRawType:()Ljava/lang/reflect/Type;
checkcast java.lang.Class
areturn
5: StackMap locals:
StackMap stack:
new io.vertx.core.json.DecodeException
dup
invokespecial io.vertx.core.json.DecodeException.<init>:()V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 typeRef Lcom/fasterxml/jackson/core/type/TypeReference<TT;>;
1 6 1 type Ljava/lang/reflect/Type;
Signature: <T:Ljava/lang/Object;>(Lcom/fasterxml/jackson/core/type/TypeReference<TT;>;)Ljava/lang/Class<TT;>;
MethodParameters:
Name Flags
typeRef
private static <T> T cast(, java.lang.Class<T>);
descriptor: (Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
instanceof java.util.Map
ifeq 6
1: aload 1
ldc Ljava/util/Map;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 3
2: new io.vertx.core.json.DecodeException
dup
ldc "Failed to decode"
invokespecial io.vertx.core.json.DecodeException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/lang/Object;
if_acmpne 5
4: 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
5: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
6: StackMap locals:
StackMap stack:
aload 0
instanceof java.util.List
ifeq 12
7: aload 1
ldc Ljava/util/List;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 9
8: new io.vertx.core.json.DecodeException
dup
ldc "Failed to decode"
invokespecial io.vertx.core.json.DecodeException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 1
ldc Ljava/lang/Object;
if_acmpne 11
10: 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
11: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
12: StackMap locals:
StackMap stack:
aload 0
instanceof java.lang.String
ifeq 29
13: aload 0
checkcast java.lang.String
astore 2
start local 2 14: aload 1
invokevirtual java.lang.Class.isEnum:()Z
ifeq 17
15: aload 1
aload 2
invokestatic java.lang.Enum.valueOf:(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
astore 0
16: goto 28
StackMap locals: java.lang.String
StackMap stack:
17: aload 1
ldc [B
if_acmpne 20
18: getstatic io.vertx.core.json.impl.JsonUtil.BASE64_DECODER:Ljava/util/Base64$Decoder;
aload 2
invokevirtual java.util.Base64$Decoder.decode:(Ljava/lang/String;)[B
astore 0
19: goto 28
StackMap locals:
StackMap stack:
20: aload 1
ldc Lio/vertx/core/buffer/Buffer;
if_acmpne 23
21: getstatic io.vertx.core.json.impl.JsonUtil.BASE64_DECODER:Ljava/util/Base64$Decoder;
aload 2
invokevirtual java.util.Base64$Decoder.decode:(Ljava/lang/String;)[B
invokestatic io.vertx.core.buffer.Buffer.buffer:([B)Lio/vertx/core/buffer/Buffer;
astore 0
22: goto 28
StackMap locals:
StackMap stack:
23: aload 1
ldc Ljava/time/Instant;
if_acmpne 26
24: getstatic java.time.format.DateTimeFormatter.ISO_INSTANT:Ljava/time/format/DateTimeFormatter;
aload 2
invokevirtual java.time.format.DateTimeFormatter.parse:(Ljava/lang/CharSequence;)Ljava/time/temporal/TemporalAccessor;
invokestatic java.time.Instant.from:(Ljava/time/temporal/TemporalAccessor;)Ljava/time/Instant;
astore 0
25: goto 28
StackMap locals:
StackMap stack:
26: aload 1
ldc Ljava/lang/String;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 28
27: new io.vertx.core.json.DecodeException
dup
ldc "Failed to decode"
invokespecial io.vertx.core.json.DecodeException.<init>:(Ljava/lang/String;)V
athrow
28: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 2 29: StackMap locals:
StackMap stack:
aload 0
instanceof java.lang.Boolean
ifeq 33
30: aload 1
ldc Ljava/lang/Boolean;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 32
31: new io.vertx.core.json.DecodeException
dup
ldc "Failed to decode"
invokespecial io.vertx.core.json.DecodeException.<init>:(Ljava/lang/String;)V
athrow
32: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
33: StackMap locals:
StackMap stack:
aload 0
ifnonnull 35
34: aconst_null
areturn
35: StackMap locals:
StackMap stack:
aload 0
checkcast java.lang.Number
astore 2
start local 2 36: aload 1
ldc Ljava/lang/Integer;
if_acmpne 39
37: aload 2
invokevirtual java.lang.Number.intValue:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 0
38: goto 56
StackMap locals: java.lang.Number
StackMap stack:
39: aload 1
ldc Ljava/lang/Long;
if_acmpne 42
40: aload 2
invokevirtual java.lang.Number.longValue:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
astore 0
41: goto 56
StackMap locals:
StackMap stack:
42: aload 1
ldc Ljava/lang/Float;
if_acmpne 45
43: aload 2
invokevirtual java.lang.Number.floatValue:()F
invokestatic java.lang.Float.valueOf:(F)Ljava/lang/Float;
astore 0
44: goto 56
StackMap locals:
StackMap stack:
45: aload 1
ldc Ljava/lang/Double;
if_acmpne 48
46: aload 2
invokevirtual java.lang.Number.doubleValue:()D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
astore 0
47: goto 56
StackMap locals:
StackMap stack:
48: aload 1
ldc Ljava/lang/Byte;
if_acmpne 51
49: aload 2
invokevirtual java.lang.Number.byteValue:()B
invokestatic java.lang.Byte.valueOf:(B)Ljava/lang/Byte;
astore 0
50: goto 56
StackMap locals:
StackMap stack:
51: aload 1
ldc Ljava/lang/Short;
if_acmpne 54
52: aload 2
invokevirtual java.lang.Number.shortValue:()S
invokestatic java.lang.Short.valueOf:(S)Ljava/lang/Short;
astore 0
53: goto 56
StackMap locals:
StackMap stack:
54: aload 1
ldc Ljava/lang/Object;
if_acmpeq 56
aload 1
ldc Ljava/lang/Number;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifne 56
55: new io.vertx.core.json.DecodeException
dup
ldc "Failed to decode"
invokespecial io.vertx.core.json.DecodeException.<init>:(Ljava/lang/String;)V
athrow
56: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 57 0 o Ljava/lang/Object;
0 57 1 clazz Ljava/lang/Class<TT;>;
14 29 2 str Ljava/lang/String;
36 57 2 number Ljava/lang/Number;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Object;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
o
clazz
public static <T> T decodeValue(java.lang.String, com.fasterxml.jackson.core.type.TypeReference<T>);
descriptor: (Ljava/lang/String;Lcom/fasterxml/jackson/core/type/TypeReference;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic io.vertx.core.json.jackson.JacksonFactory.CODEC:Lio/vertx/core/json/jackson/JacksonCodec;
aload 0
aload 1
invokevirtual io.vertx.core.json.jackson.JacksonCodec.fromString:(Ljava/lang/String;Lcom/fasterxml/jackson/core/type/TypeReference;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 str Ljava/lang/String;
0 1 1 type 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
type
public static <T> T decodeValue(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: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic io.vertx.core.json.jackson.JacksonFactory.CODEC:Lio/vertx/core/json/jackson/JacksonCodec;
aload 0
aload 1
invokevirtual io.vertx.core.json.jackson.JacksonCodec.fromBuffer:(Lio/vertx/core/buffer/Buffer;Lcom/fasterxml/jackson/core/type/TypeReference;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 buf Lio/vertx/core/buffer/Buffer;
0 1 1 type 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
type
}
SourceFile: "JacksonCodec.java"
InnerClasses:
public final Feature = com.fasterxml.jackson.core.JsonParser$Feature of com.fasterxml.jackson.core.JsonParser
public Decoder = java.util.Base64$Decoder of java.util.Base64
public Encoder = java.util.Base64$Encoder of java.util.Base64
public abstract Entry = java.util.Map$Entry of java.util.Map