public class io.vertx.ext.web.codec.impl.BodyCodecImpl<T> implements io.vertx.ext.web.codec.BodyCodec<T>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.web.codec.impl.BodyCodecImpl
super_class: java.lang.Object
{
public static final java.util.function.Function<io.vertx.core.buffer.Buffer, java.lang.Void> VOID_DECODER;
descriptor: Ljava/util/function/Function;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/function/Function<Lio/vertx/core/buffer/Buffer;Ljava/lang/Void;>;
public static final java.util.function.Function<io.vertx.core.buffer.Buffer, java.lang.String> UTF8_DECODER;
descriptor: Ljava/util/function/Function;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/function/Function<Lio/vertx/core/buffer/Buffer;Ljava/lang/String;>;
public static final java.util.function.Function<io.vertx.core.buffer.Buffer, io.vertx.core.json.JsonObject> JSON_OBJECT_DECODER;
descriptor: Ljava/util/function/Function;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/function/Function<Lio/vertx/core/buffer/Buffer;Lio/vertx/core/json/JsonObject;>;
public static final java.util.function.Function<io.vertx.core.buffer.Buffer, io.vertx.core.json.JsonArray> JSON_ARRAY_DECODER;
descriptor: Ljava/util/function/Function;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/function/Function<Lio/vertx/core/buffer/Buffer;Lio/vertx/core/json/JsonArray;>;
public static final io.vertx.ext.web.codec.BodyCodec<java.lang.String> STRING;
descriptor: Lio/vertx/ext/web/codec/BodyCodec;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Lio/vertx/ext/web/codec/BodyCodec<Ljava/lang/String;>;
public static final io.vertx.ext.web.codec.BodyCodec<java.lang.Void> NONE;
descriptor: Lio/vertx/ext/web/codec/BodyCodec;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Lio/vertx/ext/web/codec/BodyCodec<Ljava/lang/Void;>;
public static final io.vertx.ext.web.codec.BodyCodec<io.vertx.core.buffer.Buffer> BUFFER;
descriptor: Lio/vertx/ext/web/codec/BodyCodec;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Lio/vertx/ext/web/codec/BodyCodec<Lio/vertx/core/buffer/Buffer;>;
public static final io.vertx.ext.web.codec.BodyCodec<io.vertx.core.json.JsonObject> JSON_OBJECT;
descriptor: Lio/vertx/ext/web/codec/BodyCodec;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Lio/vertx/ext/web/codec/BodyCodec<Lio/vertx/core/json/JsonObject;>;
public static final io.vertx.ext.web.codec.BodyCodec<io.vertx.core.json.JsonArray> JSON_ARRAY;
descriptor: Lio/vertx/ext/web/codec/BodyCodec;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
Signature: Lio/vertx/ext/web/codec/BodyCodec<Lio/vertx/core/json/JsonArray;>;
private final java.util.function.Function<io.vertx.core.buffer.Buffer, T> decoder;
descriptor: Ljava/util/function/Function;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Function<Lio/vertx/core/buffer/Buffer;TT;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
io/vertx/ext/web/codec/impl/BodyCodecImpl.lambda$3(Lio/vertx/core/buffer/Buffer;)Ljava/lang/Void; (6)
(Lio/vertx/core/buffer/Buffer;)Ljava/lang/Void;
putstatic io.vertx.ext.web.codec.impl.BodyCodecImpl.VOID_DECODER:Ljava/util/function/Function;
1: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
io/vertx/core/buffer/Buffer.toString()Ljava/lang/String; (9 itf)
(Lio/vertx/core/buffer/Buffer;)Ljava/lang/String;
putstatic io.vertx.ext.web.codec.impl.BodyCodecImpl.UTF8_DECODER:Ljava/util/function/Function;
2: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
io/vertx/ext/web/codec/impl/BodyCodecImpl.lambda$1(Lio/vertx/core/buffer/Buffer;)Lio/vertx/core/json/JsonObject; (6)
(Lio/vertx/core/buffer/Buffer;)Lio/vertx/core/json/JsonObject;
putstatic io.vertx.ext.web.codec.impl.BodyCodecImpl.JSON_OBJECT_DECODER:Ljava/util/function/Function;
3: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
io/vertx/ext/web/codec/impl/BodyCodecImpl.lambda$2(Lio/vertx/core/buffer/Buffer;)Lio/vertx/core/json/JsonArray; (6)
(Lio/vertx/core/buffer/Buffer;)Lio/vertx/core/json/JsonArray;
putstatic io.vertx.ext.web.codec.impl.BodyCodecImpl.JSON_ARRAY_DECODER:Ljava/util/function/Function;
4: new io.vertx.ext.web.codec.impl.BodyCodecImpl
dup
getstatic io.vertx.ext.web.codec.impl.BodyCodecImpl.UTF8_DECODER:Ljava/util/function/Function;
invokespecial io.vertx.ext.web.codec.impl.BodyCodecImpl.<init>:(Ljava/util/function/Function;)V
putstatic io.vertx.ext.web.codec.impl.BodyCodecImpl.STRING:Lio/vertx/ext/web/codec/BodyCodec;
5: new io.vertx.ext.web.codec.impl.BodyCodecImpl
dup
getstatic io.vertx.ext.web.codec.impl.BodyCodecImpl.VOID_DECODER:Ljava/util/function/Function;
invokespecial io.vertx.ext.web.codec.impl.BodyCodecImpl.<init>:(Ljava/util/function/Function;)V
putstatic io.vertx.ext.web.codec.impl.BodyCodecImpl.NONE:Lio/vertx/ext/web/codec/BodyCodec;
6: new io.vertx.ext.web.codec.impl.BodyCodecImpl
dup
invokestatic java.util.function.Function.identity:()Ljava/util/function/Function;
invokespecial io.vertx.ext.web.codec.impl.BodyCodecImpl.<init>:(Ljava/util/function/Function;)V
putstatic io.vertx.ext.web.codec.impl.BodyCodecImpl.BUFFER:Lio/vertx/ext/web/codec/BodyCodec;
7: new io.vertx.ext.web.codec.impl.BodyCodecImpl
dup
getstatic io.vertx.ext.web.codec.impl.BodyCodecImpl.JSON_OBJECT_DECODER:Ljava/util/function/Function;
invokespecial io.vertx.ext.web.codec.impl.BodyCodecImpl.<init>:(Ljava/util/function/Function;)V
putstatic io.vertx.ext.web.codec.impl.BodyCodecImpl.JSON_OBJECT:Lio/vertx/ext/web/codec/BodyCodec;
8: new io.vertx.ext.web.codec.impl.BodyCodecImpl
dup
getstatic io.vertx.ext.web.codec.impl.BodyCodecImpl.JSON_ARRAY_DECODER:Ljava/util/function/Function;
invokespecial io.vertx.ext.web.codec.impl.BodyCodecImpl.<init>:(Ljava/util/function/Function;)V
putstatic io.vertx.ext.web.codec.impl.BodyCodecImpl.JSON_ARRAY:Lio/vertx/ext/web/codec/BodyCodec;
return
LocalVariableTable:
Start End Slot Name Signature
public static io.vertx.ext.web.codec.impl.BodyCodecImpl<java.lang.String> string(java.lang.String);
descriptor: (Ljava/lang/String;)Lio/vertx/ext/web/codec/impl/BodyCodecImpl;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new io.vertx.ext.web.codec.impl.BodyCodecImpl
dup
aload 0
invokedynamic apply(Ljava/lang/String;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
io/vertx/ext/web/codec/impl/BodyCodecImpl.lambda$4(Ljava/lang/String;Lio/vertx/core/buffer/Buffer;)Ljava/lang/String; (6)
(Lio/vertx/core/buffer/Buffer;)Ljava/lang/String;
invokespecial io.vertx.ext.web.codec.impl.BodyCodecImpl.<init>:(Ljava/util/function/Function;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 encoding Ljava/lang/String;
Signature: (Ljava/lang/String;)Lio/vertx/ext/web/codec/impl/BodyCodecImpl<Ljava/lang/String;>;
MethodParameters:
Name Flags
encoding
public static <T> io.vertx.ext.web.codec.BodyCodec<T> json(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Lio/vertx/ext/web/codec/BodyCodec;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new io.vertx.ext.web.codec.impl.BodyCodecImpl
dup
aload 0
invokestatic io.vertx.ext.web.codec.impl.BodyCodecImpl.jsonDecoder:(Ljava/lang/Class;)Ljava/util/function/Function;
invokespecial io.vertx.ext.web.codec.impl.BodyCodecImpl.<init>:(Ljava/util/function/Function;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 type Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)Lio/vertx/ext/web/codec/BodyCodec<TT;>;
MethodParameters:
Name Flags
type
public static <T> java.util.function.Function<io.vertx.core.buffer.Buffer, T> jsonDecoder(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/util/function/Function;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokedynamic apply(Ljava/lang/Class;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
io/vertx/ext/web/codec/impl/BodyCodecImpl.lambda$5(Ljava/lang/Class;Lio/vertx/core/buffer/Buffer;)Ljava/lang/Object; (6)
(Lio/vertx/core/buffer/Buffer;)Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 type Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)Ljava/util/function/Function<Lio/vertx/core/buffer/Buffer;TT;>;
MethodParameters:
Name Flags
type
public void <init>(java.util.function.Function<io.vertx.core.buffer.Buffer, T>);
descriptor: (Ljava/util/function/Function;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.vertx.ext.web.codec.impl.BodyCodecImpl.decoder:Ljava/util/function/Function;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/ext/web/codec/impl/BodyCodecImpl<TT;>;
0 3 1 decoder Ljava/util/function/Function<Lio/vertx/core/buffer/Buffer;TT;>;
Signature: (Ljava/util/function/Function<Lio/vertx/core/buffer/Buffer;TT;>;)V
MethodParameters:
Name Flags
decoder
public void create(io.vertx.core.Handler<io.vertx.core.AsyncResult<io.vertx.ext.web.codec.spi.BodyStream<T>>>);
descriptor: (Lio/vertx/core/Handler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
new io.vertx.ext.web.codec.impl.BodyCodecImpl$1
dup
aload 0
invokespecial io.vertx.ext.web.codec.impl.BodyCodecImpl$1.<init>:(Lio/vertx/ext/web/codec/impl/BodyCodecImpl;)V
invokestatic io.vertx.core.Future.succeededFuture:(Ljava/lang/Object;)Lio/vertx/core/Future;
invokeinterface io.vertx.core.Handler.handle:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/ext/web/codec/impl/BodyCodecImpl<TT;>;
0 2 1 handler Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/ext/web/codec/spi/BodyStream<TT;>;>;>;
Signature: (Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Lio/vertx/ext/web/codec/spi/BodyStream<TT;>;>;>;)V
MethodParameters:
Name Flags
handler
private static java.lang.Void lambda$3(io.vertx.core.buffer.Buffer);
descriptor: (Lio/vertx/core/buffer/Buffer;)Ljava/lang/Void;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 buff Lio/vertx/core/buffer/Buffer;
private static io.vertx.core.json.JsonObject lambda$1(io.vertx.core.buffer.Buffer);
descriptor: (Lio/vertx/core/buffer/Buffer;)Lio/vertx/core/json/JsonObject;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokestatic io.vertx.core.json.Json.decodeValue:(Lio/vertx/core/buffer/Buffer;)Ljava/lang/Object;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: java.lang.Object
StackMap stack:
aload 1
instanceof io.vertx.core.json.JsonObject
ifeq 5
4: aload 1
checkcast io.vertx.core.json.JsonObject
areturn
5: StackMap locals:
StackMap stack:
new io.vertx.core.json.DecodeException
dup
new java.lang.StringBuilder
dup
ldc "Invalid Json Object decoded as "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
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;
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 6 0 buff Lio/vertx/core/buffer/Buffer;
1 6 1 val Ljava/lang/Object;
private static io.vertx.core.json.JsonArray lambda$2(io.vertx.core.buffer.Buffer);
descriptor: (Lio/vertx/core/buffer/Buffer;)Lio/vertx/core/json/JsonArray;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokestatic io.vertx.core.json.Json.decodeValue:(Lio/vertx/core/buffer/Buffer;)Ljava/lang/Object;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: aconst_null
areturn
3: StackMap locals: java.lang.Object
StackMap stack:
aload 1
instanceof io.vertx.core.json.JsonArray
ifeq 5
4: aload 1
checkcast io.vertx.core.json.JsonArray
areturn
5: StackMap locals:
StackMap stack:
new io.vertx.core.json.DecodeException
dup
new java.lang.StringBuilder
dup
ldc "Invalid Json Object decoded as "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
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;
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 6 0 buff Lio/vertx/core/buffer/Buffer;
1 6 1 val Ljava/lang/Object;
private static java.lang.String lambda$4(java.lang.String, io.vertx.core.buffer.Buffer);
descriptor: (Ljava/lang/String;Lio/vertx/core/buffer/Buffer;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
aload 0
invokeinterface io.vertx.core.buffer.Buffer.toString:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 buff Lio/vertx/core/buffer/Buffer;
private static java.lang.Object lambda$5(java.lang.Class, io.vertx.core.buffer.Buffer);
descriptor: (Ljava/lang/Class;Lio/vertx/core/buffer/Buffer;)Ljava/lang/Object;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
aload 0
invokestatic io.vertx.core.json.Json.decodeValue:(Lio/vertx/core/buffer/Buffer;Ljava/lang/Class;)Ljava/lang/Object;
areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 1 1 buff Lio/vertx/core/buffer/Buffer;
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Lio/vertx/ext/web/codec/BodyCodec<TT;>;
SourceFile: "BodyCodecImpl.java"
NestMembers:
io.vertx.ext.web.codec.impl.BodyCodecImpl$1
InnerClasses:
io.vertx.ext.web.codec.impl.BodyCodecImpl$1
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles