class jdk.internal.module.ModuleReferences$ExplodedModuleReader implements java.lang.module.ModuleReader
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.module.ModuleReferences$ExplodedModuleReader
super_class: java.lang.Object
{
private final java.nio.file.Path dir;
descriptor: Ljava/nio/file/Path;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean closed;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
void <init>(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield jdk.internal.module.ModuleReferences$ExplodedModuleReader.dir:Ljava/nio/file/Path;
2: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 2
start local 2 3: aload 2
ifnull 5
4: aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
pop
5: StackMap locals: jdk.internal.module.ModuleReferences$ExplodedModuleReader java.nio.file.Path java.lang.SecurityManager
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/module/ModuleReferences$ExplodedModuleReader;
0 6 1 dir Ljava/nio/file/Path;
3 6 2 sm Ljava/lang/SecurityManager;
MethodParameters:
Name Flags
dir
private void ensureOpen();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleReferences$ExplodedModuleReader.closed:Z
ifeq 1
new java.io.IOException
dup
ldc "ModuleReader is closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
1: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/module/ModuleReferences$ExplodedModuleReader;
Exceptions:
throws java.io.IOException
public java.util.Optional<java.net.URI> find(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.internal.module.ModuleReferences$ExplodedModuleReader.ensureOpen:()V
1: aload 0
getfield jdk.internal.module.ModuleReferences$ExplodedModuleReader.dir:Ljava/nio/file/Path;
aload 1
invokestatic jdk.internal.module.Resources.toFilePath:(Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/Path;
astore 2
start local 2 2: aload 2
ifnull 7
3: aload 2
invokeinterface java.nio.file.Path.toUri:()Ljava/net/URI;
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
4: areturn
5: StackMap locals: jdk.internal.module.ModuleReferences$ExplodedModuleReader java.lang.String java.nio.file.Path
StackMap stack: java.io.IOError
astore 3
start local 3 6: aload 3
invokevirtual java.io.IOError.getCause:()Ljava/lang/Throwable;
checkcast java.io.IOException
athrow
end local 3 7: StackMap locals:
StackMap stack:
invokestatic java.util.Optional.empty:()Ljava/util/Optional;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/module/ModuleReferences$ExplodedModuleReader;
0 8 1 name Ljava/lang/String;
2 8 2 path Ljava/nio/file/Path;
6 7 3 e Ljava/io/IOError;
Exception table:
from to target type
3 4 5 Class java.io.IOError
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/net/URI;>;
MethodParameters:
Name Flags
name
public java.util.Optional<java.io.InputStream> open(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.internal.module.ModuleReferences$ExplodedModuleReader.ensureOpen:()V
1: aload 0
getfield jdk.internal.module.ModuleReferences$ExplodedModuleReader.dir:Ljava/nio/file/Path;
aload 1
invokestatic jdk.internal.module.Resources.toFilePath:(Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/Path;
astore 2
start local 2 2: aload 2
ifnull 4
3: aload 2
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.newInputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
4: StackMap locals: java.nio.file.Path
StackMap stack:
invokestatic java.util.Optional.empty:()Ljava/util/Optional;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/module/ModuleReferences$ExplodedModuleReader;
0 5 1 name Ljava/lang/String;
2 5 2 path Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/io/InputStream;>;
MethodParameters:
Name Flags
name
public java.util.Optional<java.nio.ByteBuffer> read(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.internal.module.ModuleReferences$ExplodedModuleReader.ensureOpen:()V
1: aload 0
getfield jdk.internal.module.ModuleReferences$ExplodedModuleReader.dir:Ljava/nio/file/Path;
aload 1
invokestatic jdk.internal.module.Resources.toFilePath:(Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/Path;
astore 2
start local 2 2: aload 2
ifnull 4
3: aload 2
invokestatic java.nio.file.Files.readAllBytes:(Ljava/nio/file/Path;)[B
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
4: StackMap locals: java.nio.file.Path
StackMap stack:
invokestatic java.util.Optional.empty:()Ljava/util/Optional;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/module/ModuleReferences$ExplodedModuleReader;
0 5 1 name Ljava/lang/String;
2 5 2 path Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/nio/ByteBuffer;>;
MethodParameters:
Name Flags
name
public java.util.stream.Stream<java.lang.String> list();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.module.ModuleReferences$ExplodedModuleReader.ensureOpen:()V
1: aload 0
getfield jdk.internal.module.ModuleReferences$ExplodedModuleReader.dir:Ljava/nio/file/Path;
ldc 2147483647
iconst_0
anewarray java.nio.file.FileVisitOption
invokestatic java.nio.file.Files.walk:(Ljava/nio/file/Path;I[Ljava/nio/file/FileVisitOption;)Ljava/util/stream/Stream;
2: aload 0
invokedynamic apply(Ljdk/internal/module/ModuleReferences$ExplodedModuleReader;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/internal/module/ModuleReferences$ExplodedModuleReader.lambda$0(Ljava/nio/file/Path;)Ljava/lang/String; (7)
(Ljava/nio/file/Path;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
3: invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
jdk/internal/module/ModuleReferences$ExplodedModuleReader.lambda$1(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
4: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/module/ModuleReferences$ExplodedModuleReader;
Exceptions:
throws java.io.IOException
Signature: ()Ljava/util/stream/Stream<Ljava/lang/String;>;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield jdk.internal.module.ModuleReferences$ExplodedModuleReader.closed:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/module/ModuleReferences$ExplodedModuleReader;
private java.lang.String lambda$0(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.module.ModuleReferences$ExplodedModuleReader.dir:Ljava/nio/file/Path;
aload 1
invokestatic jdk.internal.module.Resources.toResourceName:(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModuleReferences$ExplodedModuleReader;
0 1 1 f Ljava/nio/file/Path;
private static boolean lambda$1(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
ifle 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 s Ljava/lang/String;
}
SourceFile: "ModuleReferences.java"
NestHost: jdk.internal.module.ModuleReferences
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
ExplodedModuleReader = jdk.internal.module.ModuleReferences$ExplodedModuleReader of jdk.internal.module.ModuleReferences