class sun.nio.fs.PollingWatchService extends sun.nio.fs.AbstractWatchService
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.fs.PollingWatchService
super_class: sun.nio.fs.AbstractWatchService
{
private final java.util.Map<java.lang.Object, sun.nio.fs.PollingWatchService$PollingWatchKey> map;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Object;Lsun/nio/fs/PollingWatchService$PollingWatchKey;>;
private final java.util.concurrent.ScheduledExecutorService scheduledExecutor;
descriptor: Ljava/util/concurrent/ScheduledExecutorService;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial sun.nio.fs.AbstractWatchService.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield sun.nio.fs.PollingWatchService.map:Ljava/util/Map;
2: aload 0
3: new sun.nio.fs.PollingWatchService$1
dup
aload 0
invokespecial sun.nio.fs.PollingWatchService$1.<init>:(Lsun/nio/fs/PollingWatchService;)V
invokestatic java.util.concurrent.Executors.newSingleThreadScheduledExecutor:(Ljava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ScheduledExecutorService;
4: putfield sun.nio.fs.PollingWatchService.scheduledExecutor:Ljava/util/concurrent/ScheduledExecutorService;
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/fs/PollingWatchService;
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: (0x0080) ACC_VARARGS
Code:
stack=6, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.util.HashSet
dup
aload 2
arraylength
invokespecial java.util.HashSet.<init>:(I)V
astore 4
start local 4 1: aload 2
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 14
StackMap locals: sun.nio.fs.PollingWatchService 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:
2: aload 8
iload 6
aaload
astore 5
start local 5 3: aload 5
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_CREATE:Ljava/nio/file/WatchEvent$Kind;
if_acmpeq 6
4: aload 5
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY:Ljava/nio/file/WatchEvent$Kind;
if_acmpeq 6
5: aload 5
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_DELETE:Ljava/nio/file/WatchEvent$Kind;
if_acmpne 8
6: StackMap locals: sun.nio.fs.PollingWatchService 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
7: goto 13
8: StackMap locals:
StackMap stack:
aload 5
getstatic java.nio.file.StandardWatchEventKinds.OVERFLOW:Ljava/nio/file/WatchEvent$Kind;
if_acmpne 10
9: goto 13
10: StackMap locals:
StackMap stack:
aload 5
ifnonnull 12
11: new java.lang.NullPointerException
dup
ldc "An element in event set is 'null'"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
12: 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 13: StackMap locals: sun.nio.fs.PollingWatchService 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:
14: iload 6
iload 7
if_icmplt 2
15: aload 4
invokeinterface java.util.Set.isEmpty:()Z
ifeq 17
16: new java.lang.IllegalArgumentException
dup
ldc "No events to register"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals: sun.nio.fs.PollingWatchService java.nio.file.Path java.nio.file.WatchEvent$Kind[] java.nio.file.WatchEvent$Modifier[] java.util.Set
StackMap stack:
bipush 10
istore 5
start local 5 18: aload 3
arraylength
ifle 35
19: aload 3
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 34
StackMap locals: sun.nio.fs.PollingWatchService java.nio.file.Path java.nio.file.WatchEvent$Kind[] java.nio.file.WatchEvent$Modifier[] java.util.Set int top int int java.nio.file.WatchEvent$Modifier[]
StackMap stack:
20: aload 9
iload 7
aaload
astore 6
start local 6 21: aload 6
ifnonnull 23
22: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
23: StackMap locals: sun.nio.fs.PollingWatchService java.nio.file.Path java.nio.file.WatchEvent$Kind[] java.nio.file.WatchEvent$Modifier[] java.util.Set int java.nio.file.WatchEvent$Modifier int int java.nio.file.WatchEvent$Modifier[]
StackMap stack:
getstatic sun.nio.fs.ExtendedOptions.SENSITIVITY_HIGH:Lsun/nio/fs/ExtendedOptions$InternalOption;
aload 6
invokevirtual sun.nio.fs.ExtendedOptions$InternalOption.matches:(Ljava/lang/Object;)Z
ifeq 26
24: getstatic sun.nio.fs.ExtendedOptions.SENSITIVITY_HIGH:Lsun/nio/fs/ExtendedOptions$InternalOption;
invokevirtual sun.nio.fs.ExtendedOptions$InternalOption.parameter:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 5
25: goto 33
StackMap locals:
StackMap stack:
26: getstatic sun.nio.fs.ExtendedOptions.SENSITIVITY_MEDIUM:Lsun/nio/fs/ExtendedOptions$InternalOption;
aload 6
invokevirtual sun.nio.fs.ExtendedOptions$InternalOption.matches:(Ljava/lang/Object;)Z
ifeq 29
27: getstatic sun.nio.fs.ExtendedOptions.SENSITIVITY_MEDIUM:Lsun/nio/fs/ExtendedOptions$InternalOption;
invokevirtual sun.nio.fs.ExtendedOptions$InternalOption.parameter:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 5
28: goto 33
StackMap locals:
StackMap stack:
29: getstatic sun.nio.fs.ExtendedOptions.SENSITIVITY_LOW:Lsun/nio/fs/ExtendedOptions$InternalOption;
aload 6
invokevirtual sun.nio.fs.ExtendedOptions$InternalOption.matches:(Ljava/lang/Object;)Z
ifeq 32
30: getstatic sun.nio.fs.ExtendedOptions.SENSITIVITY_LOW:Lsun/nio/fs/ExtendedOptions$InternalOption;
invokevirtual sun.nio.fs.ExtendedOptions$InternalOption.parameter:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 5
31: goto 33
32: StackMap locals:
StackMap stack:
new java.lang.UnsupportedOperationException
dup
ldc "Modifier not supported"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 6 33: StackMap locals: sun.nio.fs.PollingWatchService java.nio.file.Path java.nio.file.WatchEvent$Kind[] java.nio.file.WatchEvent$Modifier[] java.util.Set int top int int java.nio.file.WatchEvent$Modifier[]
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
34: iload 7
iload 8
if_icmplt 20
35: StackMap locals: sun.nio.fs.PollingWatchService java.nio.file.Path java.nio.file.WatchEvent$Kind[] java.nio.file.WatchEvent$Modifier[] java.util.Set int
StackMap stack:
aload 0
invokevirtual sun.nio.fs.PollingWatchService.isOpen:()Z
ifne 37
36: new java.nio.file.ClosedWatchServiceException
dup
invokespecial java.nio.file.ClosedWatchServiceException.<init>:()V
athrow
37: StackMap locals:
StackMap stack:
iload 5
istore 6
start local 6 38: new sun.nio.fs.PollingWatchService$2
dup
aload 0
aload 1
aload 4
iload 6
invokespecial sun.nio.fs.PollingWatchService$2.<init>:(Lsun/nio/fs/PollingWatchService;Ljava/nio/file/Path;Ljava/util/Set;I)V
39: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.nio.file.WatchKey
40: areturn
end local 6 41: StackMap locals:
StackMap stack: java.security.PrivilegedActionException
astore 6
start local 6 42: aload 6
invokevirtual java.security.PrivilegedActionException.getCause:()Ljava/lang/Throwable;
astore 7
start local 7 43: aload 7
ifnull 45
aload 7
instanceof java.io.IOException
ifeq 45
44: aload 7
checkcast java.io.IOException
athrow
45: StackMap locals: java.security.PrivilegedActionException java.lang.Throwable
StackMap stack:
new java.lang.AssertionError
dup
aload 6
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 46 0 this Lsun/nio/fs/PollingWatchService;
0 46 1 path Ljava/nio/file/Path;
0 46 2 events [Ljava/nio/file/WatchEvent$Kind;
0 46 3 modifiers [Ljava/nio/file/WatchEvent$Modifier;
1 46 4 eventSet Ljava/util/Set<Ljava/nio/file/WatchEvent$Kind<*>;>;
3 13 5 event Ljava/nio/file/WatchEvent$Kind<*>;
18 46 5 sensitivity I
21 33 6 modifier Ljava/nio/file/WatchEvent$Modifier;
38 41 6 value I
42 46 6 pae Ljava/security/PrivilegedActionException;
43 46 7 cause Ljava/lang/Throwable;
Exception table:
from to target type
37 40 41 Class java.security.PrivilegedActionException
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
path final
events
modifiers
private sun.nio.fs.PollingWatchService$PollingWatchKey doPrivilegedRegister(java.nio.file.Path, java.util.Set<? extends java.nio.file.WatchEvent$Kind<?>>, int);
descriptor: (Ljava/nio/file/Path;Ljava/util/Set;I)Lsun/nio/fs/PollingWatchService$PollingWatchKey;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
ldc Ljava/nio/file/attribute/BasicFileAttributes;
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.readAttributes:(Ljava/nio/file/Path;Ljava/lang/Class;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/BasicFileAttributes;
astore 4
start local 4 1: aload 4
invokeinterface java.nio.file.attribute.BasicFileAttributes.isDirectory:()Z
ifne 3
2: new java.nio.file.NotDirectoryException
dup
aload 1
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokespecial java.nio.file.NotDirectoryException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: java.nio.file.attribute.BasicFileAttributes
StackMap stack:
aload 4
invokeinterface java.nio.file.attribute.BasicFileAttributes.fileKey:()Ljava/lang/Object;
astore 5
start local 5 4: aload 5
ifnonnull 6
5: new java.lang.AssertionError
dup
ldc "File keys must be supported"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
6: StackMap locals: java.lang.Object
StackMap stack:
aload 0
invokevirtual sun.nio.fs.PollingWatchService.closeLock:()Ljava/lang/Object;
dup
astore 6
monitorenter
7: aload 0
invokevirtual sun.nio.fs.PollingWatchService.isOpen:()Z
ifne 9
8: new java.nio.file.ClosedWatchServiceException
dup
invokespecial java.nio.file.ClosedWatchServiceException.<init>:()V
athrow
9: StackMap locals: java.lang.Object
StackMap stack:
aload 0
getfield sun.nio.fs.PollingWatchService.map:Ljava/util/Map;
dup
astore 8
monitorenter
10: aload 0
getfield sun.nio.fs.PollingWatchService.map:Ljava/util/Map;
aload 5
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.nio.fs.PollingWatchService$PollingWatchKey
astore 7
start local 7 11: aload 7
ifnonnull 15
12: new sun.nio.fs.PollingWatchService$PollingWatchKey
dup
aload 0
aload 1
aload 0
aload 5
invokespecial sun.nio.fs.PollingWatchService$PollingWatchKey.<init>:(Lsun/nio/fs/PollingWatchService;Ljava/nio/file/Path;Lsun/nio/fs/PollingWatchService;Ljava/lang/Object;)V
astore 7
13: aload 0
getfield sun.nio.fs.PollingWatchService.map:Ljava/util/Map;
aload 5
aload 7
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
14: goto 16
15: StackMap locals: sun.nio.fs.PollingWatchService$PollingWatchKey java.util.Map
StackMap stack:
aload 7
invokevirtual sun.nio.fs.PollingWatchService$PollingWatchKey.disable:()V
16: StackMap locals:
StackMap stack:
aload 8
monitorexit
17: goto 20
end local 7 StackMap locals: sun.nio.fs.PollingWatchService java.nio.file.Path java.util.Set int java.nio.file.attribute.BasicFileAttributes java.lang.Object java.lang.Object top java.util.Map
StackMap stack: java.lang.Throwable
18: aload 8
monitorexit
19: athrow
start local 7 20: StackMap locals: sun.nio.fs.PollingWatchService java.nio.file.Path java.util.Set int java.nio.file.attribute.BasicFileAttributes java.lang.Object java.lang.Object sun.nio.fs.PollingWatchService$PollingWatchKey
StackMap stack:
aload 7
aload 2
iload 3
i2l
invokevirtual sun.nio.fs.PollingWatchService$PollingWatchKey.enable:(Ljava/util/Set;J)V
21: aload 7
aload 6
monitorexit
22: areturn
end local 7 23: StackMap locals: sun.nio.fs.PollingWatchService java.nio.file.Path java.util.Set int java.nio.file.attribute.BasicFileAttributes java.lang.Object java.lang.Object
StackMap stack: java.lang.Throwable
aload 6
monitorexit
24: athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lsun/nio/fs/PollingWatchService;
0 25 1 path Ljava/nio/file/Path;
0 25 2 events Ljava/util/Set<+Ljava/nio/file/WatchEvent$Kind<*>;>;
0 25 3 sensitivityInSeconds I
1 25 4 attrs Ljava/nio/file/attribute/BasicFileAttributes;
4 25 5 fileKey Ljava/lang/Object;
11 18 7 watchKey Lsun/nio/fs/PollingWatchService$PollingWatchKey;
20 23 7 watchKey Lsun/nio/fs/PollingWatchService$PollingWatchKey;
Exception table:
from to target type
10 17 18 any
18 19 18 any
7 22 23 any
23 24 23 any
Exceptions:
throws java.io.IOException
Signature: (Ljava/nio/file/Path;Ljava/util/Set<+Ljava/nio/file/WatchEvent$Kind<*>;>;I)Lsun/nio/fs/PollingWatchService$PollingWatchKey;
MethodParameters:
Name Flags
path
events
sensitivityInSeconds
void implClose();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield sun.nio.fs.PollingWatchService.map:Ljava/util/Map;
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.fs.PollingWatchService.map:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: sun.nio.fs.PollingWatchService java.util.Map top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 3: aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast sun.nio.fs.PollingWatchService$PollingWatchKey
astore 4
start local 4 4: aload 4
invokevirtual sun.nio.fs.PollingWatchService$PollingWatchKey.disable:()V
5: aload 4
invokevirtual sun.nio.fs.PollingWatchService$PollingWatchKey.invalidate:()V
end local 4 end local 2 6: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: aload 0
getfield sun.nio.fs.PollingWatchService.map:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
8: aload 1
monitorexit
9: goto 12
StackMap locals: sun.nio.fs.PollingWatchService java.util.Map
StackMap stack: java.lang.Throwable
10: aload 1
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
new sun.nio.fs.PollingWatchService$3
dup
aload 0
invokespecial sun.nio.fs.PollingWatchService$3.<init>:(Lsun/nio/fs/PollingWatchService;)V
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
13: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/nio/fs/PollingWatchService;
3 6 2 entry Ljava/util/Map$Entry<Ljava/lang/Object;Lsun/nio/fs/PollingWatchService$PollingWatchKey;>;
4 6 4 watchKey Lsun/nio/fs/PollingWatchService$PollingWatchKey;
Exception table:
from to target type
1 9 10 any
10 11 10 any
Exceptions:
throws java.io.IOException
}
SourceFile: "PollingWatchService.java"
NestMembers:
sun.nio.fs.PollingWatchService$1 sun.nio.fs.PollingWatchService$2 sun.nio.fs.PollingWatchService$3 sun.nio.fs.PollingWatchService$CacheEntry sun.nio.fs.PollingWatchService$PollingWatchKey sun.nio.fs.PollingWatchService$PollingWatchKey$1
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
public abstract Entry = java.util.Map$Entry of java.util.Map
public final InternalOption = sun.nio.fs.ExtendedOptions$InternalOption of sun.nio.fs.ExtendedOptions
sun.nio.fs.PollingWatchService$1
sun.nio.fs.PollingWatchService$2
sun.nio.fs.PollingWatchService$3
private CacheEntry = sun.nio.fs.PollingWatchService$CacheEntry of sun.nio.fs.PollingWatchService
private PollingWatchKey = sun.nio.fs.PollingWatchService$PollingWatchKey of sun.nio.fs.PollingWatchService