abstract class sun.nio.fs.AbstractWatchKey implements java.nio.file.WatchKey
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: sun.nio.fs.AbstractWatchKey
super_class: java.lang.Object
{
static final int MAX_EVENT_LIST_SIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 512
static final sun.nio.fs.AbstractWatchKey$Event<java.lang.Object> OVERFLOW_EVENT;
descriptor: Lsun/nio/fs/AbstractWatchKey$Event;
flags: (0x0018) ACC_STATIC, ACC_FINAL
Signature: Lsun/nio/fs/AbstractWatchKey$Event<Ljava/lang/Object;>;
private final sun.nio.fs.AbstractWatchService watcher;
descriptor: Lsun/nio/fs/AbstractWatchService;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.file.Path dir;
descriptor: Ljava/nio/file/Path;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private sun.nio.fs.AbstractWatchKey$State state;
descriptor: Lsun/nio/fs/AbstractWatchKey$State;
flags: (0x0002) ACC_PRIVATE
private java.util.List<java.nio.file.WatchEvent<?>> events;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Ljava/nio/file/WatchEvent<*>;>;
private java.util.Map<java.lang.Object, java.nio.file.WatchEvent<?>> lastModifyEvents;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Ljava/lang/Object;Ljava/nio/file/WatchEvent<*>;>;
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: ldc Lsun/nio/fs/AbstractWatchKey;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.nio.fs.AbstractWatchKey.$assertionsDisabled:Z
3: new sun.nio.fs.AbstractWatchKey$Event
dup
getstatic java.nio.file.StandardWatchEventKinds.OVERFLOW:Ljava/nio/file/WatchEvent$Kind;
aconst_null
invokespecial sun.nio.fs.AbstractWatchKey$Event.<init>:(Ljava/nio/file/WatchEvent$Kind;Ljava/lang/Object;)V
4: putstatic sun.nio.fs.AbstractWatchKey.OVERFLOW_EVENT:Lsun/nio/fs/AbstractWatchKey$Event;
5: return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(java.nio.file.Path, sun.nio.fs.AbstractWatchService);
descriptor: (Ljava/nio/file/Path;Lsun/nio/fs/AbstractWatchService;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 2
putfield sun.nio.fs.AbstractWatchKey.watcher:Lsun/nio/fs/AbstractWatchService;
2: aload 0
aload 1
putfield sun.nio.fs.AbstractWatchKey.dir:Ljava/nio/file/Path;
3: aload 0
getstatic sun.nio.fs.AbstractWatchKey$State.READY:Lsun/nio/fs/AbstractWatchKey$State;
putfield sun.nio.fs.AbstractWatchKey.state:Lsun/nio/fs/AbstractWatchKey$State;
4: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield sun.nio.fs.AbstractWatchKey.events:Ljava/util/List;
5: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield sun.nio.fs.AbstractWatchKey.lastModifyEvents:Ljava/util/Map;
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/fs/AbstractWatchKey;
0 7 1 dir Ljava/nio/file/Path;
0 7 2 watcher Lsun/nio/fs/AbstractWatchService;
MethodParameters:
Name Flags
dir
watcher
final sun.nio.fs.AbstractWatchService watcher();
descriptor: ()Lsun/nio/fs/AbstractWatchService;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.fs.AbstractWatchKey.watcher:Lsun/nio/fs/AbstractWatchService;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/fs/AbstractWatchKey;
public java.nio.file.Path watchable();
descriptor: ()Ljava/nio/file/Path;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.fs.AbstractWatchKey.dir:Ljava/nio/file/Path;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/fs/AbstractWatchKey;
final void signal();
descriptor: ()V
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.fs.AbstractWatchKey.state:Lsun/nio/fs/AbstractWatchKey$State;
getstatic sun.nio.fs.AbstractWatchKey$State.READY:Lsun/nio/fs/AbstractWatchKey$State;
if_acmpne 4
2: aload 0
getstatic sun.nio.fs.AbstractWatchKey$State.SIGNALLED:Lsun/nio/fs/AbstractWatchKey$State;
putfield sun.nio.fs.AbstractWatchKey.state:Lsun/nio/fs/AbstractWatchKey$State;
3: aload 0
getfield sun.nio.fs.AbstractWatchKey.watcher:Lsun/nio/fs/AbstractWatchService;
aload 0
invokevirtual sun.nio.fs.AbstractWatchService.enqueueKey:(Ljava/nio/file/WatchKey;)V
4: StackMap locals: sun.nio.fs.AbstractWatchKey
StackMap stack:
aload 1
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/nio/fs/AbstractWatchKey;
Exception table:
from to target type
1 5 6 any
6 7 6 any
final void signalEvent(java.nio.file.WatchEvent$Kind<?>, );
descriptor: (Ljava/nio/file/WatchEvent$Kind;Ljava/lang/Object;)V
flags: (0x0010) ACC_FINAL
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY:Ljava/nio/file/WatchEvent$Kind;
if_acmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 3
start local 3 3: aload 0
dup
astore 4
monitorenter
4: aload 0
getfield sun.nio.fs.AbstractWatchKey.events:Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 5
start local 5 5: iload 5
ifle 26
6: aload 0
getfield sun.nio.fs.AbstractWatchKey.events:Ljava/util/List;
iload 5
iconst_1
isub
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.nio.file.WatchEvent
astore 6
start local 6 7: aload 6
invokeinterface java.nio.file.WatchEvent.kind:()Ljava/nio/file/WatchEvent$Kind;
getstatic java.nio.file.StandardWatchEventKinds.OVERFLOW:Ljava/nio/file/WatchEvent$Kind;
if_acmpeq 10
8: aload 1
aload 6
invokeinterface java.nio.file.WatchEvent.kind:()Ljava/nio/file/WatchEvent$Kind;
if_acmpne 13
9: aload 2
aload 6
invokeinterface java.nio.file.WatchEvent.context:()Ljava/lang/Object;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 13
10: StackMap locals: sun.nio.fs.AbstractWatchKey java.nio.file.WatchEvent$Kind java.lang.Object int sun.nio.fs.AbstractWatchKey int java.nio.file.WatchEvent
StackMap stack:
aload 6
checkcast sun.nio.fs.AbstractWatchKey$Event
invokevirtual sun.nio.fs.AbstractWatchKey$Event.increment:()V
11: aload 4
monitorexit
12: return
13: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.fs.AbstractWatchKey.lastModifyEvents:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
ifne 22
14: iload 3
ifeq 21
15: aload 0
getfield sun.nio.fs.AbstractWatchKey.lastModifyEvents:Ljava/util/Map;
aload 2
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.nio.file.WatchEvent
astore 7
start local 7 16: aload 7
ifnull 22
17: getstatic sun.nio.fs.AbstractWatchKey.$assertionsDisabled:Z
ifne 18
aload 7
invokeinterface java.nio.file.WatchEvent.kind:()Ljava/nio/file/WatchEvent$Kind;
getstatic java.nio.file.StandardWatchEventKinds.ENTRY_MODIFY:Ljava/nio/file/WatchEvent$Kind;
if_acmpeq 18
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
18: StackMap locals: java.nio.file.WatchEvent
StackMap stack:
aload 7
checkcast sun.nio.fs.AbstractWatchKey$Event
invokevirtual sun.nio.fs.AbstractWatchKey$Event.increment:()V
19: aload 4
monitorexit
20: return
end local 7 21: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.fs.AbstractWatchKey.lastModifyEvents:Ljava/util/Map;
aload 2
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
22: StackMap locals:
StackMap stack:
iload 5
sipush 512
if_icmplt 26
23: getstatic java.nio.file.StandardWatchEventKinds.OVERFLOW:Ljava/nio/file/WatchEvent$Kind;
astore 1
24: iconst_0
istore 3
25: aconst_null
astore 2
end local 6 26: StackMap locals:
StackMap stack:
new sun.nio.fs.AbstractWatchKey$Event
dup
aload 1
aload 2
invokespecial sun.nio.fs.AbstractWatchKey$Event.<init>:(Ljava/nio/file/WatchEvent$Kind;Ljava/lang/Object;)V
27: astore 6
start local 6 28: iload 3
ifeq 31
29: aload 0
getfield sun.nio.fs.AbstractWatchKey.lastModifyEvents:Ljava/util/Map;
aload 2
aload 6
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
30: goto 34
StackMap locals: sun.nio.fs.AbstractWatchKey$Event
StackMap stack:
31: aload 1
getstatic java.nio.file.StandardWatchEventKinds.OVERFLOW:Ljava/nio/file/WatchEvent$Kind;
if_acmpne 34
32: aload 0
getfield sun.nio.fs.AbstractWatchKey.events:Ljava/util/List;
invokeinterface java.util.List.clear:()V
33: aload 0
getfield sun.nio.fs.AbstractWatchKey.lastModifyEvents:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
34: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.fs.AbstractWatchKey.events:Ljava/util/List;
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
35: aload 0
invokevirtual sun.nio.fs.AbstractWatchKey.signal:()V
end local 6 end local 5 36: aload 4
monitorexit
37: goto 40
StackMap locals: sun.nio.fs.AbstractWatchKey java.nio.file.WatchEvent$Kind java.lang.Object int sun.nio.fs.AbstractWatchKey
StackMap stack: java.lang.Throwable
38: aload 4
monitorexit
39: athrow
40: StackMap locals:
StackMap stack:
return
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/AbstractWatchKey;
0 41 1 kind Ljava/nio/file/WatchEvent$Kind<*>;
0 41 2 context Ljava/lang/Object;
3 41 3 isModify Z
5 36 5 size I
7 26 6 prev Ljava/nio/file/WatchEvent<*>;
16 21 7 ev Ljava/nio/file/WatchEvent<*>;
28 36 6 ev Lsun/nio/fs/AbstractWatchKey$Event<Ljava/lang/Object;>;
Exception table:
from to target type
4 12 38 any
13 20 38 any
21 37 38 any
38 39 38 any
Signature: (Ljava/nio/file/WatchEvent$Kind<*>;Ljava/lang/Object;)V
MethodParameters:
Name Flags
kind
context
public final java.util.List<java.nio.file.WatchEvent<?>> pollEvents();
descriptor: ()Ljava/util/List;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.fs.AbstractWatchKey.events:Ljava/util/List;
astore 2
start local 2 2: aload 0
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putfield sun.nio.fs.AbstractWatchKey.events:Ljava/util/List;
3: aload 0
getfield sun.nio.fs.AbstractWatchKey.lastModifyEvents:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
4: aload 2
aload 1
monitorexit
5: areturn
end local 2 6: StackMap locals: sun.nio.fs.AbstractWatchKey sun.nio.fs.AbstractWatchKey
StackMap stack: java.lang.Throwable
aload 1
monitorexit
7: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/fs/AbstractWatchKey;
2 6 2 result Ljava/util/List<Ljava/nio/file/WatchEvent<*>;>;
Exception table:
from to target type
1 5 6 any
6 7 6 any
Signature: ()Ljava/util/List<Ljava/nio/file/WatchEvent<*>;>;
public final boolean reset();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.fs.AbstractWatchKey.state:Lsun/nio/fs/AbstractWatchKey$State;
getstatic sun.nio.fs.AbstractWatchKey$State.SIGNALLED:Lsun/nio/fs/AbstractWatchKey$State;
if_acmpne 6
aload 0
invokevirtual sun.nio.fs.AbstractWatchKey.isValid:()Z
ifeq 6
2: aload 0
getfield sun.nio.fs.AbstractWatchKey.events:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifeq 5
3: aload 0
getstatic sun.nio.fs.AbstractWatchKey$State.READY:Lsun/nio/fs/AbstractWatchKey$State;
putfield sun.nio.fs.AbstractWatchKey.state:Lsun/nio/fs/AbstractWatchKey$State;
4: goto 6
5: StackMap locals: sun.nio.fs.AbstractWatchKey
StackMap stack:
aload 0
getfield sun.nio.fs.AbstractWatchKey.watcher:Lsun/nio/fs/AbstractWatchService;
aload 0
invokevirtual sun.nio.fs.AbstractWatchService.enqueueKey:(Ljava/nio/file/WatchKey;)V
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.fs.AbstractWatchKey.isValid:()Z
aload 1
monitorexit
7: ireturn
8: StackMap locals:
StackMap stack: java.lang.Throwable
aload 1
monitorexit
9: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/fs/AbstractWatchKey;
Exception table:
from to target type
1 7 8 any
8 9 8 any
public java.nio.file.Watchable watchable();
descriptor: ()Ljava/nio/file/Watchable;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual sun.nio.fs.AbstractWatchKey.watchable:()Ljava/nio/file/Path;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "AbstractWatchKey.java"
NestMembers:
sun.nio.fs.AbstractWatchKey$Event sun.nio.fs.AbstractWatchKey$State
InnerClasses:
public abstract Kind = java.nio.file.WatchEvent$Kind of java.nio.file.WatchEvent
private Event = sun.nio.fs.AbstractWatchKey$Event of sun.nio.fs.AbstractWatchKey
private final State = sun.nio.fs.AbstractWatchKey$State of sun.nio.fs.AbstractWatchKey