public class jdk.tools.jlink.internal.ResourcePoolManager
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.tools.jlink.internal.ResourcePoolManager
super_class: java.lang.Object
{
private final java.util.Map<java.lang.String, jdk.tools.jlink.plugin.ResourcePoolEntry> resources;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljdk/tools/jlink/plugin/ResourcePoolEntry;>;
private final java.util.Map<java.lang.String, jdk.tools.jlink.plugin.ResourcePoolModule> modules;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljdk/tools/jlink/plugin/ResourcePoolModule;>;
private final java.nio.ByteOrder order;
descriptor: Ljava/nio/ByteOrder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.tools.jlink.internal.StringTable table;
descriptor: Ljdk/tools/jlink/internal/StringTable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.tools.jlink.plugin.ResourcePool poolImpl;
descriptor: Ljdk/tools/jlink/plugin/ResourcePool;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.tools.jlink.plugin.ResourcePoolBuilder poolBuilderImpl;
descriptor: Ljdk/tools/jlink/plugin/ResourcePoolBuilder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.tools.jlink.plugin.ResourcePoolModuleView moduleViewImpl;
descriptor: Ljdk/tools/jlink/plugin/ResourcePoolModuleView;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static jdk.internal.module.ModuleInfo$Attributes readModuleAttributes(jdk.tools.jlink.plugin.ResourcePoolModule);
descriptor: (Ljdk/tools/jlink/plugin/ResourcePoolModule;)Ljdk/internal/module/ModuleInfo$Attributes;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokeinterface jdk.tools.jlink.plugin.ResourcePoolModule.name:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "/module-info.class"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 1
start local 1 1: aload 0
aload 1
invokeinterface jdk.tools.jlink.plugin.ResourcePoolModule.findEntry:(Ljava/lang/String;)Ljava/util/Optional;
astore 2
start local 2 2: aload 2
invokevirtual java.util.Optional.isPresent:()Z
ifne 6
3: new jdk.tools.jlink.plugin.PluginException
dup
new java.lang.StringBuilder
dup
ldc "module-info.class not found for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: aload 0
invokeinterface jdk.tools.jlink.plugin.ResourcePoolModule.name:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " module"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial jdk.tools.jlink.plugin.PluginException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: java.lang.String java.util.Optional
StackMap stack:
aload 2
invokevirtual java.util.Optional.get:()Ljava/lang/Object;
checkcast jdk.tools.jlink.plugin.ResourcePoolEntry
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.contentBytes:()[B
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
astore 3
start local 3 7: aload 3
aconst_null
invokestatic jdk.internal.module.ModuleInfo.read:(Ljava/nio/ByteBuffer;Ljava/util/function/Supplier;)Ljdk/internal/module/ModuleInfo$Attributes;
8: areturn
9: StackMap locals: jdk.tools.jlink.plugin.ResourcePoolModule java.lang.String java.util.Optional java.nio.ByteBuffer
StackMap stack: java.lang.RuntimeException
astore 4
start local 4 10: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "module info cannot be read for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokeinterface jdk.tools.jlink.plugin.ResourcePoolModule.name:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 mod Ljdk/tools/jlink/plugin/ResourcePoolModule;
1 11 1 p Ljava/lang/String;
2 11 2 content Ljava/util/Optional<Ljdk/tools/jlink/plugin/ResourcePoolEntry;>;
7 11 3 bb Ljava/nio/ByteBuffer;
10 11 4 re Ljava/lang/RuntimeException;
Exception table:
from to target type
7 8 9 Class java.lang.RuntimeException
MethodParameters:
Name Flags
mod
public static boolean isNamedPackageResource(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc ".class"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 1
aload 0
ldc "module-info.class"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 3
1: StackMap locals:
StackMap stack:
aload 0
invokestatic jdk.internal.module.Resources.canEncapsulate:(Ljava/lang/String;)Z
ifne 3
2: iconst_0
ireturn
StackMap locals:
StackMap stack:
3: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 path Ljava/lang/String;
MethodParameters:
Name Flags
path
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.nio.ByteOrder.nativeOrder:()Ljava/nio/ByteOrder;
invokespecial jdk.tools.jlink.internal.ResourcePoolManager.<init>:(Ljava/nio/ByteOrder;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
public void <init>(java.nio.ByteOrder);
descriptor: (Ljava/nio/ByteOrder;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
new jdk.tools.jlink.internal.ResourcePoolManager$1
dup
invokespecial jdk.tools.jlink.internal.ResourcePoolManager$1.<init>:()V
invokespecial jdk.tools.jlink.internal.ResourcePoolManager.<init>:(Ljava/nio/ByteOrder;Ljdk/tools/jlink/internal/StringTable;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
0 2 1 order Ljava/nio/ByteOrder;
MethodParameters:
Name Flags
order
public void <init>(java.nio.ByteOrder, jdk.tools.jlink.internal.StringTable);
descriptor: (Ljava/nio/ByteOrder;Ljdk/tools/jlink/internal/StringTable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, 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
new java.util.LinkedHashMap
dup
invokespecial java.util.LinkedHashMap.<init>:()V
putfield jdk.tools.jlink.internal.ResourcePoolManager.resources:Ljava/util/Map;
2: aload 0
new java.util.LinkedHashMap
dup
invokespecial java.util.LinkedHashMap.<init>:()V
putfield jdk.tools.jlink.internal.ResourcePoolManager.modules:Ljava/util/Map;
3: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.nio.ByteOrder
putfield jdk.tools.jlink.internal.ResourcePoolManager.order:Ljava/nio/ByteOrder;
4: aload 0
aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.tools.jlink.internal.StringTable
putfield jdk.tools.jlink.internal.ResourcePoolManager.table:Ljdk/tools/jlink/internal/StringTable;
5: aload 0
new jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolImpl
dup
aload 0
invokespecial jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolImpl.<init>:(Ljdk/tools/jlink/internal/ResourcePoolManager;)V
putfield jdk.tools.jlink.internal.ResourcePoolManager.poolImpl:Ljdk/tools/jlink/plugin/ResourcePool;
6: aload 0
new jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolBuilderImpl
dup
aload 0
invokespecial jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolBuilderImpl.<init>:(Ljdk/tools/jlink/internal/ResourcePoolManager;)V
putfield jdk.tools.jlink.internal.ResourcePoolManager.poolBuilderImpl:Ljdk/tools/jlink/plugin/ResourcePoolBuilder;
7: aload 0
new jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolModuleViewImpl
dup
aload 0
invokespecial jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolModuleViewImpl.<init>:(Ljdk/tools/jlink/internal/ResourcePoolManager;)V
putfield jdk.tools.jlink.internal.ResourcePoolManager.moduleViewImpl:Ljdk/tools/jlink/plugin/ResourcePoolModuleView;
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
0 9 1 order Ljava/nio/ByteOrder;
0 9 2 table Ljdk/tools/jlink/internal/StringTable;
MethodParameters:
Name Flags
order
table
public jdk.tools.jlink.plugin.ResourcePool resourcePool();
descriptor: ()Ljdk/tools/jlink/plugin/ResourcePool;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.ResourcePoolManager.poolImpl:Ljdk/tools/jlink/plugin/ResourcePool;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
public jdk.tools.jlink.plugin.ResourcePoolBuilder resourcePoolBuilder();
descriptor: ()Ljdk/tools/jlink/plugin/ResourcePoolBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.ResourcePoolManager.poolBuilderImpl:Ljdk/tools/jlink/plugin/ResourcePoolBuilder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
public jdk.tools.jlink.plugin.ResourcePoolModuleView moduleView();
descriptor: ()Ljdk/tools/jlink/plugin/ResourcePoolModuleView;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.ResourcePoolManager.moduleViewImpl:Ljdk/tools/jlink/plugin/ResourcePoolModuleView;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
public void add(jdk.tools.jlink.plugin.ResourcePoolEntry);
descriptor: (Ljdk/tools/jlink/plugin/ResourcePoolEntry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, 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.tools.jlink.internal.ResourcePoolManager.resources:Ljava/util/Map;
aload 1
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.path:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 5
2: new jdk.tools.jlink.plugin.PluginException
dup
new java.lang.StringBuilder
dup
ldc "Resource "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.path:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: ldc " already present"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: invokespecial jdk.tools.jlink.plugin.PluginException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 1
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.moduleName:()Ljava/lang/String;
astore 2
start local 2 6: aload 0
getfield jdk.tools.jlink.internal.ResourcePoolManager.modules:Ljava/util/Map;
aload 2
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolModuleImpl
astore 3
start local 3 7: aload 3
ifnonnull 10
8: new jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolModuleImpl
dup
aload 0
aload 2
invokespecial jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolModuleImpl.<init>:(Ljdk/tools/jlink/internal/ResourcePoolManager;Ljava/lang/String;)V
astore 3
9: aload 0
getfield jdk.tools.jlink.internal.ResourcePoolManager.modules:Ljava/util/Map;
aload 2
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: StackMap locals: java.lang.String jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolModuleImpl
StackMap stack:
aload 0
getfield jdk.tools.jlink.internal.ResourcePoolManager.resources:Ljava/util/Map;
aload 1
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.path:()Ljava/lang/String;
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
11: aload 3
getfield jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolModuleImpl.moduleContent:Ljava/util/Map;
aload 1
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.path:()Ljava/lang/String;
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
0 13 1 data Ljdk/tools/jlink/plugin/ResourcePoolEntry;
6 13 2 modulename Ljava/lang/String;
7 13 3 m Ljdk/tools/jlink/internal/ResourcePoolManager$ResourcePoolModuleImpl;
MethodParameters:
Name Flags
data
public java.util.Optional<jdk.tools.jlink.plugin.ResourcePoolModule> findModule(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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.tools.jlink.internal.ResourcePoolManager.modules:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.tools.jlink.plugin.ResourcePoolModule
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
0 2 1 name Ljava/lang/String;
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljdk/tools/jlink/plugin/ResourcePoolModule;>;
MethodParameters:
Name Flags
name
public java.util.stream.Stream<jdk.tools.jlink.plugin.ResourcePoolModule> modules();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.ResourcePoolManager.modules:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
Signature: ()Ljava/util/stream/Stream<Ljdk/tools/jlink/plugin/ResourcePoolModule;>;
public int moduleCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.ResourcePoolManager.modules:Ljava/util/Map;
invokeinterface java.util.Map.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
public java.util.stream.Stream<jdk.tools.jlink.plugin.ResourcePoolEntry> entries();
descriptor: ()Ljava/util/stream/Stream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.ResourcePoolManager.resources:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.stream:()Ljava/util/stream/Stream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
Signature: ()Ljava/util/stream/Stream<Ljdk/tools/jlink/plugin/ResourcePoolEntry;>;
public int entryCount();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.ResourcePoolManager.resources:Ljava/util/Map;
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
public java.util.Optional<jdk.tools.jlink.plugin.ResourcePoolEntry> findEntry(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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.tools.jlink.internal.ResourcePoolManager.resources:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.tools.jlink.plugin.ResourcePoolEntry
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
0 2 1 path Ljava/lang/String;
Signature: (Ljava/lang/String;)Ljava/util/Optional<Ljdk/tools/jlink/plugin/ResourcePoolEntry;>;
MethodParameters:
Name Flags
path
public java.util.Optional<jdk.tools.jlink.plugin.ResourcePoolEntry> findEntryInContext(java.lang.String, jdk.tools.jlink.plugin.ResourcePoolEntry);
descriptor: (Ljava/lang/String;Ljdk/tools/jlink/plugin/ResourcePoolEntry;)Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 0
getfield jdk.tools.jlink.internal.ResourcePoolManager.modules:Ljava/util/Map;
aload 2
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.moduleName:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.tools.jlink.plugin.ResourcePoolModule
astore 3
start local 3 3: aload 3
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
4: aload 3
aload 1
invokeinterface jdk.tools.jlink.plugin.ResourcePoolModule.findEntry:(Ljava/lang/String;)Ljava/util/Optional;
astore 4
start local 4 5: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
0 6 1 path Ljava/lang/String;
0 6 2 context Ljdk/tools/jlink/plugin/ResourcePoolEntry;
3 6 3 module Ljdk/tools/jlink/plugin/ResourcePoolModule;
5 6 4 entry Ljava/util/Optional<Ljdk/tools/jlink/plugin/ResourcePoolEntry;>;
Signature: (Ljava/lang/String;Ljdk/tools/jlink/plugin/ResourcePoolEntry;)Ljava/util/Optional<Ljdk/tools/jlink/plugin/ResourcePoolEntry;>;
MethodParameters:
Name Flags
path
context
public boolean contains(jdk.tools.jlink.plugin.ResourcePoolEntry);
descriptor: (Ljdk/tools/jlink/plugin/ResourcePoolEntry;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, 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
aload 1
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.path:()Ljava/lang/String;
invokevirtual jdk.tools.jlink.internal.ResourcePoolManager.findEntry:(Ljava/lang/String;)Ljava/util/Optional;
invokevirtual java.util.Optional.isPresent:()Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
0 2 1 data Ljdk/tools/jlink/plugin/ResourcePoolEntry;
MethodParameters:
Name Flags
data
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.ResourcePoolManager.resources:Ljava/util/Map;
invokeinterface java.util.Map.isEmpty:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
public java.nio.ByteOrder byteOrder();
descriptor: ()Ljava/nio/ByteOrder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.ResourcePoolManager.order:Ljava/nio/ByteOrder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
public jdk.tools.jlink.internal.StringTable getStringTable();
descriptor: ()Ljdk/tools/jlink/internal/StringTable;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.ResourcePoolManager.table:Ljdk/tools/jlink/internal/StringTable;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ResourcePoolManager;
public static jdk.tools.jlink.internal.ResourcePoolManager$CompressedModuleData newCompressedResource(jdk.tools.jlink.plugin.ResourcePoolEntry, java.nio.ByteBuffer, java.lang.String, java.lang.String, jdk.tools.jlink.internal.StringTable, java.nio.ByteOrder);
descriptor: (Ljdk/tools/jlink/plugin/ResourcePoolEntry;Ljava/nio/ByteBuffer;Ljava/lang/String;Ljava/lang/String;Ljdk/tools/jlink/internal/StringTable;Ljava/nio/ByteOrder;)Ljdk/tools/jlink/internal/ResourcePoolManager$CompressedModuleData;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=9, locals=16, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 0
instanceof jdk.tools.jlink.internal.ResourcePoolManager$CompressedModuleData
ifeq 4
iconst_0
goto 5
StackMap locals:
StackMap stack:
4: iconst_1
StackMap locals:
StackMap stack: int
5: istore 6
start local 6 6: aload 0
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.contentLength:()J
lstore 7
start local 7 7: aload 0
instanceof jdk.tools.jlink.internal.ResourcePoolManager$CompressedModuleData
ifeq 10
8: aload 0
checkcast jdk.tools.jlink.internal.ResourcePoolManager$CompressedModuleData
astore 9
start local 9 9: aload 9
invokevirtual jdk.tools.jlink.internal.ResourcePoolManager$CompressedModuleData.getUncompressedSize:()J
lstore 7
end local 9 10: StackMap locals: int long
StackMap stack:
aload 4
aload 2
invokeinterface jdk.tools.jlink.internal.StringTable.addString:(Ljava/lang/String;)I
istore 9
start local 9 11: iconst_m1
istore 10
start local 10 12: aload 3
ifnull 14
13: aload 4
aload 2
invokeinterface jdk.tools.jlink.internal.StringTable.addString:(Ljava/lang/String;)I
istore 10
14: StackMap locals: int int
StackMap stack:
new jdk.internal.jimage.decompressor.CompressedResourceHeader
dup
aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
i2l
aload 0
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.contentLength:()J
15: iload 9
iload 10
iload 6
16: invokespecial jdk.internal.jimage.decompressor.CompressedResourceHeader.<init>:(JJIIZ)V
17: astore 11
start local 11 18: aload 11
aload 5
invokevirtual jdk.internal.jimage.decompressor.CompressedResourceHeader.getBytes:(Ljava/nio/ByteOrder;)[B
astore 12
start local 12 19: aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
aload 12
arraylength
iadd
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 13
start local 13 20: aload 13
aload 5
invokevirtual java.nio.ByteBuffer.order:(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer;
pop
21: aload 13
aload 12
invokevirtual java.nio.ByteBuffer.put:([B)Ljava/nio/ByteBuffer;
pop
22: aload 13
aload 1
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
pop
23: aload 13
invokevirtual java.nio.ByteBuffer.array:()[B
astore 14
start local 14 24: new jdk.tools.jlink.internal.ResourcePoolManager$CompressedModuleData
dup
aload 0
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.moduleName:()Ljava/lang/String;
aload 0
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.path:()Ljava/lang/String;
25: aload 14
lload 7
26: invokespecial jdk.tools.jlink.internal.ResourcePoolManager$CompressedModuleData.<init>:(Ljava/lang/String;Ljava/lang/String;[BJ)V
27: astore 15
start local 15 28: aload 15
areturn
end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 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 29 0 original Ljdk/tools/jlink/plugin/ResourcePoolEntry;
0 29 1 compressed Ljava/nio/ByteBuffer;
0 29 2 plugin Ljava/lang/String;
0 29 3 pluginConfig Ljava/lang/String;
0 29 4 strings Ljdk/tools/jlink/internal/StringTable;
0 29 5 order Ljava/nio/ByteOrder;
6 29 6 isTerminal Z
7 29 7 uncompressed_size J
9 10 9 comp Ljdk/tools/jlink/internal/ResourcePoolManager$CompressedModuleData;
11 29 9 nameOffset I
12 29 10 configOffset I
18 29 11 rh Ljdk/internal/jimage/decompressor/CompressedResourceHeader;
19 29 12 h [B
20 29 13 bb Ljava/nio/ByteBuffer;
24 29 14 contentWithHeader [B
28 29 15 compressedResource Ljdk/tools/jlink/internal/ResourcePoolManager$CompressedModuleData;
MethodParameters:
Name Flags
original
compressed
plugin
pluginConfig
strings
order
}
SourceFile: "ResourcePoolManager.java"
NestMembers:
jdk.tools.jlink.internal.ResourcePoolManager$1 jdk.tools.jlink.internal.ResourcePoolManager$CompressedModuleData jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolBuilderImpl jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolImpl jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolModuleImpl jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolModuleViewImpl
InnerClasses:
public final Attributes = jdk.internal.module.ModuleInfo$Attributes of jdk.internal.module.ModuleInfo
jdk.tools.jlink.internal.ResourcePoolManager$1
public final CompressedModuleData = jdk.tools.jlink.internal.ResourcePoolManager$CompressedModuleData of jdk.tools.jlink.internal.ResourcePoolManager
ResourcePoolBuilderImpl = jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolBuilderImpl of jdk.tools.jlink.internal.ResourcePoolManager
public ResourcePoolImpl = jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolImpl of jdk.tools.jlink.internal.ResourcePoolManager
ResourcePoolModuleImpl = jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolModuleImpl of jdk.tools.jlink.internal.ResourcePoolManager
ResourcePoolModuleViewImpl = jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolModuleViewImpl of jdk.tools.jlink.internal.ResourcePoolManager