public class jdk.internal.jmod.JmodFile implements java.lang.AutoCloseable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.jmod.JmodFile
super_class: java.lang.Object
{
private static final int JMOD_MAJOR_VERSION;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int JMOD_MINOR_VERSION;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final byte[] JMOD_MAGIC_NUMBER;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.nio.file.Path file;
descriptor: Ljava/nio/file/Path;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.zip.ZipFile zipfile;
descriptor: Ljava/util/zip/ZipFile;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: iconst_4
newarray 8
dup
iconst_0
1: bipush 74
bastore
dup
iconst_1
bipush 77
bastore
dup
iconst_2
2: iconst_1
bastore
3: putstatic jdk.internal.jmod.JmodFile.JMOD_MAGIC_NUMBER:[B
4: return
LocalVariableTable:
Start End Slot Name Signature
public static void checkMagic(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=6, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: aload 0
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.newInputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
astore 3
start local 3 2: new java.io.BufferedInputStream
dup
aload 3
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
astore 4
start local 4 3: iconst_4
newarray 8
astore 5
start local 5 4: aload 4
aload 5
invokevirtual java.io.BufferedInputStream.read:([B)I
pop
5: aload 5
iconst_0
baload
getstatic jdk.internal.jmod.JmodFile.JMOD_MAGIC_NUMBER:[B
iconst_0
baload
if_icmpne 7
6: aload 5
iconst_1
baload
getstatic jdk.internal.jmod.JmodFile.JMOD_MAGIC_NUMBER:[B
iconst_1
baload
if_icmpeq 8
7: StackMap locals: java.nio.file.Path java.lang.Throwable java.lang.Throwable java.io.InputStream java.io.BufferedInputStream byte[]
StackMap stack:
new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Invalid JMOD file: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 5
iconst_2
baload
iconst_1
if_icmpgt 10
9: aload 5
iconst_2
baload
iconst_1
if_icmpne 13
aload 5
iconst_3
baload
ifle 13
10: StackMap locals:
StackMap stack:
new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Unsupported jmod version: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
11: aload 5
iconst_2
baload
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
iconst_3
baload
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " in "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
12: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 5 13: StackMap locals:
StackMap stack:
aload 4
ifnull 16
aload 4
invokevirtual java.io.BufferedInputStream.close:()V
goto 16
StackMap locals:
StackMap stack: java.lang.Throwable
14: astore 1
aload 4
ifnull 15
aload 4
invokevirtual java.io.BufferedInputStream.close:()V
end local 4 StackMap locals:
StackMap stack:
15: aload 1
athrow
StackMap locals:
StackMap stack:
16: aload 3
ifnull 24
aload 3
invokevirtual java.io.InputStream.close:()V
goto 24
StackMap locals:
StackMap stack: java.lang.Throwable
17: astore 2
aload 1
ifnonnull 18
aload 2
astore 1
goto 19
StackMap locals:
StackMap stack:
18: aload 1
aload 2
if_acmpeq 19
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
19: aload 3
ifnull 20
aload 3
invokevirtual java.io.InputStream.close:()V
end local 3 StackMap locals:
StackMap stack:
20: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
21: astore 2
aload 1
ifnonnull 22
aload 2
astore 1
goto 23
StackMap locals:
StackMap stack:
22: aload 1
aload 2
if_acmpeq 23
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
23: aload 1
athrow
24: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 file Ljava/nio/file/Path;
2 20 3 in Ljava/io/InputStream;
3 15 4 bis Ljava/io/BufferedInputStream;
4 13 5 magic [B
Exception table:
from to target type
3 13 14 any
2 16 17 any
1 21 21 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
public void <init>(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
invokestatic jdk.internal.jmod.JmodFile.checkMagic:(Ljava/nio/file/Path;)V
2: aload 0
aload 1
putfield jdk.internal.jmod.JmodFile.file:Ljava/nio/file/Path;
3: aload 0
new java.util.zip.ZipFile
dup
aload 1
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokespecial java.util.zip.ZipFile.<init>:(Ljava/io/File;)V
putfield jdk.internal.jmod.JmodFile.zipfile:Ljava/util/zip/ZipFile;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jmod/JmodFile;
0 5 1 file Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
public static void writeMagicNumber(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic jdk.internal.jmod.JmodFile.JMOD_MAGIC_NUMBER:[B
invokevirtual java.io.OutputStream.write:([B)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 os Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
os
public jdk.internal.jmod.JmodFile$Entry getEntry(jdk.internal.jmod.JmodFile$Section, java.lang.String);
descriptor: (Ljdk/internal/jmod/JmodFile$Section;Ljava/lang/String;)Ljdk/internal/jmod/JmodFile$Entry;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
aload 1
invokevirtual jdk.internal.jmod.JmodFile$Section.jmodDir:()Ljava/lang/String;
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;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 1: aload 0
getfield jdk.internal.jmod.JmodFile.zipfile:Ljava/util/zip/ZipFile;
aload 3
invokevirtual java.util.zip.ZipFile.getEntry:(Ljava/lang/String;)Ljava/util/zip/ZipEntry;
astore 4
start local 4 2: aload 4
ifnull 3
new jdk.internal.jmod.JmodFile$Entry
dup
aload 4
invokespecial jdk.internal.jmod.JmodFile$Entry.<init>:(Ljava/util/zip/ZipEntry;)V
goto 4
StackMap locals: java.lang.String java.util.zip.ZipEntry
StackMap stack:
3: aconst_null
StackMap locals:
StackMap stack: jdk.internal.jmod.JmodFile$Entry
4: areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jmod/JmodFile;
0 5 1 section Ljdk/internal/jmod/JmodFile$Section;
0 5 2 name Ljava/lang/String;
1 5 3 entry Ljava/lang/String;
2 5 4 ze Ljava/util/zip/ZipEntry;
MethodParameters:
Name Flags
section
name
public java.io.InputStream getInputStream(jdk.internal.jmod.JmodFile$Section, java.lang.String);
descriptor: (Ljdk/internal/jmod/JmodFile$Section;Ljava/lang/String;)Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
aload 1
invokevirtual jdk.internal.jmod.JmodFile$Section.jmodDir:()Ljava/lang/String;
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;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 1: aload 0
getfield jdk.internal.jmod.JmodFile.zipfile:Ljava/util/zip/ZipFile;
aload 3
invokevirtual java.util.zip.ZipFile.getEntry:(Ljava/lang/String;)Ljava/util/zip/ZipEntry;
astore 4
start local 4 2: aload 4
ifnonnull 4
3: new java.io.IOException
dup
new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " not found: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.internal.jmod.JmodFile.file:Ljava/nio/file/Path;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.lang.String java.util.zip.ZipEntry
StackMap stack:
aload 0
getfield jdk.internal.jmod.JmodFile.zipfile:Ljava/util/zip/ZipFile;
aload 4
invokevirtual java.util.zip.ZipFile.getInputStream:(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/jmod/JmodFile;
0 5 1 section Ljdk/internal/jmod/JmodFile$Section;
0 5 2 name Ljava/lang/String;
1 5 3 entry Ljava/lang/String;
2 5 4 e Ljava/util/zip/ZipEntry;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
section
name
public java.io.InputStream getInputStream(jdk.internal.jmod.JmodFile$Entry);
descriptor: (Ljdk/internal/jmod/JmodFile$Entry;)Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.jmod.JmodFile.zipfile:Ljava/util/zip/ZipFile;
aload 1
invokevirtual jdk.internal.jmod.JmodFile$Entry.zipEntry:()Ljava/util/zip/ZipEntry;
invokevirtual java.util.zip.ZipFile.getInputStream:(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/jmod/JmodFile;
0 1 1 entry Ljdk/internal/jmod/JmodFile$Entry;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
entry
public java.util.stream.Stream<jdk.internal.jmod.JmodFile$Entry> stream();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jmod.JmodFile.zipfile:Ljava/util/zip/ZipFile;
invokevirtual java.util.zip.ZipFile.stream:()Ljava/util/stream/Stream;
1: 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.lambda$0(Ljava/util/zip/ZipEntry;)Ljdk/internal/jmod/JmodFile$Entry; (6)
(Ljava/util/zip/ZipEntry;)Ljdk/internal/jmod/JmodFile$Entry;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jmod/JmodFile;
Signature: ()Ljava/util/stream/Stream<Ljdk/internal/jmod/JmodFile$Entry;>;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.jmod.JmodFile.zipfile:Ljava/util/zip/ZipFile;
ifnull 2
1: aload 0
getfield jdk.internal.jmod.JmodFile.zipfile:Ljava/util/zip/ZipFile;
invokevirtual java.util.zip.ZipFile.close:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/jmod/JmodFile;
Exceptions:
throws java.io.IOException
private static jdk.internal.jmod.JmodFile$Entry lambda$0(java.util.zip.ZipEntry);
descriptor: (Ljava/util/zip/ZipEntry;)Ljdk/internal/jmod/JmodFile$Entry;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new jdk.internal.jmod.JmodFile$Entry
dup
aload 0
invokespecial jdk.internal.jmod.JmodFile$Entry.<init>:(Ljava/util/zip/ZipEntry;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "JmodFile.java"
NestMembers:
jdk.internal.jmod.JmodFile$Entry jdk.internal.jmod.JmodFile$Section
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