public class jdk.internal.net.http.ResponseSubscribers$MappingSubscriber<T, U> implements jdk.internal.net.http.ResponseSubscribers$TrustedSubscriber<U>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.net.http.ResponseSubscribers$MappingSubscriber
super_class: java.lang.Object
{
private final java.net.http.HttpResponse$BodySubscriber<T> upstream;
descriptor: Ljava/net/http/HttpResponse$BodySubscriber;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/net/http/HttpResponse$BodySubscriber<TT;>;
private final java.util.function.Function<? super T, ? extends U> mapper;
descriptor: Ljava/util/function/Function;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Function<-TT;+TU;>;
private final boolean trusted;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.net.http.HttpResponse$BodySubscriber<T>, java.util.function.Function<? super T, ? extends U>);
descriptor: (Ljava/net/http/HttpResponse$BodySubscriber;Ljava/util/function/Function;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_0
invokespecial jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.<init>:(Ljava/net/http/HttpResponse$BodySubscriber;Ljava/util/function/Function;Z)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/ResponseSubscribers$MappingSubscriber<TT;TU;>;
0 2 1 upstream Ljava/net/http/HttpResponse$BodySubscriber<TT;>;
0 2 2 mapper Ljava/util/function/Function<-TT;+TU;>;
Signature: (Ljava/net/http/HttpResponse$BodySubscriber<TT;>;Ljava/util/function/Function<-TT;+TU;>;)V
MethodParameters:
Name Flags
upstream
mapper
void <init>(java.net.http.HttpResponse$BodySubscriber<T>, java.util.function.Function<? super T, ? extends U>, );
descriptor: (Ljava/net/http/HttpResponse$BodySubscriber;Ljava/util/function/Function;Z)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.http.HttpResponse$BodySubscriber
putfield jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.upstream:Ljava/net/http/HttpResponse$BodySubscriber;
2: aload 0
aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.function.Function
putfield jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.mapper:Ljava/util/function/Function;
3: aload 0
iload 3
putfield jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.trusted:Z
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/net/http/ResponseSubscribers$MappingSubscriber<TT;TU;>;
0 5 1 upstream Ljava/net/http/HttpResponse$BodySubscriber<TT;>;
0 5 2 mapper Ljava/util/function/Function<-TT;+TU;>;
0 5 3 trusted Z
Signature: (Ljava/net/http/HttpResponse$BodySubscriber<TT;>;Ljava/util/function/Function<-TT;+TU;>;Z)V
MethodParameters:
Name Flags
upstream
mapper
trusted
public boolean needsExecutor();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.trusted:Z
ifeq 1
aload 0
getfield jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.upstream:Ljava/net/http/HttpResponse$BodySubscriber;
invokestatic jdk.internal.net.http.ResponseSubscribers$TrustedSubscriber.needsExecutor:(Ljava/net/http/HttpResponse$BodySubscriber;)Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/ResponseSubscribers$MappingSubscriber<TT;TU;>;
public java.util.concurrent.CompletionStage<U> getBody();
descriptor: ()Ljava/util/concurrent/CompletionStage;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.upstream:Ljava/net/http/HttpResponse$BodySubscriber;
invokeinterface java.net.http.HttpResponse$BodySubscriber.getBody:()Ljava/util/concurrent/CompletionStage;
aload 0
getfield jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.mapper:Ljava/util/function/Function;
invokeinterface java.util.concurrent.CompletionStage.thenApply:(Ljava/util/function/Function;)Ljava/util/concurrent/CompletionStage;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/ResponseSubscribers$MappingSubscriber<TT;TU;>;
Signature: ()Ljava/util/concurrent/CompletionStage<TU;>;
public void onSubscribe(java.util.concurrent.Flow$Subscription);
descriptor: (Ljava/util/concurrent/Flow$Subscription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.upstream:Ljava/net/http/HttpResponse$BodySubscriber;
aload 1
invokeinterface java.net.http.HttpResponse$BodySubscriber.onSubscribe:(Ljava/util/concurrent/Flow$Subscription;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/ResponseSubscribers$MappingSubscriber<TT;TU;>;
0 2 1 subscription Ljava/util/concurrent/Flow$Subscription;
MethodParameters:
Name Flags
subscription
public void onNext(java.util.List<java.nio.ByteBuffer>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.upstream:Ljava/net/http/HttpResponse$BodySubscriber;
aload 1
invokeinterface java.net.http.HttpResponse$BodySubscriber.onNext:(Ljava/lang/Object;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/ResponseSubscribers$MappingSubscriber<TT;TU;>;
0 2 1 item Ljava/util/List<Ljava/nio/ByteBuffer;>;
Signature: (Ljava/util/List<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
item
public void onError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.upstream:Ljava/net/http/HttpResponse$BodySubscriber;
aload 1
invokeinterface java.net.http.HttpResponse$BodySubscriber.onError:(Ljava/lang/Throwable;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/ResponseSubscribers$MappingSubscriber<TT;TU;>;
0 2 1 throwable Ljava/lang/Throwable;
MethodParameters:
Name Flags
throwable
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.upstream:Ljava/net/http/HttpResponse$BodySubscriber;
invokeinterface java.net.http.HttpResponse$BodySubscriber.onComplete:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/ResponseSubscribers$MappingSubscriber<TT;TU;>;
public void onNext(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.util.List
invokevirtual jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.onNext:(Ljava/util/List;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <T:Ljava/lang/Object;U:Ljava/lang/Object;>Ljava/lang/Object;Ljdk/internal/net/http/ResponseSubscribers$TrustedSubscriber<TU;>;
SourceFile: "ResponseSubscribers.java"
NestHost: jdk.internal.net.http.ResponseSubscribers
InnerClasses:
public abstract BodySubscriber = java.net.http.HttpResponse$BodySubscriber of java.net.http.HttpResponse
public abstract Subscription = java.util.concurrent.Flow$Subscription of java.util.concurrent.Flow
public MappingSubscriber = jdk.internal.net.http.ResponseSubscribers$MappingSubscriber of jdk.internal.net.http.ResponseSubscribers
public abstract TrustedSubscriber = jdk.internal.net.http.ResponseSubscribers$TrustedSubscriber of jdk.internal.net.http.ResponseSubscribers