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:
new java.util.HashSet
dup
aload 2
arraylength
invokespecial java.util.HashSet.<init>:(I)V
astore 4
start local 4 3: aload 2
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 16
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:
4: aload 8
iload 6
aaload
astore 5
start local 5 5: aload 5
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_CREATE:Ljava/nio/file/WatchEvent$Kind;
if_acmpeq 8
6: aload 5
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY:Ljava/nio/file/WatchEvent$Kind;
if_acmpeq 8
7: aload 5
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_DELETE:Ljava/nio/file/WatchEvent$Kind;
if_acmpne 10
8: 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
9: goto 15
10: StackMap locals:
StackMap stack:
aload 5
getstatic java.nio.file.StandardWatchEventKinds.OVERFLOW:Ljava/nio/file/WatchEvent$Kind;
if_acmpne 12
11: goto 15
12: StackMap locals:
StackMap stack:
aload 5
ifnonnull 14
13: new java.lang.NullPointerException
dup
ldc "An element in event set is 'null'"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
14: 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 15: 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:
16: iload 6
iload 7
if_icmplt 4
17: aload 4
invokeinterface java.util.Set.isEmpty:()Z
ifeq 19
18: new java.lang.IllegalArgumentException
dup
ldc "No events to register"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals: sun.nio.fs.AbstractPoller java.nio.file.Path java.nio.file.WatchEvent$Kind[] java.nio.file.WatchEvent$Modifier[] java.util.Set
StackMap stack:
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 20 0 this Lsun/nio/fs/AbstractPoller;
0 20 1 dir Ljava/nio/file/Path;
0 20 2 events [Ljava/nio/file/WatchEvent$Kind;
0 20 3 modifiers [Ljava/nio/file/WatchEvent$Modifier;
3 20 4 eventSet Ljava/util/Set<Ljava/nio/file/WatchEvent$Kind<*>;>;
5 15 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 0
invokevirtual sun.nio.fs.AbstractPoller.wakeup:()V
6: aload 4
monitorexit
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 4
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
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 7 8 any
8 9 8 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 24
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 5
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: goto 24
5: 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: 6
2: 14
3: 19
default: 23
}
6: StackMap locals:
StackMap stack:
aload 2
invokevirtual sun.nio.fs.AbstractPoller$Request.parameters:()[Ljava/lang/Object;
astore 3
start local 3 7: aload 3
iconst_0
aaload
checkcast java.nio.file.Path
astore 4
start local 4 8: aload 3
iconst_1
aaload
checkcast java.util.Set
9: astore 5
start local 5 10: aload 3
iconst_2
aaload
checkcast java.nio.file.WatchEvent$Modifier[]
11: astore 6
start local 6 12: 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
13: goto 24
end local 6 end local 5 end local 4 end local 3 14: StackMap locals:
StackMap stack:
aload 2
invokevirtual sun.nio.fs.AbstractPoller$Request.parameters:()[Ljava/lang/Object;
astore 3
start local 3 15: aload 3
iconst_0
aaload
checkcast java.nio.file.WatchKey
astore 4
start local 4 16: aload 0
aload 4
invokevirtual sun.nio.fs.AbstractPoller.implCancelKey:(Ljava/nio/file/WatchKey;)V
17: aload 2
aconst_null
invokevirtual sun.nio.fs.AbstractPoller$Request.release:(Ljava/lang/Object;)V
18: goto 24
end local 4 end local 3 19: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.fs.AbstractPoller.implCloseAll:()V
20: aload 2
aconst_null
invokevirtual sun.nio.fs.AbstractPoller$Request.release:(Ljava/lang/Object;)V
21: aload 0
iconst_1
putfield sun.nio.fs.AbstractPoller.shutdown:Z
22: goto 24
23: 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 24: 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 25: ifnonnull 2
end local 2 26: aload 1
monitorexit
27: goto 30
StackMap locals:
StackMap stack: java.lang.Throwable
28: aload 1
monitorexit
29: athrow
30: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.fs.AbstractPoller.shutdown:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lsun/nio/fs/AbstractPoller;
2 24 2 req Lsun/nio/fs/AbstractPoller$Request;
25 26 2 req Lsun/nio/fs/AbstractPoller$Request;
7 14 3 params [Ljava/lang/Object;
8 14 4 path Ljava/nio/file/Path;
10 14 5 events Ljava/util/Set<+Ljava/nio/file/WatchEvent$Kind<*>;>;
12 14 6 modifiers [Ljava/nio/file/WatchEvent$Modifier;
15 19 3 params [Ljava/lang/Object;
16 19 4 key Ljava/nio/file/WatchKey;
Exception table:
from to target type
1 27 28 any
28 29 28 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