abstract class sun.nio.fs.AbstractPoller implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: sun.nio.fs.AbstractPoller
super_class: java.lang.Object
{
private final java.util.LinkedList<sun.nio.fs.AbstractPoller$Request> requestList;
descriptor: Ljava/util/LinkedList;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/LinkedList<Lsun/nio/fs/AbstractPoller$Request;>;
private boolean shutdown;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private static volatile int[] $SWITCH_TABLE$sun$nio$fs$AbstractPoller$RequestType;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
putfield sun.nio.fs.AbstractPoller.requestList:Ljava/util/LinkedList;
2: aload 0
iconst_0
putfield sun.nio.fs.AbstractPoller.shutdown:Z
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/fs/AbstractPoller;
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
astore 1
start local 1 1: new sun.nio.fs.AbstractPoller$1
dup
aload 0
aload 1
invokespecial sun.nio.fs.AbstractPoller$1.<init>:(Lsun/nio/fs/AbstractPoller;Ljava/lang/Runnable;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/fs/AbstractPoller;
1 3 1 thisRunnable Ljava/lang/Runnable;
abstract void wakeup();
descriptor: ()V
flags: (0x0400) ACC_ABSTRACT
Exceptions:
throws java.io.IOException
abstract implRegister(java.nio.file.Path, java.util.Set<? extends java.nio.file.WatchEvent$Kind<?>>, java.nio.file.WatchEvent$Modifier[]);
descriptor: (Ljava/nio/file/Path;Ljava/util/Set;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/lang/Object;
flags: (0x0480) ACC_VARARGS, ACC_ABSTRACT
Signature: (Ljava/nio/file/Path;Ljava/util/Set<+Ljava/nio/file/WatchEvent$Kind<*>;>;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/lang/Object;
MethodParameters:
Name Flags
path
events
modifiers
abstract void implCancelKey(java.nio.file.WatchKey);
descriptor: (Ljava/nio/file/WatchKey;)V
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
key
abstract void implCloseAll();
descriptor: ()V
flags: (0x0400) ACC_ABSTRACT
final java.nio.file.WatchKey register(java.nio.file.Path, java.nio.file.WatchEvent$Kind<?>[], java.nio.file.WatchEvent$Modifier[]);
descriptor: (Ljava/nio/file/Path;[Ljava/nio/file/WatchEvent$Kind;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/nio/file/WatchKey;
flags: (0x0090) ACC_FINAL, ACC_VARARGS
Code:
stack=6, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 2
arraylength
ifne 4
3: new java.lang.IllegalArgumentException
dup
ldc "No events to register"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
new java.util.HashSet
dup
aload 2
arraylength
invokespecial java.util.HashSet.<init>:(I)V
astore 4
start local 4 5: aload 2
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 19
StackMap locals: sun.nio.fs.AbstractPoller java.nio.file.Path java.nio.file.WatchEvent$Kind[] java.nio.file.WatchEvent$Modifier[] java.util.Set top int int java.nio.file.WatchEvent$Kind[]
StackMap stack:
6: aload 8
iload 6
aaload
astore 5
start local 5 7: aload 5
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_CREATE:Ljava/nio/file/WatchEvent$Kind;
if_acmpeq 10
8: aload 5
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY:Ljava/nio/file/WatchEvent$Kind;
if_acmpeq 10
9: aload 5
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_DELETE:Ljava/nio/file/WatchEvent$Kind;
if_acmpne 12
10: StackMap locals: sun.nio.fs.AbstractPoller java.nio.file.Path java.nio.file.WatchEvent$Kind[] java.nio.file.WatchEvent$Modifier[] java.util.Set java.nio.file.WatchEvent$Kind int int java.nio.file.WatchEvent$Kind[]
StackMap stack:
aload 4
aload 5
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
11: goto 18
12: StackMap locals:
StackMap stack:
aload 5
getstatic java.nio.file.StandardWatchEventKinds.OVERFLOW:Ljava/nio/file/WatchEvent$Kind;
if_acmpne 15
13: aload 2
arraylength
iconst_1
if_icmpne 18
14: new java.lang.IllegalArgumentException
dup
ldc "No events to register"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 5
ifnonnull 17
16: new java.lang.NullPointerException
dup
ldc "An element in event set is 'null'"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
new java.lang.UnsupportedOperationException
dup
aload 5
invokeinterface java.nio.file.WatchEvent$Kind.name:()Ljava/lang/String;
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 5 18: StackMap locals: sun.nio.fs.AbstractPoller java.nio.file.Path java.nio.file.WatchEvent$Kind[] java.nio.file.WatchEvent$Modifier[] java.util.Set top int int java.nio.file.WatchEvent$Kind[]
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
19: iload 6
iload 7
if_icmplt 6
20: aload 0
getstatic sun.nio.fs.AbstractPoller$RequestType.REGISTER:Lsun/nio/fs/AbstractPoller$RequestType;
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
dup
iconst_1
aload 4
aastore
dup
iconst_2
aload 3
aastore
invokevirtual sun.nio.fs.AbstractPoller.invoke:(Lsun/nio/fs/AbstractPoller$RequestType;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.nio.file.WatchKey
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/nio/fs/AbstractPoller;
0 21 1 dir Ljava/nio/file/Path;
0 21 2 events [Ljava/nio/file/WatchEvent$Kind;
0 21 3 modifiers [Ljava/nio/file/WatchEvent$Modifier;
5 21 4 eventSet Ljava/util/Set<Ljava/nio/file/WatchEvent$Kind<*>;>;
7 18 5 event Ljava/nio/file/WatchEvent$Kind<*>;
Exceptions:
throws java.io.IOException
Signature: (Ljava/nio/file/Path;[Ljava/nio/file/WatchEvent$Kind<*>;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/nio/file/WatchKey;
MethodParameters:
Name Flags
dir
events
modifiers
final void cancel(java.nio.file.WatchKey);
descriptor: (Ljava/nio/file/WatchKey;)V
flags: (0x0010) ACC_FINAL
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getstatic sun.nio.fs.AbstractPoller$RequestType.CANCEL:Lsun/nio/fs/AbstractPoller$RequestType;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual sun.nio.fs.AbstractPoller.invoke:(Lsun/nio/fs/AbstractPoller$RequestType;[Ljava/lang/Object;)Ljava/lang/Object;
pop
1: goto 4
StackMap locals:
StackMap stack: java.io.IOException
2: astore 2
start local 2 3: new java.lang.AssertionError
dup
aload 2
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/fs/AbstractPoller;
0 5 1 key Ljava/nio/file/WatchKey;
3 4 2 x Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
key
final void close();
descriptor: ()V
flags: (0x0010) ACC_FINAL
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getstatic sun.nio.fs.AbstractPoller$RequestType.CLOSE:Lsun/nio/fs/AbstractPoller$RequestType;
iconst_0
anewarray java.lang.Object
invokevirtual sun.nio.fs.AbstractPoller.invoke:(Lsun/nio/fs/AbstractPoller$RequestType;[Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/fs/AbstractPoller;
Exceptions:
throws java.io.IOException
private java.lang.Object invoke(sun.nio.fs.AbstractPoller$RequestType, java.lang.Object[]);
descriptor: (Lsun/nio/fs/AbstractPoller$RequestType;[Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0082) ACC_PRIVATE, ACC_VARARGS
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new sun.nio.fs.AbstractPoller$Request
dup
aload 1
aload 2
invokespecial sun.nio.fs.AbstractPoller$Request.<init>:(Lsun/nio/fs/AbstractPoller$RequestType;[Ljava/lang/Object;)V
astore 3
start local 3 1: aload 0
getfield sun.nio.fs.AbstractPoller.requestList:Ljava/util/LinkedList;
dup
astore 4
monitorenter
2: aload 0
getfield sun.nio.fs.AbstractPoller.shutdown:Z
ifeq 4
3: new java.nio.file.ClosedWatchServiceException
dup
invokespecial java.nio.file.ClosedWatchServiceException.<init>:()V
athrow
4: StackMap locals: sun.nio.fs.AbstractPoller$Request java.util.LinkedList
StackMap stack:
aload 0
getfield sun.nio.fs.AbstractPoller.requestList:Ljava/util/LinkedList;
aload 3
invokevirtual java.util.LinkedList.add:(Ljava/lang/Object;)Z
pop
5: aload 4
monitorexit
6: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
7: aload 4
monitorexit
8: athrow
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.fs.AbstractPoller.wakeup:()V
10: aload 3
invokevirtual sun.nio.fs.AbstractPoller$Request.awaitResult:()Ljava/lang/Object;
astore 4
start local 4 11: aload 4
instanceof java.lang.RuntimeException
ifeq 13
12: aload 4
checkcast java.lang.RuntimeException
athrow
13: StackMap locals: java.lang.Object
StackMap stack:
aload 4
instanceof java.io.IOException
ifeq 15
14: aload 4
checkcast java.io.IOException
athrow
15: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/nio/fs/AbstractPoller;
0 16 1 type Lsun/nio/fs/AbstractPoller$RequestType;
0 16 2 params [Ljava/lang/Object;
1 16 3 req Lsun/nio/fs/AbstractPoller$Request;
11 16 4 result Ljava/lang/Object;
Exception table:
from to target type
2 6 7 any
7 8 7 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
type
params
boolean processRequests();
descriptor: ()Z
flags: (0x0000)
Code:
stack=5, locals=7, args_size=1
start local 0 0: aload 0
getfield sun.nio.fs.AbstractPoller.requestList:Ljava/util/LinkedList;
dup
astore 1
monitorenter
1: goto 23
start local 2 2: StackMap locals: java.util.LinkedList sun.nio.fs.AbstractPoller$Request
StackMap stack:
aload 0
getfield sun.nio.fs.AbstractPoller.shutdown:Z
ifeq 4
3: aload 2
new java.nio.file.ClosedWatchServiceException
dup
invokespecial java.nio.file.ClosedWatchServiceException.<init>:()V
invokevirtual sun.nio.fs.AbstractPoller$Request.release:(Ljava/lang/Object;)V
4: StackMap locals:
StackMap stack:
invokestatic sun.nio.fs.AbstractPoller.$SWITCH_TABLE$sun$nio$fs$AbstractPoller$RequestType:()[I
aload 2
invokevirtual sun.nio.fs.AbstractPoller$Request.type:()Lsun/nio/fs/AbstractPoller$RequestType;
invokevirtual sun.nio.fs.AbstractPoller$RequestType.ordinal:()I
iaload
tableswitch { // 1 - 3
1: 5
2: 13
3: 18
default: 22
}
5: StackMap locals:
StackMap stack:
aload 2
invokevirtual sun.nio.fs.AbstractPoller$Request.parameters:()[Ljava/lang/Object;
astore 3
start local 3 6: aload 3
iconst_0
aaload
checkcast java.nio.file.Path
astore 4
start local 4 7: aload 3
iconst_1
aaload
checkcast java.util.Set
8: astore 5
start local 5 9: aload 3
iconst_2
aaload
checkcast java.nio.file.WatchEvent$Modifier[]
10: astore 6
start local 6 11: aload 2
aload 0
aload 4
aload 5
aload 6
invokevirtual sun.nio.fs.AbstractPoller.implRegister:(Ljava/nio/file/Path;Ljava/util/Set;[Ljava/nio/file/WatchEvent$Modifier;)Ljava/lang/Object;
invokevirtual sun.nio.fs.AbstractPoller$Request.release:(Ljava/lang/Object;)V
12: goto 23
end local 6 end local 5 end local 4 end local 3 13: StackMap locals:
StackMap stack:
aload 2
invokevirtual sun.nio.fs.AbstractPoller$Request.parameters:()[Ljava/lang/Object;
astore 3
start local 3 14: aload 3
iconst_0
aaload
checkcast java.nio.file.WatchKey
astore 4
start local 4 15: aload 0
aload 4
invokevirtual sun.nio.fs.AbstractPoller.implCancelKey:(Ljava/nio/file/WatchKey;)V
16: aload 2
aconst_null
invokevirtual sun.nio.fs.AbstractPoller$Request.release:(Ljava/lang/Object;)V
17: goto 23
end local 4 end local 3 18: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.fs.AbstractPoller.implCloseAll:()V
19: aload 2
aconst_null
invokevirtual sun.nio.fs.AbstractPoller$Request.release:(Ljava/lang/Object;)V
20: aload 0
iconst_1
putfield sun.nio.fs.AbstractPoller.shutdown:Z
21: goto 23
22: StackMap locals:
StackMap stack:
aload 2
new java.io.IOException
dup
ldc "request not recognized"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
invokevirtual sun.nio.fs.AbstractPoller$Request.release:(Ljava/lang/Object;)V
end local 2 23: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.fs.AbstractPoller.requestList:Ljava/util/LinkedList;
invokevirtual java.util.LinkedList.poll:()Ljava/lang/Object;
checkcast sun.nio.fs.AbstractPoller$Request
dup
astore 2
start local 2 24: ifnonnull 2
end local 2 25: aload 1
monitorexit
26: goto 29
StackMap locals:
StackMap stack: java.lang.Throwable
27: aload 1
monitorexit
28: athrow
29: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.fs.AbstractPoller.shutdown:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lsun/nio/fs/AbstractPoller;
2 23 2 req Lsun/nio/fs/AbstractPoller$Request;
24 25 2 req Lsun/nio/fs/AbstractPoller$Request;
6 13 3 params [Ljava/lang/Object;
7 13 4 path Ljava/nio/file/Path;
9 13 5 events Ljava/util/Set<+Ljava/nio/file/WatchEvent$Kind<*>;>;
11 13 6 modifiers [Ljava/nio/file/WatchEvent$Modifier;
14 18 3 params [Ljava/lang/Object;
15 18 4 key Ljava/nio/file/WatchKey;
Exception table:
from to target type
1 26 27 any
27 28 27 any
static int[] $SWITCH_TABLE$sun$nio$fs$AbstractPoller$RequestType();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic sun.nio.fs.AbstractPoller.$SWITCH_TABLE$sun$nio$fs$AbstractPoller$RequestType:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic sun.nio.fs.AbstractPoller$RequestType.values:()[Lsun/nio/fs/AbstractPoller$RequestType;
arraylength
newarray 10
astore 0
2: aload 0
getstatic sun.nio.fs.AbstractPoller$RequestType.CANCEL:Lsun/nio/fs/AbstractPoller$RequestType;
invokevirtual sun.nio.fs.AbstractPoller$RequestType.ordinal:()I
iconst_2
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic sun.nio.fs.AbstractPoller$RequestType.CLOSE:Lsun/nio/fs/AbstractPoller$RequestType;
invokevirtual sun.nio.fs.AbstractPoller$RequestType.ordinal:()I
iconst_3
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic sun.nio.fs.AbstractPoller$RequestType.REGISTER:Lsun/nio/fs/AbstractPoller$RequestType;
invokevirtual sun.nio.fs.AbstractPoller$RequestType.ordinal:()I
iconst_1
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
dup
putstatic sun.nio.fs.AbstractPoller.$SWITCH_TABLE$sun$nio$fs$AbstractPoller$RequestType:[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
}
SourceFile: "AbstractPoller.java"
NestMembers:
sun.nio.fs.AbstractPoller$1 sun.nio.fs.AbstractPoller$Request sun.nio.fs.AbstractPoller$RequestType
InnerClasses:
public abstract Kind = java.nio.file.WatchEvent$Kind of java.nio.file.WatchEvent
public abstract Modifier = java.nio.file.WatchEvent$Modifier of java.nio.file.WatchEvent
sun.nio.fs.AbstractPoller$1
private Request = sun.nio.fs.AbstractPoller$Request of sun.nio.fs.AbstractPoller
private final RequestType = sun.nio.fs.AbstractPoller$RequestType of sun.nio.fs.AbstractPoller