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
2: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield sun.nio.fs.PollingWatchService.map:Ljava/util/Map;
3: aload 0
4: 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;
5: putfield sun.nio.fs.PollingWatchService.scheduledExecutor:Ljava/util/concurrent/ScheduledExecutorService;
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 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
1: astore 4
start local 4 2: aload 2
dup
astore 8
arraylength
istore 7
iconst_0
istore 6
goto 15
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:
3: aload 8
iload 6
aaload
astore 5
start local 5 4: aload 5
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_CREATE:Ljava/nio/file/WatchEvent$Kind;
if_acmpeq 7
5: aload 5
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY:Ljava/nio/file/WatchEvent$Kind;
if_acmpeq 7
6: aload 5
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_DELETE:Ljava/nio/file/WatchEvent$Kind;
if_acmpne 9
7: 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
8: goto 14
9: StackMap locals:
StackMap stack:
aload 5
getstatic java.nio.file.StandardWatchEventKinds.OVERFLOW:Ljava/nio/file/WatchEvent$Kind;
if_acmpne 11
10: goto 14
11: StackMap locals:
StackMap stack:
aload 5
ifnonnull 13
12: new java.lang.NullPointerException
dup
ldc "An element in event set is 'null'"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
13: 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 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:
iinc 6 1
StackMap locals:
StackMap stack:
15: iload 6
iload 7
if_icmplt 3
16: aload 4
invokeinterface java.util.Set.isEmpty:()Z
ifeq 18
17: new java.lang.IllegalArgumentException
dup
ldc "No events to register"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
18: 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:
getstatic com.sun.nio.file.SensitivityWatchEventModifier.MEDIUM:Lcom/sun/nio/file/SensitivityWatchEventModifier;
astore 5
start local 5 19: aload 3
arraylength
ifle 30
20: aload 3
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 29
StackMap locals: sun.nio.fs.PollingWatchService java.nio.file.Path java.nio.file.WatchEvent$Kind[] java.nio.file.WatchEvent$Modifier[] java.util.Set com.sun.nio.file.SensitivityWatchEventModifier top int int java.nio.file.WatchEvent$Modifier[]
StackMap stack:
21: aload 9
iload 7
aaload
astore 6
start local 6 22: aload 6
ifnonnull 24
23: new java.lang.NullPointerException
dup
invokespecial java.lang.NullPointerException.<init>:()V
athrow
24: StackMap locals: sun.nio.fs.PollingWatchService java.nio.file.Path java.nio.file.WatchEvent$Kind[] java.nio.file.WatchEvent$Modifier[] java.util.Set com.sun.nio.file.SensitivityWatchEventModifier java.nio.file.WatchEvent$Modifier int int java.nio.file.WatchEvent$Modifier[]
StackMap stack:
aload 6
instanceof com.sun.nio.file.SensitivityWatchEventModifier
ifeq 27
25: aload 6
checkcast com.sun.nio.file.SensitivityWatchEventModifier
astore 5
26: goto 28
27: 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 28: StackMap locals: sun.nio.fs.PollingWatchService java.nio.file.Path java.nio.file.WatchEvent$Kind[] java.nio.file.WatchEvent$Modifier[] java.util.Set com.sun.nio.file.SensitivityWatchEventModifier top int int java.nio.file.WatchEvent$Modifier[]
StackMap stack:
iinc 7 1
StackMap locals:
StackMap stack:
29: iload 7
iload 8
if_icmplt 21
30: StackMap locals: sun.nio.fs.PollingWatchService java.nio.file.Path java.nio.file.WatchEvent$Kind[] java.nio.file.WatchEvent$Modifier[] java.util.Set com.sun.nio.file.SensitivityWatchEventModifier
StackMap stack:
aload 0
invokevirtual sun.nio.fs.PollingWatchService.isOpen:()Z
ifne 32
31: new java.nio.file.ClosedWatchServiceException
dup
invokespecial java.nio.file.ClosedWatchServiceException.<init>:()V
athrow
32: StackMap locals:
StackMap stack:
aload 5
astore 6
start local 6 33: new sun.nio.fs.PollingWatchService$2
dup
aload 0
aload 1
aload 4
aload 6
invokespecial sun.nio.fs.PollingWatchService$2.<init>:(Lsun/nio/fs/PollingWatchService;Ljava/nio/file/Path;Ljava/util/Set;Lcom/sun/nio/file/SensitivityWatchEventModifier;)V
34: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;)Ljava/lang/Object;
checkcast java.nio.file.WatchKey
35: areturn
end local 6 36: StackMap locals:
StackMap stack: java.security.PrivilegedActionException
astore 6
start local 6 37: aload 6
invokevirtual java.security.PrivilegedActionException.getCause:()Ljava/lang/Throwable;
astore 7
start local 7 38: aload 7
ifnull 40
aload 7
instanceof java.io.IOException
ifeq 40
39: aload 7
checkcast java.io.IOException
athrow
40: 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 41 0 this Lsun/nio/fs/PollingWatchService;
0 41 1 path Ljava/nio/file/Path;
0 41 2 events [Ljava/nio/file/WatchEvent$Kind;
0 41 3 modifiers [Ljava/nio/file/WatchEvent$Modifier;
2 41 4 eventSet Ljava/util/Set<Ljava/nio/file/WatchEvent$Kind<*>;>;
4 14 5 event Ljava/nio/file/WatchEvent$Kind<*>;
19 41 5 sensivity Lcom/sun/nio/file/SensitivityWatchEventModifier;
22 28 6 modifier Ljava/nio/file/WatchEvent$Modifier;
33 36 6 s Lcom/sun/nio/file/SensitivityWatchEventModifier;
37 41 6 pae Ljava/security/PrivilegedActionException;
38 41 7 cause Ljava/lang/Throwable;
Exception table:
from to target type
32 35 36 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<?>>, com.sun.nio.file.SensitivityWatchEventModifier);
descriptor: (Ljava/nio/file/Path;Ljava/util/Set;Lcom/sun/nio/file/SensitivityWatchEventModifier;)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 com.sun.nio.file.SensitivityWatchEventModifier 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 com.sun.nio.file.SensitivityWatchEventModifier java.nio.file.attribute.BasicFileAttributes java.lang.Object java.lang.Object sun.nio.fs.PollingWatchService$PollingWatchKey
StackMap stack:
aload 7
aload 2
aload 3
invokevirtual com.sun.nio.file.SensitivityWatchEventModifier.sensitivityValueInSeconds:()I
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 com.sun.nio.file.SensitivityWatchEventModifier 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 sensivity Lcom/sun/nio/file/SensitivityWatchEventModifier;
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<*>;>;Lcom/sun/nio/file/SensitivityWatchEventModifier;)Lsun/nio/fs/PollingWatchService$PollingWatchKey;
MethodParameters:
Name Flags
path
events
sensivity
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
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