class sun.nio.fs.UnixDirectoryStream implements java.nio.file.DirectoryStream<java.nio.file.Path>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.nio.fs.UnixDirectoryStream
super_class: java.lang.Object
{
private final sun.nio.fs.UnixPath dir;
descriptor: Lsun/nio/fs/UnixPath;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long dp;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.file.DirectoryStream$Filter<? super java.nio.file.Path> filter;
descriptor: Ljava/nio/file/DirectoryStream$Filter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/nio/file/DirectoryStream$Filter<-Ljava/nio/file/Path;>;
private final java.util.concurrent.locks.ReentrantReadWriteLock streamLock;
descriptor: Ljava/util/concurrent/locks/ReentrantReadWriteLock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean isClosed;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private java.util.Iterator<java.nio.file.Path> iterator;
descriptor: Ljava/util/Iterator;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Iterator<Ljava/nio/file/Path;>;
void <init>(sun.nio.fs.UnixPath, long, java.nio.file.DirectoryStream$Filter<? super java.nio.file.Path>);
descriptor: (Lsun/nio/fs/UnixPath;JLjava/nio/file/DirectoryStream$Filter;)V
flags: (0x0000)
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new java.util.concurrent.locks.ReentrantReadWriteLock
dup
iconst_1
invokespecial java.util.concurrent.locks.ReentrantReadWriteLock.<init>:(Z)V
putfield sun.nio.fs.UnixDirectoryStream.streamLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
3: aload 0
aload 1
putfield sun.nio.fs.UnixDirectoryStream.dir:Lsun/nio/fs/UnixPath;
4: aload 0
lload 2
putfield sun.nio.fs.UnixDirectoryStream.dp:J
5: aload 0
aload 4
putfield sun.nio.fs.UnixDirectoryStream.filter:Ljava/nio/file/DirectoryStream$Filter;
6: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/fs/UnixDirectoryStream;
0 7 1 dir Lsun/nio/fs/UnixPath;
0 7 2 dp J
0 7 4 filter Ljava/nio/file/DirectoryStream$Filter<-Ljava/nio/file/Path;>;
Signature: (Lsun/nio/fs/UnixPath;JLjava/nio/file/DirectoryStream$Filter<-Ljava/nio/file/Path;>;)V
MethodParameters:
Name Flags
dir
dp
filter
protected final sun.nio.fs.UnixPath directory();
descriptor: ()Lsun/nio/fs/UnixPath;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.fs.UnixDirectoryStream.dir:Lsun/nio/fs/UnixPath;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/fs/UnixDirectoryStream;
protected final java.util.concurrent.locks.Lock readLock();
descriptor: ()Ljava/util/concurrent/locks/Lock;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.fs.UnixDirectoryStream.streamLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.readLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/fs/UnixDirectoryStream;
protected final java.util.concurrent.locks.Lock writeLock();
descriptor: ()Ljava/util/concurrent/locks/Lock;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.fs.UnixDirectoryStream.streamLock:Ljava/util/concurrent/locks/ReentrantReadWriteLock;
invokevirtual java.util.concurrent.locks.ReentrantReadWriteLock.writeLock:()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/fs/UnixDirectoryStream;
protected final boolean isOpen();
descriptor: ()Z
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.fs.UnixDirectoryStream.isClosed:Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/fs/UnixDirectoryStream;
protected final boolean closeImpl();
descriptor: ()Z
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.fs.UnixDirectoryStream.isClosed:Z
ifne 7
1: aload 0
iconst_1
putfield sun.nio.fs.UnixDirectoryStream.isClosed:Z
2: aload 0
getfield sun.nio.fs.UnixDirectoryStream.dp:J
invokestatic sun.nio.fs.UnixNativeDispatcher.closedir:(J)V
3: goto 6
StackMap locals:
StackMap stack: sun.nio.fs.UnixException
4: astore 1
start local 1 5: new java.io.IOException
dup
aload 1
invokevirtual sun.nio.fs.UnixException.errorString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 1 6: StackMap locals:
StackMap stack:
iconst_1
ireturn
7: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/fs/UnixDirectoryStream;
5 6 1 x Lsun/nio/fs/UnixException;
Exception table:
from to target type
2 3 4 Class sun.nio.fs.UnixException
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.fs.UnixDirectoryStream.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
invokevirtual sun.nio.fs.UnixDirectoryStream.closeImpl:()Z
pop
2: goto 6
StackMap locals:
StackMap stack: java.lang.Throwable
3: astore 1
4: aload 0
invokevirtual sun.nio.fs.UnixDirectoryStream.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
5: aload 1
athrow
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.fs.UnixDirectoryStream.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/fs/UnixDirectoryStream;
Exception table:
from to target type
1 3 3 any
Exceptions:
throws java.io.IOException
protected final java.util.Iterator<java.nio.file.Path> iterator(java.nio.file.DirectoryStream<java.nio.file.Path>);
descriptor: (Ljava/nio/file/DirectoryStream;)Ljava/util/Iterator;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.fs.UnixDirectoryStream.isClosed:Z
ifeq 2
1: new java.lang.IllegalStateException
dup
ldc "Directory stream is closed"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
dup
astore 2
monitorenter
3: aload 0
getfield sun.nio.fs.UnixDirectoryStream.iterator:Ljava/util/Iterator;
ifnull 5
4: new java.lang.IllegalStateException
dup
ldc "Iterator already obtained"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: sun.nio.fs.UnixDirectoryStream
StackMap stack:
aload 0
new sun.nio.fs.UnixDirectoryStream$UnixDirectoryIterator
dup
aload 0
aload 1
invokespecial sun.nio.fs.UnixDirectoryStream$UnixDirectoryIterator.<init>:(Lsun/nio/fs/UnixDirectoryStream;Ljava/nio/file/DirectoryStream;)V
putfield sun.nio.fs.UnixDirectoryStream.iterator:Ljava/util/Iterator;
6: aload 0
getfield sun.nio.fs.UnixDirectoryStream.iterator:Ljava/util/Iterator;
aload 2
monitorexit
7: areturn
8: StackMap locals:
StackMap stack: java.lang.Throwable
aload 2
monitorexit
9: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/nio/fs/UnixDirectoryStream;
0 10 1 ds Ljava/nio/file/DirectoryStream<Ljava/nio/file/Path;>;
Exception table:
from to target type
3 7 8 any
8 9 8 any
Signature: (Ljava/nio/file/DirectoryStream<Ljava/nio/file/Path;>;)Ljava/util/Iterator<Ljava/nio/file/Path;>;
MethodParameters:
Name Flags
ds
public java.util.Iterator<java.nio.file.Path> iterator();
descriptor: ()Ljava/util/Iterator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual sun.nio.fs.UnixDirectoryStream.iterator:(Ljava/nio/file/DirectoryStream;)Ljava/util/Iterator;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/fs/UnixDirectoryStream;
Signature: ()Ljava/util/Iterator<Ljava/nio/file/Path;>;
}
Signature: Ljava/lang/Object;Ljava/nio/file/DirectoryStream<Ljava/nio/file/Path;>;
SourceFile: "UnixDirectoryStream.java"
NestMembers:
sun.nio.fs.UnixDirectoryStream$UnixDirectoryIterator
InnerClasses:
public abstract Filter = java.nio.file.DirectoryStream$Filter of java.nio.file.DirectoryStream
public ReadLock = java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock of java.util.concurrent.locks.ReentrantReadWriteLock
public WriteLock = java.util.concurrent.locks.ReentrantReadWriteLock$WriteLock of java.util.concurrent.locks.ReentrantReadWriteLock
private UnixDirectoryIterator = sun.nio.fs.UnixDirectoryStream$UnixDirectoryIterator of sun.nio.fs.UnixDirectoryStream