final class io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription<T, S> extends java.util.concurrent.atomic.AtomicLong implements io.reactivex.Emitter<T>, org.reactivestreams.Subscription
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription
super_class: java.util.concurrent.atomic.AtomicLong
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 7565982551505011832
final org.reactivestreams.Subscriber<? super T> downstream;
descriptor: Lorg/reactivestreams/Subscriber;
flags: (0x0010) ACC_FINAL
Signature: Lorg/reactivestreams/Subscriber<-TT;>;
final io.reactivex.functions.BiFunction<S, ? super io.reactivex.Emitter<T>, S> generator;
descriptor: Lio/reactivex/functions/BiFunction;
flags: (0x0010) ACC_FINAL
Signature: Lio/reactivex/functions/BiFunction<TS;-Lio/reactivex/Emitter<TT;>;TS;>;
final io.reactivex.functions.Consumer<? super S> disposeState;
descriptor: Lio/reactivex/functions/Consumer;
flags: (0x0010) ACC_FINAL
Signature: Lio/reactivex/functions/Consumer<-TS;>;
S state;
descriptor: Ljava/lang/Object;
flags: (0x0000)
Signature: TS;
volatile boolean cancelled;
descriptor: Z
flags: (0x0040) ACC_VOLATILE
boolean terminate;
descriptor: Z
flags: (0x0000)
boolean hasNext;
descriptor: Z
flags: (0x0000)
void <init>(org.reactivestreams.Subscriber<? super T>, io.reactivex.functions.BiFunction<S, ? super io.reactivex.Emitter<T>, S>, io.reactivex.functions.Consumer<? super S>, );
descriptor: (Lorg/reactivestreams/Subscriber;Lio/reactivex/functions/BiFunction;Lio/reactivex/functions/Consumer;Ljava/lang/Object;)V
flags: (0x0000)
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.util.concurrent.atomic.AtomicLong.<init>:()V
1: aload 0
aload 1
putfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.downstream:Lorg/reactivestreams/Subscriber;
2: aload 0
aload 2
putfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.generator:Lio/reactivex/functions/BiFunction;
3: aload 0
aload 3
putfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.disposeState:Lio/reactivex/functions/Consumer;
4: aload 0
aload 4
putfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.state:Ljava/lang/Object;
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/reactivex/internal/operators/flowable/FlowableGenerate$GeneratorSubscription<TT;TS;>;
0 6 1 actual Lorg/reactivestreams/Subscriber<-TT;>;
0 6 2 generator Lio/reactivex/functions/BiFunction<TS;-Lio/reactivex/Emitter<TT;>;TS;>;
0 6 3 disposeState Lio/reactivex/functions/Consumer<-TS;>;
0 6 4 initialState TS;
Signature: (Lorg/reactivestreams/Subscriber<-TT;>;Lio/reactivex/functions/BiFunction<TS;-Lio/reactivex/Emitter<TT;>;TS;>;Lio/reactivex/functions/Consumer<-TS;>;TS;)V
MethodParameters:
Name Flags
actual
generator
disposeState
initialState
public void request(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: lload 1
invokestatic io.reactivex.internal.subscriptions.SubscriptionHelper.validate:(J)Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
lload 1
invokestatic io.reactivex.internal.util.BackpressureHelper.add:(Ljava/util/concurrent/atomic/AtomicLong;J)J
lconst_0
lcmp
ifeq 4
3: return
4: StackMap locals:
StackMap stack:
lconst_0
lstore 3
start local 3 5: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.state:Ljava/lang/Object;
astore 5
start local 5 6: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.generator:Lio/reactivex/functions/BiFunction;
astore 6
start local 6 7: goto 28
8: StackMap locals: long java.lang.Object io.reactivex.functions.BiFunction
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.cancelled:Z
ifeq 12
9: aload 0
aconst_null
putfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.state:Ljava/lang/Object;
10: aload 0
aload 5
invokevirtual io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.dispose:(Ljava/lang/Object;)V
11: return
12: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.hasNext:Z
13: aload 6
aload 5
aload 0
invokeinterface io.reactivex.functions.BiFunction.apply:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
astore 5
14: goto 22
StackMap locals:
StackMap stack: java.lang.Throwable
15: astore 7
start local 7 16: aload 7
invokestatic io.reactivex.exceptions.Exceptions.throwIfFatal:(Ljava/lang/Throwable;)V
17: aload 0
iconst_1
putfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.cancelled:Z
18: aload 0
aconst_null
putfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.state:Ljava/lang/Object;
19: aload 0
aload 7
invokevirtual io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.onError:(Ljava/lang/Throwable;)V
20: aload 0
aload 5
invokevirtual io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.dispose:(Ljava/lang/Object;)V
21: return
end local 7 22: StackMap locals:
StackMap stack:
aload 0
getfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.terminate:Z
ifeq 27
23: aload 0
iconst_1
putfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.cancelled:Z
24: aload 0
aconst_null
putfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.state:Ljava/lang/Object;
25: aload 0
aload 5
invokevirtual io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.dispose:(Ljava/lang/Object;)V
26: return
27: StackMap locals:
StackMap stack:
lload 3
lconst_1
ladd
lstore 3
28: StackMap locals:
StackMap stack:
lload 3
lload 1
lcmp
ifne 8
29: aload 0
invokevirtual io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.get:()J
lstore 1
30: lload 3
lload 1
lcmp
ifne 36
31: aload 0
aload 5
putfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.state:Ljava/lang/Object;
32: aload 0
lload 3
lneg
invokevirtual io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.addAndGet:(J)J
lstore 1
33: lload 1
lconst_0
lcmp
ifne 35
34: goto 37
35: StackMap locals:
StackMap stack:
lconst_0
lstore 3
36: StackMap locals:
StackMap stack:
goto 28
37: StackMap locals:
StackMap stack:
return
end local 6 end local 5 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 this Lio/reactivex/internal/operators/flowable/FlowableGenerate$GeneratorSubscription<TT;TS;>;
0 38 1 n J
5 38 3 e J
6 38 5 s TS;
7 38 6 f Lio/reactivex/functions/BiFunction<TS;-Lio/reactivex/Emitter<TT;>;TS;>;
16 22 7 ex Ljava/lang/Throwable;
Exception table:
from to target type
13 14 15 Class java.lang.Throwable
MethodParameters:
Name Flags
n
private void dispose();
descriptor: (Ljava/lang/Object;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.disposeState:Lio/reactivex/functions/Consumer;
aload 1
invokeinterface io.reactivex.functions.Consumer.accept:(Ljava/lang/Object;)V
1: goto 5
StackMap locals:
StackMap stack: java.lang.Throwable
2: astore 2
start local 2 3: aload 2
invokestatic io.reactivex.exceptions.Exceptions.throwIfFatal:(Ljava/lang/Throwable;)V
4: aload 2
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/reactivex/internal/operators/flowable/FlowableGenerate$GeneratorSubscription<TT;TS;>;
0 6 1 s TS;
3 5 2 ex Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
Signature: (TS;)V
MethodParameters:
Name Flags
s
public void cancel();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.cancelled:Z
ifne 6
1: aload 0
iconst_1
putfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.cancelled:Z
2: aload 0
lconst_1
invokestatic io.reactivex.internal.util.BackpressureHelper.add:(Ljava/util/concurrent/atomic/AtomicLong;J)J
lconst_0
lcmp
ifne 6
3: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.state:Ljava/lang/Object;
astore 1
start local 1 4: aload 0
aconst_null
putfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.state:Ljava/lang/Object;
5: aload 0
aload 1
invokevirtual io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.dispose:(Ljava/lang/Object;)V
end local 1 6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/reactivex/internal/operators/flowable/FlowableGenerate$GeneratorSubscription<TT;TS;>;
4 6 1 s TS;
public void onNext();
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.terminate:Z
ifne 9
1: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.hasNext:Z
ifeq 4
2: aload 0
new java.lang.IllegalStateException
dup
ldc "onNext already called in this generate turn"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
invokevirtual io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.onError:(Ljava/lang/Throwable;)V
3: goto 9
4: StackMap locals:
StackMap stack:
aload 1
ifnonnull 7
5: aload 0
new java.lang.NullPointerException
dup
ldc "onNext called with null. Null values are generally not allowed in 2.x operators and sources."
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
invokevirtual io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.onError:(Ljava/lang/Throwable;)V
6: goto 9
7: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.hasNext:Z
8: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.downstream:Lorg/reactivestreams/Subscriber;
aload 1
invokeinterface org.reactivestreams.Subscriber.onNext:(Ljava/lang/Object;)V
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/reactivex/internal/operators/flowable/FlowableGenerate$GeneratorSubscription<TT;TS;>;
0 10 1 t TT;
Signature: (TT;)V
MethodParameters:
Name Flags
t
public void onError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.terminate:Z
ifeq 3
1: aload 1
invokestatic io.reactivex.plugins.RxJavaPlugins.onError:(Ljava/lang/Throwable;)V
2: goto 7
3: StackMap locals:
StackMap stack:
aload 1
ifnonnull 5
4: new java.lang.NullPointerException
dup
ldc "onError called with null. Null values are generally not allowed in 2.x operators and sources."
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
astore 1
5: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.terminate:Z
6: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.downstream:Lorg/reactivestreams/Subscriber;
aload 1
invokeinterface org.reactivestreams.Subscriber.onError:(Ljava/lang/Throwable;)V
7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/reactivex/internal/operators/flowable/FlowableGenerate$GeneratorSubscription<TT;TS;>;
0 8 1 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.terminate:Z
ifne 3
1: aload 0
iconst_1
putfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.terminate:Z
2: aload 0
getfield io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription.downstream:Lorg/reactivestreams/Subscriber;
invokeinterface org.reactivestreams.Subscriber.onComplete:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/reactivex/internal/operators/flowable/FlowableGenerate$GeneratorSubscription<TT;TS;>;
}
Signature: <T:Ljava/lang/Object;S:Ljava/lang/Object;>Ljava/util/concurrent/atomic/AtomicLong;Lio/reactivex/Emitter<TT;>;Lorg/reactivestreams/Subscription;
SourceFile: "FlowableGenerate.java"
NestHost: io.reactivex.internal.operators.flowable.FlowableGenerate
InnerClasses:
final GeneratorSubscription = io.reactivex.internal.operators.flowable.FlowableGenerate$GeneratorSubscription of io.reactivex.internal.operators.flowable.FlowableGenerate