public class jdk.internal.module.ModuleReferenceImpl extends java.lang.module.ModuleReference
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.module.ModuleReferenceImpl
super_class: java.lang.module.ModuleReference
{
private final java.net.URI location;
descriptor: Ljava/net/URI;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.function.Supplier<java.lang.module.ModuleReader> readerSupplier;
descriptor: Ljava/util/function/Supplier;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Supplier<Ljava/lang/module/ModuleReader;>;
private final jdk.internal.module.ModulePatcher patcher;
descriptor: Ljdk/internal/module/ModulePatcher;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.module.ModuleTarget target;
descriptor: Ljdk/internal/module/ModuleTarget;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.module.ModuleHashes recordedHashes;
descriptor: Ljdk/internal/module/ModuleHashes;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.module.ModuleHashes$HashSupplier hasher;
descriptor: Ljdk/internal/module/ModuleHashes$HashSupplier;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.module.ModuleResolution moduleResolution;
descriptor: Ljdk/internal/module/ModuleResolution;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private byte[] cachedHash;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int hash;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.module.ModuleDescriptor, java.net.URI, java.util.function.Supplier<java.lang.module.ModuleReader>, jdk.internal.module.ModulePatcher, jdk.internal.module.ModuleTarget, jdk.internal.module.ModuleHashes, jdk.internal.module.ModuleHashes$HashSupplier, jdk.internal.module.ModuleResolution);
descriptor: (Ljava/lang/module/ModuleDescriptor;Ljava/net/URI;Ljava/util/function/Supplier;Ljdk/internal/module/ModulePatcher;Ljdk/internal/module/ModuleTarget;Ljdk/internal/module/ModuleHashes;Ljdk/internal/module/ModuleHashes$HashSupplier;Ljdk/internal/module/ModuleResolution;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=9, args_size=9
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 start local 7 start local 8 0: aload 0
aload 1
aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.URI
invokespecial java.lang.module.ModuleReference.<init>:(Ljava/lang/module/ModuleDescriptor;Ljava/net/URI;)V
1: aload 0
aload 2
putfield jdk.internal.module.ModuleReferenceImpl.location:Ljava/net/URI;
2: aload 0
aload 3
putfield jdk.internal.module.ModuleReferenceImpl.readerSupplier:Ljava/util/function/Supplier;
3: aload 0
aload 4
putfield jdk.internal.module.ModuleReferenceImpl.patcher:Ljdk/internal/module/ModulePatcher;
4: aload 0
aload 5
putfield jdk.internal.module.ModuleReferenceImpl.target:Ljdk/internal/module/ModuleTarget;
5: aload 0
aload 6
putfield jdk.internal.module.ModuleReferenceImpl.recordedHashes:Ljdk/internal/module/ModuleHashes;
6: aload 0
aload 7
putfield jdk.internal.module.ModuleReferenceImpl.hasher:Ljdk/internal/module/ModuleHashes$HashSupplier;
7: aload 0
aload 8
putfield jdk.internal.module.ModuleReferenceImpl.moduleResolution:Ljdk/internal/module/ModuleResolution;
8: return
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/module/ModuleReferenceImpl;
0 9 1 descriptor Ljava/lang/module/ModuleDescriptor;
0 9 2 location Ljava/net/URI;
0 9 3 readerSupplier Ljava/util/function/Supplier<Ljava/lang/module/ModuleReader;>;
0 9 4 patcher Ljdk/internal/module/ModulePatcher;
0 9 5 target Ljdk/internal/module/ModuleTarget;
0 9 6 recordedHashes Ljdk/internal/module/ModuleHashes;
0 9 7 hasher Ljdk/internal/module/ModuleHashes$HashSupplier;
0 9 8 moduleResolution Ljdk/internal/module/ModuleResolution;
Signature: (Ljava/lang/module/ModuleDescriptor;Ljava/net/URI;Ljava/util/function/Supplier<Ljava/lang/module/ModuleReader;>;Ljdk/internal/module/ModulePatcher;Ljdk/internal/module/ModuleTarget;Ljdk/internal/module/ModuleHashes;Ljdk/internal/module/ModuleHashes$HashSupplier;Ljdk/internal/module/ModuleResolution;)V
MethodParameters:
Name Flags
descriptor
location
readerSupplier
patcher
target
recordedHashes
hasher
moduleResolution
public java.lang.module.ModuleReader open();
descriptor: ()Ljava/lang/module/ModuleReader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleReferenceImpl.readerSupplier:Ljava/util/function/Supplier;
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.lang.module.ModuleReader
1: areturn
2: StackMap locals:
StackMap stack: java.io.UncheckedIOException
astore 1
start local 1 3: aload 1
invokevirtual java.io.UncheckedIOException.getCause:()Ljava/io/IOException;
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/module/ModuleReferenceImpl;
3 4 1 e Ljava/io/UncheckedIOException;
Exception table:
from to target type
0 1 2 Class java.io.UncheckedIOException
Exceptions:
throws java.io.IOException
public boolean isPatched();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleReferenceImpl.patcher:Ljdk/internal/module/ModulePatcher;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/module/ModuleReferenceImpl;
public jdk.internal.module.ModuleTarget moduleTarget();
descriptor: ()Ljdk/internal/module/ModuleTarget;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleReferenceImpl.target:Ljdk/internal/module/ModuleTarget;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModuleReferenceImpl;
public jdk.internal.module.ModuleHashes recordedHashes();
descriptor: ()Ljdk/internal/module/ModuleHashes;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleReferenceImpl.recordedHashes:Ljdk/internal/module/ModuleHashes;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModuleReferenceImpl;
jdk.internal.module.ModuleHashes$HashSupplier hasher();
descriptor: ()Ljdk/internal/module/ModuleHashes$HashSupplier;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleReferenceImpl.hasher:Ljdk/internal/module/ModuleHashes$HashSupplier;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModuleReferenceImpl;
public jdk.internal.module.ModuleResolution moduleResolution();
descriptor: ()Ljdk/internal/module/ModuleResolution;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleReferenceImpl.moduleResolution:Ljdk/internal/module/ModuleResolution;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/ModuleReferenceImpl;
public byte[] computeHash(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.module.ModuleReferenceImpl.cachedHash:[B
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
areturn
3: StackMap locals: byte[]
StackMap stack:
aload 0
getfield jdk.internal.module.ModuleReferenceImpl.hasher:Ljdk/internal/module/ModuleHashes$HashSupplier;
ifnonnull 5
4: aconst_null
areturn
5: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.internal.module.ModuleReferenceImpl.hasher:Ljdk/internal/module/ModuleHashes$HashSupplier;
aload 1
invokeinterface jdk.internal.module.ModuleHashes$HashSupplier.generate:(Ljava/lang/String;)[B
dup
astore 2
putfield jdk.internal.module.ModuleReferenceImpl.cachedHash:[B
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/module/ModuleReferenceImpl;
0 7 1 algorithm Ljava/lang/String;
1 7 2 result [B
MethodParameters:
Name Flags
algorithm
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.module.ModuleReferenceImpl.hash:I
istore 1
start local 1 1: iload 1
ifne 8
2: aload 0
invokevirtual jdk.internal.module.ModuleReferenceImpl.descriptor:()Ljava/lang/module/ModuleDescriptor;
invokevirtual java.lang.module.ModuleDescriptor.hashCode:()I
istore 1
3: bipush 43
iload 1
imul
aload 0
getfield jdk.internal.module.ModuleReferenceImpl.location:Ljava/net/URI;
invokestatic java.util.Objects.hashCode:(Ljava/lang/Object;)I
iadd
istore 1
4: bipush 43
iload 1
imul
aload 0
getfield jdk.internal.module.ModuleReferenceImpl.patcher:Ljdk/internal/module/ModulePatcher;
invokestatic java.util.Objects.hashCode:(Ljava/lang/Object;)I
iadd
istore 1
5: iload 1
ifne 7
6: iconst_m1
istore 1
7: StackMap locals: int
StackMap stack:
aload 0
iload 1
putfield jdk.internal.module.ModuleReferenceImpl.hash:I
8: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/module/ModuleReferenceImpl;
1 9 1 hc I
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof jdk.internal.module.ModuleReferenceImpl
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
checkcast jdk.internal.module.ModuleReferenceImpl
astore 2
start local 2 3: aload 0
invokevirtual jdk.internal.module.ModuleReferenceImpl.descriptor:()Ljava/lang/module/ModuleDescriptor;
aload 2
invokevirtual jdk.internal.module.ModuleReferenceImpl.descriptor:()Ljava/lang/module/ModuleDescriptor;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 7
4: aload 0
getfield jdk.internal.module.ModuleReferenceImpl.location:Ljava/net/URI;
aload 2
getfield jdk.internal.module.ModuleReferenceImpl.location:Ljava/net/URI;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 7
5: aload 0
getfield jdk.internal.module.ModuleReferenceImpl.patcher:Ljdk/internal/module/ModulePatcher;
aload 2
getfield jdk.internal.module.ModuleReferenceImpl.patcher:Ljdk/internal/module/ModulePatcher;
invokestatic java.util.Objects.equals:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 7
6: iconst_1
ireturn
StackMap locals: jdk.internal.module.ModuleReferenceImpl
StackMap stack:
7: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/module/ModuleReferenceImpl;
0 8 1 ob Ljava/lang/Object;
3 8 2 that Ljdk/internal/module/ModuleReferenceImpl;
MethodParameters:
Name Flags
ob
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 1
ldc "[module "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 1
aload 0
invokevirtual jdk.internal.module.ModuleReferenceImpl.descriptor:()Ljava/lang/module/ModuleDescriptor;
invokevirtual java.lang.module.ModuleDescriptor.name:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
3: aload 1
ldc ", location="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
4: aload 1
aload 0
getfield jdk.internal.module.ModuleReferenceImpl.location:Ljava/net/URI;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
5: aload 0
invokevirtual jdk.internal.module.ModuleReferenceImpl.isPatched:()Z
ifeq 6
aload 1
ldc " (patched)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: StackMap locals: java.lang.StringBuilder
StackMap stack:
aload 1
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/module/ModuleReferenceImpl;
1 8 1 sb Ljava/lang/StringBuilder;
}
SourceFile: "ModuleReferenceImpl.java"
InnerClasses:
public abstract HashSupplier = jdk.internal.module.ModuleHashes$HashSupplier of jdk.internal.module.ModuleHashes