public final class org.glassfish.grizzly.nio.DefaultSelectionKeyHandler implements org.glassfish.grizzly.nio.SelectionKeyHandler
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.glassfish.grizzly.nio.DefaultSelectionKeyHandler
super_class: java.lang.Object
{
private static final java.util.logging.Logger LOGGER;
descriptor: Ljava/util/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.glassfish.grizzly.IOEvent[][] ioEventMap;
descriptor: [[Lorg/glassfish/grizzly/IOEvent;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static volatile int[] $SWITCH_TABLE$org$glassfish$grizzly$IOEvent;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=0
0: ldc Lorg/glassfish/grizzly/nio/DefaultSelectionKeyHandler;
invokestatic org.glassfish.grizzly.Grizzly.logger:(Ljava/lang/Class;)Ljava/util/logging/Logger;
putstatic org.glassfish.grizzly.nio.DefaultSelectionKeyHandler.LOGGER:Ljava/util/logging/Logger;
1: bipush 32
anewarray org.glassfish.grizzly.IOEvent[]
putstatic org.glassfish.grizzly.nio.DefaultSelectionKeyHandler.ioEventMap:[[Lorg/glassfish/grizzly/IOEvent;
2: iconst_0
istore 0
start local 0 3: goto 16
4: StackMap locals: int
StackMap stack:
iconst_0
istore 1
start local 1 5: iconst_4
anewarray org.glassfish.grizzly.IOEvent
astore 2
start local 2 6: iload 0
iconst_1
iand
ifeq 8
7: aload 2
iload 1
iinc 1 1
getstatic org.glassfish.grizzly.IOEvent.READ:Lorg/glassfish/grizzly/IOEvent;
aastore
8: StackMap locals: int org.glassfish.grizzly.IOEvent[]
StackMap stack:
iload 0
iconst_4
iand
ifeq 10
9: aload 2
iload 1
iinc 1 1
getstatic org.glassfish.grizzly.IOEvent.WRITE:Lorg/glassfish/grizzly/IOEvent;
aastore
10: StackMap locals:
StackMap stack:
iload 0
bipush 8
iand
ifeq 12
11: aload 2
iload 1
iinc 1 1
getstatic org.glassfish.grizzly.IOEvent.CLIENT_CONNECTED:Lorg/glassfish/grizzly/IOEvent;
aastore
12: StackMap locals:
StackMap stack:
iload 0
bipush 16
iand
ifeq 14
13: aload 2
iload 1
iinc 1 1
getstatic org.glassfish.grizzly.IOEvent.SERVER_ACCEPT:Lorg/glassfish/grizzly/IOEvent;
aastore
14: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.nio.DefaultSelectionKeyHandler.ioEventMap:[[Lorg/glassfish/grizzly/IOEvent;
iload 0
aload 2
iload 1
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;I)[Ljava/lang/Object;
checkcast org.glassfish.grizzly.IOEvent[]
aastore
end local 2 end local 1 15: iinc 0 1
StackMap locals:
StackMap stack:
16: iload 0
getstatic org.glassfish.grizzly.nio.DefaultSelectionKeyHandler.ioEventMap:[[Lorg/glassfish/grizzly/IOEvent;
arraylength
if_icmplt 4
end local 0 17: return
LocalVariableTable:
Start End Slot Name Signature
3 17 0 i I
5 15 1 idx I
6 15 2 tmpArray [Lorg/glassfish/grizzly/IOEvent;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/DefaultSelectionKeyHandler;
public void onKeyRegistered(java.nio.channels.SelectionKey);
descriptor: (Ljava/nio/channels/SelectionKey;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.glassfish.grizzly.nio.DefaultSelectionKeyHandler.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
invokevirtual java.util.logging.Logger.isLoggable:(Ljava/util/logging/Level;)Z
ifeq 2
1: getstatic org.glassfish.grizzly.nio.DefaultSelectionKeyHandler.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "KEY IS REGISTERED: {0}"
aload 1
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/nio/DefaultSelectionKeyHandler;
0 3 1 key Ljava/nio/channels/SelectionKey;
MethodParameters:
Name Flags
key
public void onKeyDeregistered(java.nio.channels.SelectionKey);
descriptor: (Ljava/nio/channels/SelectionKey;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.glassfish.grizzly.nio.DefaultSelectionKeyHandler.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
invokevirtual java.util.logging.Logger.isLoggable:(Ljava/util/logging/Level;)Z
ifeq 2
1: getstatic org.glassfish.grizzly.nio.DefaultSelectionKeyHandler.LOGGER:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "KEY IS DEREGISTERED: {0}"
aload 1
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/nio/DefaultSelectionKeyHandler;
0 3 1 key Ljava/nio/channels/SelectionKey;
MethodParameters:
Name Flags
key
public void cancel(java.nio.channels.SelectionKey);
descriptor: (Ljava/nio/channels/SelectionKey;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.glassfish.grizzly.nio.DefaultSelectionKeyHandler.onKeyDeregistered:(Ljava/nio/channels/SelectionKey;)V
1: aload 1
invokevirtual java.nio.channels.SelectionKey.cancel:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/glassfish/grizzly/nio/DefaultSelectionKeyHandler;
0 3 1 key Ljava/nio/channels/SelectionKey;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
key
public int ioEvent2SelectionKeyInterest(org.glassfish.grizzly.IOEvent);
descriptor: (Lorg/glassfish/grizzly/IOEvent;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: invokestatic org.glassfish.grizzly.nio.DefaultSelectionKeyHandler.$SWITCH_TABLE$org$glassfish$grizzly$IOEvent:()[I
aload 1
invokevirtual org.glassfish.grizzly.IOEvent.ordinal:()I
iaload
tableswitch { // 2 - 6
2: 1
3: 2
4: 3
5: 5
6: 4
default: 5
}
1: StackMap locals:
StackMap stack:
iconst_1
ireturn
2: StackMap locals:
StackMap stack:
iconst_4
ireturn
3: StackMap locals:
StackMap stack:
bipush 16
ireturn
4: StackMap locals:
StackMap stack:
bipush 8
ireturn
5: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/glassfish/grizzly/nio/DefaultSelectionKeyHandler;
0 6 1 ioEvent Lorg/glassfish/grizzly/IOEvent;
MethodParameters:
Name Flags
ioEvent
public org.glassfish.grizzly.IOEvent[] getIOEvents(int);
descriptor: (I)[Lorg/glassfish/grizzly/IOEvent;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic org.glassfish.grizzly.nio.DefaultSelectionKeyHandler.ioEventMap:[[Lorg/glassfish/grizzly/IOEvent;
iload 1
aaload
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/DefaultSelectionKeyHandler;
0 1 1 interest I
MethodParameters:
Name Flags
interest
public org.glassfish.grizzly.IOEvent selectionKeyInterest2IoEvent(int);
descriptor: (I)Lorg/glassfish/grizzly/IOEvent;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
iconst_1
iand
ifeq 2
1: getstatic org.glassfish.grizzly.IOEvent.READ:Lorg/glassfish/grizzly/IOEvent;
areturn
2: StackMap locals:
StackMap stack:
iload 1
iconst_4
iand
ifeq 4
3: getstatic org.glassfish.grizzly.IOEvent.WRITE:Lorg/glassfish/grizzly/IOEvent;
areturn
4: StackMap locals:
StackMap stack:
iload 1
bipush 16
iand
ifeq 6
5: getstatic org.glassfish.grizzly.IOEvent.SERVER_ACCEPT:Lorg/glassfish/grizzly/IOEvent;
areturn
6: StackMap locals:
StackMap stack:
iload 1
bipush 8
iand
ifeq 8
7: getstatic org.glassfish.grizzly.IOEvent.CLIENT_CONNECTED:Lorg/glassfish/grizzly/IOEvent;
areturn
8: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.IOEvent.NONE:Lorg/glassfish/grizzly/IOEvent;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/glassfish/grizzly/nio/DefaultSelectionKeyHandler;
0 9 1 selectionKeyInterest I
MethodParameters:
Name Flags
selectionKeyInterest
public boolean onProcessInterest(java.nio.channels.SelectionKey, int);
descriptor: (Ljava/nio/channels/SelectionKey;I)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/DefaultSelectionKeyHandler;
0 1 1 key Ljava/nio/channels/SelectionKey;
0 1 2 interest I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
key
interest
public org.glassfish.grizzly.nio.NIOConnection getConnectionForKey(java.nio.channels.SelectionKey);
descriptor: (Ljava/nio/channels/SelectionKey;)Lorg/glassfish/grizzly/nio/NIOConnection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.nio.channels.SelectionKey.attachment:()Ljava/lang/Object;
checkcast org.glassfish.grizzly.nio.NIOConnection
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/nio/DefaultSelectionKeyHandler;
0 1 1 selectionKey Ljava/nio/channels/SelectionKey;
MethodParameters:
Name Flags
selectionKey
public void setConnectionForKey(org.glassfish.grizzly.nio.NIOConnection, java.nio.channels.SelectionKey);
descriptor: (Lorg/glassfish/grizzly/nio/NIOConnection;Ljava/nio/channels/SelectionKey;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 1
invokevirtual java.nio.channels.SelectionKey.attach:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/nio/DefaultSelectionKeyHandler;
0 2 1 connection Lorg/glassfish/grizzly/nio/NIOConnection;
0 2 2 selectionKey Ljava/nio/channels/SelectionKey;
MethodParameters:
Name Flags
connection
selectionKey
static int[] $SWITCH_TABLE$org$glassfish$grizzly$IOEvent();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.glassfish.grizzly.nio.DefaultSelectionKeyHandler.$SWITCH_TABLE$org$glassfish$grizzly$IOEvent:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.glassfish.grizzly.IOEvent.values:()[Lorg/glassfish/grizzly/IOEvent;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.glassfish.grizzly.IOEvent.ACCEPTED:Lorg/glassfish/grizzly/IOEvent;
invokevirtual org.glassfish.grizzly.IOEvent.ordinal:()I
iconst_5
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.glassfish.grizzly.IOEvent.CLIENT_CONNECTED:Lorg/glassfish/grizzly/IOEvent;
invokevirtual org.glassfish.grizzly.IOEvent.ordinal:()I
bipush 6
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.glassfish.grizzly.IOEvent.CLOSED:Lorg/glassfish/grizzly/IOEvent;
invokevirtual org.glassfish.grizzly.IOEvent.ordinal:()I
bipush 8
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.glassfish.grizzly.IOEvent.CONNECTED:Lorg/glassfish/grizzly/IOEvent;
invokevirtual org.glassfish.grizzly.IOEvent.ordinal:()I
bipush 7
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic org.glassfish.grizzly.IOEvent.NONE:Lorg/glassfish/grizzly/IOEvent;
invokevirtual org.glassfish.grizzly.IOEvent.ordinal:()I
iconst_1
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic org.glassfish.grizzly.IOEvent.READ:Lorg/glassfish/grizzly/IOEvent;
invokevirtual org.glassfish.grizzly.IOEvent.ordinal:()I
iconst_2
iastore
18: goto 20
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
19: pop
StackMap locals:
StackMap stack:
20: aload 0
getstatic org.glassfish.grizzly.IOEvent.SERVER_ACCEPT:Lorg/glassfish/grizzly/IOEvent;
invokevirtual org.glassfish.grizzly.IOEvent.ordinal:()I
iconst_4
iastore
21: goto 23
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
22: pop
StackMap locals:
StackMap stack:
23: aload 0
getstatic org.glassfish.grizzly.IOEvent.WRITE:Lorg/glassfish/grizzly/IOEvent;
invokevirtual org.glassfish.grizzly.IOEvent.ordinal:()I
iconst_3
iastore
24: goto 26
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
25: pop
StackMap locals:
StackMap stack:
26: aload 0
dup
putstatic org.glassfish.grizzly.nio.DefaultSelectionKeyHandler.$SWITCH_TABLE$org$glassfish$grizzly$IOEvent:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
17 18 19 Class java.lang.NoSuchFieldError
20 21 22 Class java.lang.NoSuchFieldError
23 24 25 Class java.lang.NoSuchFieldError
}
SourceFile: "DefaultSelectionKeyHandler.java"