final class jdk.jpackage.internal.LauncherData$ModuleInfo
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.jpackage.internal.LauncherData$ModuleInfo
super_class: java.lang.Object
{
java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0000)
java.lang.String version;
descriptor: Ljava/lang/String;
flags: (0x0000)
java.lang.String mainClass;
descriptor: Ljava/lang/String;
flags: (0x0000)
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jpackage/internal/LauncherData$ModuleInfo;
static jdk.jpackage.internal.LauncherData$ModuleInfo fromModuleDescriptor(java.lang.module.ModuleDescriptor);
descriptor: (Ljava/lang/module/ModuleDescriptor;)Ljdk/jpackage/internal/LauncherData$ModuleInfo;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: new jdk.jpackage.internal.LauncherData$ModuleInfo
dup
invokespecial jdk.jpackage.internal.LauncherData$ModuleInfo.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokevirtual java.lang.module.ModuleDescriptor.name:()Ljava/lang/String;
putfield jdk.jpackage.internal.LauncherData$ModuleInfo.name:Ljava/lang/String;
2: aload 1
aload 0
invokevirtual java.lang.module.ModuleDescriptor.mainClass:()Ljava/util/Optional;
aconst_null
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
putfield jdk.jpackage.internal.LauncherData$ModuleInfo.mainClass:Ljava/lang/String;
3: aload 0
invokevirtual java.lang.module.ModuleDescriptor.version:()Ljava/util/Optional;
aconst_null
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.module.ModuleDescriptor$Version
astore 2
start local 2 4: aload 2
ifnull 7
5: aload 1
aload 2
invokevirtual java.lang.module.ModuleDescriptor$Version.toString:()Ljava/lang/String;
putfield jdk.jpackage.internal.LauncherData$ModuleInfo.version:Ljava/lang/String;
6: goto 8
7: StackMap locals: jdk.jpackage.internal.LauncherData$ModuleInfo java.lang.module.ModuleDescriptor$Version
StackMap stack:
aload 1
aload 0
invokevirtual java.lang.module.ModuleDescriptor.rawVersion:()Ljava/util/Optional;
aconst_null
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
putfield jdk.jpackage.internal.LauncherData$ModuleInfo.version:Ljava/lang/String;
8: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 md Ljava/lang/module/ModuleDescriptor;
1 9 1 result Ljdk/jpackage/internal/LauncherData$ModuleInfo;
4 9 2 ver Ljava/lang/module/ModuleDescriptor$Version;
MethodParameters:
Name Flags
md
static jdk.jpackage.internal.LauncherData$ModuleInfo fromCookedRuntime(java.lang.String, java.nio.file.Path);
descriptor: (Ljava/lang/String;Ljava/nio/file/Path;)Ljdk/jpackage/internal/LauncherData$ModuleInfo;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: invokestatic jdk.jpackage.internal.Platform.isMac:()Z
ifne 4
2: aload 1
ldc "release"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 2
start local 2 3: goto 8
end local 2 4: StackMap locals:
StackMap stack:
aload 1
ldc "Contents/Home"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
start local 3 5: aload 3
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 7
6: aload 1
astore 3
7: StackMap locals: java.lang.String java.nio.file.Path top java.nio.file.Path
StackMap stack:
aload 3
ldc "release"
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 2
end local 3 start local 2 8: StackMap locals: java.lang.String java.nio.file.Path java.nio.file.Path
StackMap stack:
aconst_null
astore 3
aconst_null
astore 4
9: aload 2
invokestatic java.nio.file.Files.newBufferedReader:(Ljava/nio/file/Path;)Ljava/io/BufferedReader;
astore 5
start local 5 10: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 6
start local 6 11: aload 6
aload 5
invokevirtual java.util.Properties.load:(Ljava/io/Reader;)V
12: aload 6
ldc "MODULES"
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 7
start local 7 13: aload 7
ifnonnull 16
14: aload 5
ifnull 15
aload 5
invokevirtual java.io.Reader.close:()V
15: StackMap locals: java.lang.String java.nio.file.Path java.nio.file.Path java.lang.Throwable java.lang.Throwable java.io.Reader java.util.Properties java.lang.String
StackMap stack:
aconst_null
areturn
16: StackMap locals:
StackMap stack:
aload 7
ldc "\""
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 17
aload 7
ldc "\""
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 21
17: StackMap locals:
StackMap stack:
aload 7
ldc "'"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 22
aload 7
18: ldc "'"
19: invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
20: ifeq 22
21: StackMap locals:
StackMap stack:
aload 7
iconst_1
aload 7
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 7
22: StackMap locals:
StackMap stack:
aload 7
ldc "\\s+"
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
invokestatic java.util.List.of:([Ljava/lang/Object;)Ljava/util/List;
aload 0
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifne 25
23: aload 5
ifnull 24
aload 5
invokevirtual java.io.Reader.close:()V
24: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 7 end local 6 25: StackMap locals:
StackMap stack:
aload 5
ifnull 34
aload 5
invokevirtual java.io.Reader.close:()V
goto 34
StackMap locals:
StackMap stack: java.lang.Throwable
26: astore 3
aload 5
ifnull 27
aload 5
invokevirtual java.io.Reader.close:()V
end local 5 StackMap locals:
StackMap stack:
27: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
28: astore 4
aload 3
ifnonnull 29
aload 4
astore 3
goto 30
StackMap locals:
StackMap stack:
29: aload 3
aload 4
if_acmpeq 30
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
30: aload 3
athrow
StackMap locals: java.lang.String java.nio.file.Path java.nio.file.Path
StackMap stack: java.lang.Exception
31: astore 3
start local 3 32: aload 3
invokestatic jdk.jpackage.internal.Log.verbose:(Ljava/lang/Throwable;)V
33: aconst_null
areturn
end local 3 34: StackMap locals:
StackMap stack:
new jdk.jpackage.internal.LauncherData$ModuleInfo
dup
invokespecial jdk.jpackage.internal.LauncherData$ModuleInfo.<init>:()V
astore 3
start local 3 35: aload 3
aload 0
putfield jdk.jpackage.internal.LauncherData$ModuleInfo.name:Ljava/lang/String;
36: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 37 0 moduleName Ljava/lang/String;
0 37 1 cookedRuntime Ljava/nio/file/Path;
3 4 2 releaseFile Ljava/nio/file/Path;
8 37 2 releaseFile Ljava/nio/file/Path;
5 8 3 runtimeHome Ljava/nio/file/Path;
10 27 5 reader Ljava/io/Reader;
11 25 6 props Ljava/util/Properties;
13 25 7 moduleList Ljava/lang/String;
32 34 3 ex Ljava/lang/Exception;
35 37 3 result Ljdk/jpackage/internal/LauncherData$ModuleInfo;
Exception table:
from to target type
10 14 26 any
16 23 26 any
9 15 28 any
16 24 28 any
25 28 28 any
8 15 31 Class java.io.IOException
16 24 31 Class java.io.IOException
25 31 31 Class java.io.IOException
8 15 31 Class java.lang.IllegalArgumentException
16 24 31 Class java.lang.IllegalArgumentException
25 31 31 Class java.lang.IllegalArgumentException
MethodParameters:
Name Flags
moduleName
cookedRuntime
}
SourceFile: "LauncherData.java"
NestHost: jdk.jpackage.internal.LauncherData
InnerClasses:
public final Version = java.lang.module.ModuleDescriptor$Version of java.lang.module.ModuleDescriptor
private final ModuleInfo = jdk.jpackage.internal.LauncherData$ModuleInfo of jdk.jpackage.internal.LauncherData