class jdk.internal.module.ModuleReferences$JModModuleReader extends jdk.internal.module.ModuleReferences$SafeCloseModuleReader
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.module.ModuleReferences$JModModuleReader
super_class: jdk.internal.module.ModuleReferences$SafeCloseModuleReader
{
private final jdk.internal.jmod.JmodFile jf;
descriptor: Ljdk/internal/jmod/JmodFile;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.net.URI uri;
descriptor: Ljava/net/URI;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static jdk.internal.jmod.JmodFile newJmodFile(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/internal/jmod/JmodFile;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new jdk.internal.jmod.JmodFile
dup
aload 0
invokespecial jdk.internal.jmod.JmodFile.<init>:(Ljava/nio/file/Path;)V
1: areturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 3: new java.io.UncheckedIOException
dup
aload 1
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 path Ljava/nio/file/Path;
3 4 1 ioe Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
path
void <init>(java.nio.file.Path, java.net.URI);
descriptor: (Ljava/nio/file/Path;Ljava/net/URI;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial jdk.internal.module.ModuleReferences$SafeCloseModuleReader.<init>:()V
1: aload 0
aload 1
invokestatic jdk.internal.module.ModuleReferences$JModModuleReader.newJmodFile:(Ljava/nio/file/Path;)Ljdk/internal/jmod/JmodFile;
putfield jdk.internal.module.ModuleReferences$JModModuleReader.jf:Ljdk/internal/jmod/JmodFile;
2: aload 0
aload 2
putfield jdk.internal.module.ModuleReferences$JModModuleReader.uri:Ljava/net/URI;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/module/ModuleReferences$JModModuleReader;
0 4 1 path Ljava/nio/file/Path;
0 4 2 uri Ljava/net/URI;
MethodParameters:
Name Flags
path
uri
private jdk.internal.jmod.JmodFile$Entry getEntry(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/internal/jmod/JmodFile$Entry;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield jdk.internal.module.ModuleReferences$JModModuleReader.jf:Ljdk/internal/jmod/JmodFile;
getstatic jdk.internal.jmod.JmodFile$Section.CLASSES:Ljdk/internal/jmod/JmodFile$Section;
aload 1
invokevirtual jdk.internal.jmod.JmodFile.getEntry:(Ljdk/internal/jmod/JmodFile$Section;Ljava/lang/String;)Ljdk/internal/jmod/JmodFile$Entry;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/module/ModuleReferences$JModModuleReader;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
java.util.Optional<java.net.URI> implFind(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0000)
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.internal.module.ModuleReferences$JModModuleReader.getEntry:(Ljava/lang/String;)Ljdk/internal/jmod/JmodFile$Entry;
astore 2
start local 2 1: aload 2
ifnull 7
2: aload 2
invokevirtual jdk.internal.jmod.JmodFile$Entry.isDirectory:()Z
ifeq 4
aload 1
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 4
3: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
4: StackMap locals: jdk.internal.jmod.JmodFile$Entry
StackMap stack:
aload 1
iconst_0
invokestatic sun.net.www.ParseUtil.encodePath:(Ljava/lang/String;Z)Ljava/lang/String;
astore 3
start local 3 5: new java.lang.StringBuilder
dup
ldc "jmod:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.module.ModuleReferences$JModModuleReader.uri:Ljava/net/URI;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "!/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 6: aload 4
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 4 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$JModModuleReader;
0 8 1 name Ljava/lang/String;
1 8 2 je Ljdk/internal/jmod/JmodFile$Entry;
5 7 3 encodedPath Ljava/lang/String;
6 7 4 uris Ljava/lang/String;
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/net/URI;>;
MethodParameters:
Name Flags
name
java.util.Optional<java.io.InputStream> implOpen(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.internal.module.ModuleReferences$JModModuleReader.getEntry:(Ljava/lang/String;)Ljdk/internal/jmod/JmodFile$Entry;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 0
getfield jdk.internal.module.ModuleReferences$JModModuleReader.jf:Ljdk/internal/jmod/JmodFile;
aload 2
invokevirtual jdk.internal.jmod.JmodFile.getInputStream:(Ljdk/internal/jmod/JmodFile$Entry;)Ljava/io/InputStream;
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
3: StackMap locals: jdk.internal.jmod.JmodFile$Entry
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 4 0 this Ljdk/internal/module/ModuleReferences$JModModuleReader;
0 4 1 name Ljava/lang/String;
1 4 2 je Ljdk/internal/jmod/JmodFile$Entry;
Exceptions:
throws java.io.IOException
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljava/io/InputStream;>;
MethodParameters:
Name Flags
name
java.util.stream.Stream<java.lang.String> implList();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleReferences$JModModuleReader.jf:Ljdk/internal/jmod/JmodFile;
invokevirtual jdk.internal.jmod.JmodFile.stream:()Ljava/util/stream/Stream;
1: 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$JModModuleReader.lambda$0(Ljdk/internal/jmod/JmodFile$Entry;)Z (6)
(Ljdk/internal/jmod/JmodFile$Entry;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
2: invokedynamic apply()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/jmod/JmodFile$Entry.name()Ljava/lang/String; (5)
(Ljdk/internal/jmod/JmodFile$Entry;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
3: invokestatic java.util.stream.Collectors.toList:()Ljava/util/stream/Collector;
invokeinterface java.util.stream.Stream.collect:(Ljava/util/stream/Collector;)Ljava/lang/Object;
checkcast java.util.List
4: astore 1
start local 1 5: aload 1
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/module/ModuleReferences$JModModuleReader;
5 6 1 names Ljava/util/List<Ljava/lang/String;>;
Exceptions:
throws java.io.IOException
Signature: ()Ljava/util/stream/Stream<Ljava/lang/String;>;
void implClose();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleReferences$JModModuleReader.jf:Ljdk/internal/jmod/JmodFile;
invokevirtual jdk.internal.jmod.JmodFile.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/module/ModuleReferences$JModModuleReader;
Exceptions:
throws java.io.IOException
private static boolean lambda$0(jdk.internal.jmod.JmodFile$Entry);
descriptor: (Ljdk/internal/jmod/JmodFile$Entry;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.jmod.JmodFile$Entry.section:()Ljdk/internal/jmod/JmodFile$Section;
getstatic jdk.internal.jmod.JmodFile$Section.CLASSES:Ljdk/internal/jmod/JmodFile$Section;
if_acmpne 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 e Ljdk/internal/jmod/JmodFile$Entry;
}
SourceFile: "ModuleReferences.java"
NestHost: jdk.internal.module.ModuleReferences
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public Entry = jdk.internal.jmod.JmodFile$Entry of jdk.internal.jmod.JmodFile
public final Section = jdk.internal.jmod.JmodFile$Section of jdk.internal.jmod.JmodFile
JModModuleReader = jdk.internal.module.ModuleReferences$JModModuleReader of jdk.internal.module.ModuleReferences
abstract SafeCloseModuleReader = jdk.internal.module.ModuleReferences$SafeCloseModuleReader of jdk.internal.module.ModuleReferences