public final class sun.nio.ch.SelectionKeyImpl extends java.nio.channels.spi.AbstractSelectionKey
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.nio.ch.SelectionKeyImpl
super_class: java.nio.channels.spi.AbstractSelectionKey
{
private static final java.lang.invoke.VarHandle INTERESTOPS;
descriptor: Ljava/lang/invoke/VarHandle;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final sun.nio.ch.SelChImpl channel;
descriptor: Lsun/nio/ch/SelChImpl;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final sun.nio.ch.SelectorImpl selector;
descriptor: Lsun/nio/ch/SelectorImpl;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile int interestOps;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile int readyOps;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private int registeredEvents;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private volatile boolean reset;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private int index;
descriptor: I
flags: (0x0002) ACC_PRIVATE
int lastPolled;
descriptor: I
flags: (0x0000)
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: ldc Lsun/nio/ch/SelectionKeyImpl;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.nio.ch.SelectionKeyImpl.$assertionsDisabled:Z
3: invokestatic java.lang.invoke.MethodHandles.lookup:()Ljava/lang/invoke/MethodHandles$Lookup;
4: ldc "interestOps"
5: ldc Ljava/lang/invoke/VarHandle;
6: ldc Lsun/nio/ch/SelectionKeyImpl;
getstatic java.lang.Integer.TYPE:Ljava/lang/Class;
7: invokestatic java.lang.invoke.ConstantBootstraps.fieldVarHandle:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/VarHandle;
8: putstatic sun.nio.ch.SelectionKeyImpl.INTERESTOPS:Ljava/lang/invoke/VarHandle;
9: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(sun.nio.ch.SelChImpl, sun.nio.ch.SelectorImpl);
descriptor: (Lsun/nio/ch/SelChImpl;Lsun/nio/ch/SelectorImpl;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.nio.channels.spi.AbstractSelectionKey.<init>:()V
1: aload 0
aload 1
putfield sun.nio.ch.SelectionKeyImpl.channel:Lsun/nio/ch/SelChImpl;
2: aload 0
aload 2
putfield sun.nio.ch.SelectionKeyImpl.selector:Lsun/nio/ch/SelectorImpl;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/SelectionKeyImpl;
0 4 1 ch Lsun/nio/ch/SelChImpl;
0 4 2 sel Lsun/nio/ch/SelectorImpl;
MethodParameters:
Name Flags
ch
sel
private void ensureValid();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.SelectionKeyImpl.isValid:()Z
ifne 2
1: new java.nio.channels.CancelledKeyException
dup
invokespecial java.nio.channels.CancelledKeyException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/ch/SelectionKeyImpl;
int getFDVal();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SelectionKeyImpl.channel:Lsun/nio/ch/SelChImpl;
invokeinterface sun.nio.ch.SelChImpl.getFDVal:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SelectionKeyImpl;
public java.nio.channels.SelectableChannel channel();
descriptor: ()Ljava/nio/channels/SelectableChannel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SelectionKeyImpl.channel:Lsun/nio/ch/SelChImpl;
checkcast java.nio.channels.SelectableChannel
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SelectionKeyImpl;
public java.nio.channels.Selector selector();
descriptor: ()Ljava/nio/channels/Selector;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SelectionKeyImpl.selector:Lsun/nio/ch/SelectorImpl;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SelectionKeyImpl;
public int interestOps();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.SelectionKeyImpl.ensureValid:()V
1: aload 0
getfield sun.nio.ch.SelectionKeyImpl.interestOps:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SelectionKeyImpl;
public java.nio.channels.SelectionKey interestOps(int);
descriptor: (I)Ljava/nio/channels/SelectionKey;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.nio.ch.SelectionKeyImpl.ensureValid:()V
1: iload 1
aload 0
invokevirtual sun.nio.ch.SelectionKeyImpl.channel:()Ljava/nio/channels/SelectableChannel;
invokevirtual java.nio.channels.SelectableChannel.validOps:()I
iconst_m1
ixor
iand
ifeq 3
2: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.SelectionKeyImpl.INTERESTOPS:Ljava/lang/invoke/VarHandle;
aload 0
iload 1
invokevirtual java.lang.invoke.VarHandle.getAndSet:(Lsun/nio/ch/SelectionKeyImpl;I)I
istore 2
start local 2 4: iload 1
iload 2
if_icmpeq 6
5: aload 0
getfield sun.nio.ch.SelectionKeyImpl.selector:Lsun/nio/ch/SelectorImpl;
aload 0
invokevirtual sun.nio.ch.SelectorImpl.setEventOps:(Lsun/nio/ch/SelectionKeyImpl;)V
6: StackMap locals: int
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/SelectionKeyImpl;
0 7 1 ops I
4 7 2 oldOps I
MethodParameters:
Name Flags
ops
public int interestOpsOr(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.nio.ch.SelectionKeyImpl.ensureValid:()V
1: iload 1
aload 0
invokevirtual sun.nio.ch.SelectionKeyImpl.channel:()Ljava/nio/channels/SelectableChannel;
invokevirtual java.nio.channels.SelectableChannel.validOps:()I
iconst_m1
ixor
iand
ifeq 3
2: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
getstatic sun.nio.ch.SelectionKeyImpl.INTERESTOPS:Ljava/lang/invoke/VarHandle;
aload 0
iload 1
invokevirtual java.lang.invoke.VarHandle.getAndBitwiseOr:(Lsun/nio/ch/SelectionKeyImpl;I)I
istore 2
start local 2 4: iload 2
iload 2
iload 1
ior
if_icmpeq 6
5: aload 0
getfield sun.nio.ch.SelectionKeyImpl.selector:Lsun/nio/ch/SelectorImpl;
aload 0
invokevirtual sun.nio.ch.SelectorImpl.setEventOps:(Lsun/nio/ch/SelectionKeyImpl;)V
6: StackMap locals: int
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/ch/SelectionKeyImpl;
0 7 1 ops I
4 7 2 oldVal I
MethodParameters:
Name Flags
ops
public int interestOpsAnd(int);
descriptor: (I)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.nio.ch.SelectionKeyImpl.ensureValid:()V
1: getstatic sun.nio.ch.SelectionKeyImpl.INTERESTOPS:Ljava/lang/invoke/VarHandle;
aload 0
iload 1
invokevirtual java.lang.invoke.VarHandle.getAndBitwiseAnd:(Lsun/nio/ch/SelectionKeyImpl;I)I
istore 2
start local 2 2: iload 2
iload 2
iload 1
iand
if_icmpeq 4
3: aload 0
getfield sun.nio.ch.SelectionKeyImpl.selector:Lsun/nio/ch/SelectorImpl;
aload 0
invokevirtual sun.nio.ch.SelectorImpl.setEventOps:(Lsun/nio/ch/SelectionKeyImpl;)V
4: StackMap locals: int
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/SelectionKeyImpl;
0 5 1 ops I
2 5 2 oldVal I
MethodParameters:
Name Flags
ops
public int readyOps();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.ch.SelectionKeyImpl.ensureValid:()V
1: aload 0
getfield sun.nio.ch.SelectionKeyImpl.readyOps:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SelectionKeyImpl;
public void nioReadyOps(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield sun.nio.ch.SelectionKeyImpl.readyOps:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SelectionKeyImpl;
0 2 1 ops I
MethodParameters:
Name Flags
ops
public int nioReadyOps();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SelectionKeyImpl.readyOps:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SelectionKeyImpl;
public java.nio.channels.SelectionKey nioInterestOps(int);
descriptor: (I)Ljava/nio/channels/SelectionKey;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
aload 0
invokevirtual sun.nio.ch.SelectionKeyImpl.channel:()Ljava/nio/channels/SelectableChannel;
invokevirtual java.nio.channels.SelectableChannel.validOps:()I
iconst_m1
ixor
iand
ifeq 2
1: new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield sun.nio.ch.SelectionKeyImpl.interestOps:I
3: aload 0
getfield sun.nio.ch.SelectionKeyImpl.selector:Lsun/nio/ch/SelectorImpl;
aload 0
invokevirtual sun.nio.ch.SelectorImpl.setEventOps:(Lsun/nio/ch/SelectionKeyImpl;)V
4: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/SelectionKeyImpl;
0 5 1 ops I
MethodParameters:
Name Flags
ops
public int nioInterestOps();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SelectionKeyImpl.interestOps:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SelectionKeyImpl;
int translateInterestOps();
descriptor: ()I
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SelectionKeyImpl.channel:Lsun/nio/ch/SelChImpl;
aload 0
getfield sun.nio.ch.SelectionKeyImpl.interestOps:I
invokeinterface sun.nio.ch.SelChImpl.translateInterestOps:(I)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SelectionKeyImpl;
boolean translateAndSetReadyOps(int);
descriptor: (I)Z
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.SelectionKeyImpl.channel:Lsun/nio/ch/SelChImpl;
iload 1
aload 0
invokeinterface sun.nio.ch.SelChImpl.translateAndSetReadyOps:(ILsun/nio/ch/SelectionKeyImpl;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SelectionKeyImpl;
0 1 1 ops I
MethodParameters:
Name Flags
ops
boolean translateAndUpdateReadyOps(int);
descriptor: (I)Z
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.ch.SelectionKeyImpl.channel:Lsun/nio/ch/SelChImpl;
iload 1
aload 0
invokeinterface sun.nio.ch.SelChImpl.translateAndUpdateReadyOps:(ILsun/nio/ch/SelectionKeyImpl;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SelectionKeyImpl;
0 1 1 ops I
MethodParameters:
Name Flags
ops
void registeredEvents(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield sun.nio.ch.SelectionKeyImpl.registeredEvents:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SelectionKeyImpl;
0 2 1 events I
MethodParameters:
Name Flags
events
int registeredEvents();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SelectionKeyImpl.registeredEvents:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SelectionKeyImpl;
int getIndex();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.ch.SelectionKeyImpl.index:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/ch/SelectionKeyImpl;
void setIndex(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield sun.nio.ch.SelectionKeyImpl.index:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/ch/SelectionKeyImpl;
0 2 1 i I
MethodParameters:
Name Flags
i
void reset();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield sun.nio.ch.SelectionKeyImpl.reset:Z
1: aload 0
getfield sun.nio.ch.SelectionKeyImpl.selector:Lsun/nio/ch/SelectorImpl;
aload 0
invokevirtual sun.nio.ch.SelectorImpl.setEventOps:(Lsun/nio/ch/SelectionKeyImpl;)V
2: aload 0
getfield sun.nio.ch.SelectionKeyImpl.selector:Lsun/nio/ch/SelectorImpl;
invokevirtual sun.nio.ch.SelectorImpl.wakeup:()Ljava/nio/channels/Selector;
pop
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/ch/SelectionKeyImpl;
boolean getAndClearReset();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: getstatic sun.nio.ch.SelectionKeyImpl.$assertionsDisabled:Z
ifne 1
aload 0
getfield sun.nio.ch.SelectionKeyImpl.selector:Lsun/nio/ch/SelectorImpl;
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.ch.SelectionKeyImpl.reset:Z
istore 1
start local 1 2: iload 1
ifeq 4
3: aload 0
iconst_0
putfield sun.nio.ch.SelectionKeyImpl.reset:Z
4: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/ch/SelectionKeyImpl;
2 5 1 r Z
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 1
ldc "channel="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: aload 0
getfield sun.nio.ch.SelectionKeyImpl.channel:Lsun/nio/ch/SelChImpl;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
3: ldc ", selector="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: aload 0
getfield sun.nio.ch.SelectionKeyImpl.selector:Lsun/nio/ch/SelectorImpl;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
5: aload 0
invokevirtual sun.nio.ch.SelectionKeyImpl.isValid:()Z
ifeq 11
6: aload 1
ldc ", interestOps="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: aload 0
getfield sun.nio.ch.SelectionKeyImpl.interestOps:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
8: ldc ", readyOps="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: aload 0
getfield sun.nio.ch.SelectionKeyImpl.readyOps:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
10: goto 12
11: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 1
ldc ", invalid"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
12: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/ch/SelectionKeyImpl;
1 13 1 sb Ljava/lang/StringBuilder;
}
SourceFile: "SelectionKeyImpl.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles