public final class jdk.internal.module.ModuleHashes
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.internal.module.ModuleHashes
super_class: java.lang.Object
{
private final java.lang.String algorithm;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Map<java.lang.String, byte[]> nameToHash;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;[B>;
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljdk/internal/module/ModuleHashes;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.internal.module.ModuleHashes.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.lang.String, java.util.Map<java.lang.String, byte[]>);
descriptor: (Ljava/lang/String;Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield jdk.internal.module.ModuleHashes.algorithm:Ljava/lang/String;
2: aload 0
aload 2
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
putfield jdk.internal.module.ModuleHashes.nameToHash:Ljava/util/Map;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/module/ModuleHashes;
0 4 1 algorithm Ljava/lang/String;
0 4 2 nameToHash Ljava/util/Map<Ljava/lang/String;[B>;
Signature: (Ljava/lang/String;Ljava/util/Map<Ljava/lang/String;[B>;)V
MethodParameters:
Name Flags
algorithm
nameToHash
public java.lang.String algorithm();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleHashes.algorithm:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModuleHashes;
public java.util.Set<java.lang.String> names();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleHashes.nameToHash:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModuleHashes;
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
public byte[] hashFor(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.module.ModuleHashes.nameToHash:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast byte[]
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModuleHashes;
0 1 1 mn Ljava/lang/String;
MethodParameters:
Name Flags
mn
public java.util.Map<java.lang.String, byte[]> hashes();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleHashes.nameToHash:Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModuleHashes;
Signature: ()Ljava/util/Map<Ljava/lang/String;[B>;
public static byte[] computeHash(java.nio.file.Path, java.lang.String);
descriptor: (Ljava/nio/file/Path;Ljava/lang/String;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.security.MessageDigest.getInstance:(Ljava/lang/String;)Ljava/security/MessageDigest;
astore 2
start local 2 1: aconst_null
astore 3
aconst_null
astore 4
2: aload 0
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.channels.FileChannel.open:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/nio/channels/FileChannel;
astore 5
start local 5 3: ldc 32768
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 6
start local 6 4: goto 9
5: StackMap locals: java.nio.file.Path java.lang.String java.security.MessageDigest java.lang.Throwable java.lang.Throwable java.nio.channels.FileChannel java.nio.ByteBuffer
StackMap stack:
aload 6
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
6: aload 2
aload 6
invokevirtual java.security.MessageDigest.update:(Ljava/nio/ByteBuffer;)V
7: getstatic jdk.internal.module.ModuleHashes.$assertionsDisabled:Z
ifne 8
aload 6
invokevirtual java.nio.ByteBuffer.remaining:()I
ifeq 8
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
8: StackMap locals:
StackMap stack:
aload 6
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/ByteBuffer;
pop
9: StackMap locals:
StackMap stack:
aload 5
aload 6
invokevirtual java.nio.channels.FileChannel.read:(Ljava/nio/ByteBuffer;)I
ifgt 5
end local 6 10: aload 5
ifnull 16
aload 5
invokevirtual java.nio.channels.FileChannel.close:()V
goto 16
StackMap locals: java.nio.file.Path java.lang.String java.security.MessageDigest java.lang.Throwable java.lang.Throwable java.nio.channels.FileChannel
StackMap stack: java.lang.Throwable
11: astore 3
aload 5
ifnull 12
aload 5
invokevirtual java.nio.channels.FileChannel.close:()V
end local 5 StackMap locals:
StackMap stack:
12: aload 3
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 4
aload 3
ifnonnull 14
aload 4
astore 3
goto 15
StackMap locals:
StackMap stack:
14: aload 3
aload 4
if_acmpeq 15
aload 3
aload 4
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
15: aload 3
athrow
16: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.security.MessageDigest.digest:()[B
17: areturn
end local 2 18: StackMap locals: java.nio.file.Path java.lang.String
StackMap stack: java.security.NoSuchAlgorithmException
astore 2
start local 2 19: new java.lang.RuntimeException
dup
aload 2
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 20: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 21: new java.io.UncheckedIOException
dup
aload 2
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 file Ljava/nio/file/Path;
0 22 1 algorithm Ljava/lang/String;
1 18 2 md Ljava/security/MessageDigest;
3 12 5 fc Ljava/nio/channels/FileChannel;
4 10 6 bb Ljava/nio/ByteBuffer;
19 20 2 e Ljava/security/NoSuchAlgorithmException;
21 22 2 ioe Ljava/io/IOException;
Exception table:
from to target type
3 10 11 any
2 13 13 any
0 17 18 Class java.security.NoSuchAlgorithmException
0 17 20 Class java.io.IOException
MethodParameters:
Name Flags
file
algorithm
public static jdk.internal.module.ModuleHashes generate(java.util.Map<java.lang.String, java.nio.file.Path>, java.lang.String);
descriptor: (Ljava/util/Map;Ljava/lang/String;)Ljdk/internal/module/ModuleHashes;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 2
start local 2 1: aload 0
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 6
StackMap locals: java.util.Map java.lang.String java.util.Map top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 3: aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 4: aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 6
start local 6 5: aload 2
aload 5
aload 6
aload 1
invokestatic jdk.internal.module.ModuleHashes.computeHash:(Ljava/nio/file/Path;Ljava/lang/String;)[B
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 6 end local 5 end local 3 6: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: new jdk.internal.module.ModuleHashes
dup
aload 1
aload 2
invokespecial jdk.internal.module.ModuleHashes.<init>:(Ljava/lang/String;Ljava/util/Map;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 map Ljava/util/Map<Ljava/lang/String;Ljava/nio/file/Path;>;
0 8 1 algorithm Ljava/lang/String;
1 8 2 nameToHash Ljava/util/Map<Ljava/lang/String;[B>;
3 6 3 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/nio/file/Path;>;
4 6 5 name Ljava/lang/String;
5 6 6 path Ljava/nio/file/Path;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/nio/file/Path;>;Ljava/lang/String;)Ljdk/internal/module/ModuleHashes;
MethodParameters:
Name Flags
map
algorithm
}
SourceFile: "ModuleHashes.java"
NestMembers:
jdk.internal.module.ModuleHashes$Builder jdk.internal.module.ModuleHashes$HashSupplier
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
public Builder = jdk.internal.module.ModuleHashes$Builder of jdk.internal.module.ModuleHashes
public abstract HashSupplier = jdk.internal.module.ModuleHashes$HashSupplier of jdk.internal.module.ModuleHashes