class jdk.incubator.http.HttpClientImpl$SelectorAttachment
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.HttpClientImpl$SelectorAttachment
super_class: java.lang.Object
{
private final java.nio.channels.SelectableChannel chan;
descriptor: Ljava/nio/channels/SelectableChannel;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.channels.Selector selector;
descriptor: Ljava/nio/channels/Selector;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.ArrayList<jdk.incubator.http.AsyncEvent> pending;
descriptor: Ljava/util/ArrayList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/ArrayList<Ljdk/incubator/http/AsyncEvent;>;
private int interestOps;
descriptor: I
flags: (0x0002) ACC_PRIVATE
void <init>(java.nio.channels.SelectableChannel, java.nio.channels.Selector);
descriptor: (Ljava/nio/channels/SelectableChannel;Ljava/nio/channels/Selector;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.pending:Ljava/util/ArrayList;
2: aload 0
aload 1
putfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.chan:Ljava/nio/channels/SelectableChannel;
3: aload 0
aload 2
putfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.selector:Ljava/nio/channels/Selector;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/HttpClientImpl$SelectorAttachment;
0 5 1 chan Ljava/nio/channels/SelectableChannel;
0 5 2 selector Ljava/nio/channels/Selector;
MethodParameters:
Name Flags
chan
selector
void register(jdk.incubator.http.AsyncEvent);
descriptor: (Ljdk/incubator/http/AsyncEvent;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual jdk.incubator.http.AsyncEvent.interestOps:()I
istore 2
start local 2 1: aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.interestOps:I
iload 2
iand
iload 2
if_icmpeq 2
iconst_1
goto 3
StackMap locals: int
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 3
start local 3 4: aload 0
dup
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.interestOps:I
iload 2
ior
putfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.interestOps:I
5: aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.pending:Ljava/util/ArrayList;
aload 1
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
6: iload 3
ifeq 8
7: aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.chan:Ljava/nio/channels/SelectableChannel;
aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.selector:Ljava/nio/channels/Selector;
aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.interestOps:I
aload 0
invokevirtual java.nio.channels.SelectableChannel.register:(Ljava/nio/channels/Selector;ILjava/lang/Object;)Ljava/nio/channels/SelectionKey;
pop
8: StackMap locals: int
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/incubator/http/HttpClientImpl$SelectorAttachment;
0 9 1 e Ljdk/incubator/http/AsyncEvent;
1 9 2 newOps I
4 9 3 reRegister Z
Exceptions:
throws java.nio.channels.ClosedChannelException
MethodParameters:
Name Flags
e
java.util.stream.Stream<jdk.incubator.http.AsyncEvent> events(int);
descriptor: (I)Ljava/util/stream/Stream;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.pending:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.stream:()Ljava/util/stream/Stream;
1: iload 1
invokedynamic test(I)Ljava/util/function/Predicate;
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;)Z
jdk/incubator/http/HttpClientImpl$SelectorAttachment.lambda$0(ILjdk/incubator/http/AsyncEvent;)Z (6)
(Ljdk/incubator/http/AsyncEvent;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/HttpClientImpl$SelectorAttachment;
0 3 1 interestOps I
Signature: (I)Ljava/util/stream/Stream<Ljdk/incubator/http/AsyncEvent;>;
MethodParameters:
Name Flags
interestOps
void resetInterestOps(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.pending:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 3
start local 3 2: goto 12
3: StackMap locals: int java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast jdk.incubator.http.AsyncEvent
astore 4
start local 4 4: aload 4
invokevirtual jdk.incubator.http.AsyncEvent.interestOps:()I
istore 5
start local 5 5: aload 4
invokevirtual jdk.incubator.http.AsyncEvent.repeating:()Z
ifeq 8
6: iload 2
iload 5
ior
istore 2
7: goto 12
8: StackMap locals: jdk.incubator.http.AsyncEvent int
StackMap stack:
iload 5
iload 1
iand
ifeq 11
9: aload 3
invokeinterface java.util.Iterator.remove:()V
10: goto 12
11: StackMap locals:
StackMap stack:
iload 2
iload 5
ior
istore 2
end local 5 end local 4 12: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
13: aload 0
iload 2
putfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.interestOps:I
14: aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.chan:Ljava/nio/channels/SelectableChannel;
aload 0
getfield jdk.incubator.http.HttpClientImpl$SelectorAttachment.selector:Ljava/nio/channels/Selector;
invokevirtual java.nio.channels.SelectableChannel.keyFor:(Ljava/nio/channels/Selector;)Ljava/nio/channels/SelectionKey;
astore 4
start local 4 15: iload 2
ifne 18
16: aload 4
invokevirtual java.nio.channels.SelectionKey.cancel:()V
17: goto 19
18: StackMap locals: java.nio.channels.SelectionKey
StackMap stack:
aload 4
iload 2
invokevirtual java.nio.channels.SelectionKey.interestOps:(I)Ljava/nio/channels/SelectionKey;
pop
19: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljdk/incubator/http/HttpClientImpl$SelectorAttachment;
0 20 1 interestOps I
1 20 2 newOps I
2 20 3 itr Ljava/util/Iterator<Ljdk/incubator/http/AsyncEvent;>;
4 12 4 event Ljdk/incubator/http/AsyncEvent;
5 12 5 evops I
15 20 4 key Ljava/nio/channels/SelectionKey;
MethodParameters:
Name Flags
interestOps
private static boolean lambda$0(int, jdk.incubator.http.AsyncEvent);
descriptor: (ILjdk/incubator/http/AsyncEvent;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 1 0: aload 1
invokevirtual jdk.incubator.http.AsyncEvent.interestOps:()I
iload 0
iand
ifeq 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 3 1 ev Ljdk/incubator/http/AsyncEvent;
}
SourceFile: "HttpClientImpl.java"
NestHost: jdk.incubator.http.HttpClientImpl
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
private SelectorAttachment = jdk.incubator.http.HttpClientImpl$SelectorAttachment of jdk.incubator.http.HttpClientImpl