public class jdk.tools.jlink.internal.plugins.StringSharingPlugin extends jdk.tools.jlink.internal.plugins.AbstractPlugin implements jdk.tools.jlink.internal.ResourcePrevisitor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.tools.jlink.internal.plugins.StringSharingPlugin
super_class: jdk.tools.jlink.internal.plugins.AbstractPlugin
{
private static final int[] SIZES;
descriptor: [I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private java.util.function.Predicate<java.lang.String> predicate;
descriptor: Ljava/util/function/Predicate;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/function/Predicate<Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: invokestatic jdk.internal.jimage.decompressor.StringSharingDecompressor.getSizes:()[I
putstatic jdk.tools.jlink.internal.plugins.StringSharingPlugin.SIZES:[I
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokedynamic test()Ljava/util/function/Predicate;
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;)Z
jdk/tools/jlink/internal/plugins/StringSharingPlugin.lambda$0(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
invokespecial jdk.tools.jlink.internal.plugins.StringSharingPlugin.<init>:(Ljava/util/function/Predicate;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
void <init>(java.util.function.Predicate<java.lang.String>);
descriptor: (Ljava/util/function/Predicate;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "compact-cp"
invokespecial jdk.tools.jlink.internal.plugins.AbstractPlugin.<init>:(Ljava/lang/String;)V
1: aload 0
aload 1
putfield jdk.tools.jlink.internal.plugins.StringSharingPlugin.predicate:Ljava/util/function/Predicate;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
0 3 1 predicate Ljava/util/function/Predicate<Ljava/lang/String;>;
Signature: (Ljava/util/function/Predicate<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
predicate
public jdk.tools.jlink.plugin.Plugin$Category getType();
descriptor: ()Ljdk/tools/jlink/plugin/Plugin$Category;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic jdk.tools.jlink.plugin.Plugin$Category.COMPRESSOR:Ljdk/tools/jlink/plugin/Plugin$Category;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
public jdk.tools.jlink.plugin.ResourcePool transform(jdk.tools.jlink.plugin.ResourcePool, jdk.tools.jlink.plugin.ResourcePoolBuilder);
descriptor: (Ljdk/tools/jlink/plugin/ResourcePool;Ljdk/tools/jlink/plugin/ResourcePoolBuilder;)Ljdk/tools/jlink/plugin/ResourcePool;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new jdk.tools.jlink.internal.plugins.StringSharingPlugin$CompactCPHelper
dup
invokespecial jdk.tools.jlink.internal.plugins.StringSharingPlugin$CompactCPHelper.<init>:()V
astore 3
start local 3 1: aload 1
aload 0
aload 3
aload 2
aload 1
invokedynamic apply(Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;Ljdk/tools/jlink/internal/plugins/StringSharingPlugin$CompactCPHelper;Ljdk/tools/jlink/plugin/ResourcePoolBuilder;Ljdk/tools/jlink/plugin/ResourcePool;)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/tools/jlink/internal/plugins/StringSharingPlugin.lambda$1(Ljdk/tools/jlink/internal/plugins/StringSharingPlugin$CompactCPHelper;Ljdk/tools/jlink/plugin/ResourcePoolBuilder;Ljdk/tools/jlink/plugin/ResourcePool;Ljdk/tools/jlink/plugin/ResourcePoolEntry;)Ljdk/tools/jlink/plugin/ResourcePoolEntry; (7)
(Ljdk/tools/jlink/plugin/ResourcePoolEntry;)Ljdk/tools/jlink/plugin/ResourcePoolEntry;
2: aload 2
3: invokeinterface jdk.tools.jlink.plugin.ResourcePool.transformAndCopy:(Ljava/util/function/Function;Ljdk/tools/jlink/plugin/ResourcePoolBuilder;)V
4: aload 2
invokeinterface jdk.tools.jlink.plugin.ResourcePoolBuilder.build:()Ljdk/tools/jlink/plugin/ResourcePool;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
0 5 1 in Ljdk/tools/jlink/plugin/ResourcePool;
0 5 2 result Ljdk/tools/jlink/plugin/ResourcePoolBuilder;
1 5 3 visit Ljdk/tools/jlink/internal/plugins/StringSharingPlugin$CompactCPHelper;
MethodParameters:
Name Flags
in
result
public boolean hasArguments();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
public void configure(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
invokevirtual jdk.tools.jlink.internal.plugins.StringSharingPlugin.getName:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
invokestatic jdk.tools.jlink.internal.plugins.ResourceFilter.includeFilter:(Ljava/lang/String;)Ljdk/tools/jlink/internal/plugins/ResourceFilter;
putfield jdk.tools.jlink.internal.plugins.StringSharingPlugin.predicate:Ljava/util/function/Predicate;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
0 2 1 config Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
config
public void previsit(jdk.tools.jlink.plugin.ResourcePool, jdk.tools.jlink.internal.StringTable);
descriptor: (Ljdk/tools/jlink/plugin/ResourcePool;Ljdk/tools/jlink/internal/StringTable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new jdk.tools.jlink.internal.plugins.StringSharingPlugin$CompactCPHelper
dup
invokespecial jdk.tools.jlink.internal.plugins.StringSharingPlugin$CompactCPHelper.<init>:()V
astore 3
start local 3 1: aload 1
invokeinterface jdk.tools.jlink.plugin.ResourcePool.entries:()Ljava/util/stream/Stream;
aload 0
aload 3
aload 2
invokedynamic accept(Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;Ljdk/tools/jlink/internal/plugins/StringSharingPlugin$CompactCPHelper;Ljdk/tools/jlink/internal/StringTable;)Ljava/util/function/Consumer;
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;)V
jdk/tools/jlink/internal/plugins/StringSharingPlugin.lambda$2(Ljdk/tools/jlink/internal/plugins/StringSharingPlugin$CompactCPHelper;Ljdk/tools/jlink/internal/StringTable;Ljdk/tools/jlink/plugin/ResourcePoolEntry;)V (7)
(Ljdk/tools/jlink/plugin/ResourcePoolEntry;)V
invokeinterface java.util.stream.Stream.forEach:(Ljava/util/function/Consumer;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
0 3 1 resources Ljdk/tools/jlink/plugin/ResourcePool;
0 3 2 strings Ljdk/tools/jlink/internal/StringTable;
1 3 3 preVisit Ljdk/tools/jlink/internal/plugins/StringSharingPlugin$CompactCPHelper;
MethodParameters:
Name Flags
resources
strings
private static boolean lambda$0(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 path Ljava/lang/String;
private jdk.tools.jlink.plugin.ResourcePoolEntry lambda$1(jdk.tools.jlink.internal.plugins.StringSharingPlugin$CompactCPHelper, jdk.tools.jlink.plugin.ResourcePoolBuilder, jdk.tools.jlink.plugin.ResourcePool, jdk.tools.jlink.plugin.ResourcePoolEntry);
descriptor: (Ljdk/tools/jlink/internal/plugins/StringSharingPlugin$CompactCPHelper;Ljdk/tools/jlink/plugin/ResourcePoolBuilder;Ljdk/tools/jlink/plugin/ResourcePool;Ljdk/tools/jlink/plugin/ResourcePoolEntry;)Ljdk/tools/jlink/plugin/ResourcePoolEntry;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=8, args_size=5
start local 0 start local 4 0: aload 4
astore 5
start local 5 1: aload 0
getfield jdk.tools.jlink.internal.plugins.StringSharingPlugin.predicate:Ljava/util/function/Predicate;
aload 4
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.path:()Ljava/lang/String;
invokeinterface java.util.function.Predicate.test:(Ljava/lang/Object;)Z
ifeq 11
aload 4
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.path:()Ljava/lang/String;
ldc ".class"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 11
2: aconst_null
astore 6
start local 6 3: aload 1
aload 4
aload 2
aload 3
checkcast jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolImpl
invokevirtual jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolImpl.getStringTable:()Ljdk/tools/jlink/internal/StringTable;
invokevirtual jdk.tools.jlink.internal.plugins.StringSharingPlugin$CompactCPHelper.transform:(Ljdk/tools/jlink/plugin/ResourcePoolEntry;Ljdk/tools/jlink/plugin/ResourcePoolBuilder;Ljdk/tools/jlink/internal/StringTable;)[B
astore 6
4: goto 7
StackMap locals: jdk.tools.jlink.internal.plugins.StringSharingPlugin jdk.tools.jlink.internal.plugins.StringSharingPlugin$CompactCPHelper jdk.tools.jlink.plugin.ResourcePoolBuilder jdk.tools.jlink.plugin.ResourcePool jdk.tools.jlink.plugin.ResourcePoolEntry jdk.tools.jlink.plugin.ResourcePoolEntry byte[]
StackMap stack: java.lang.Exception
5: astore 7
start local 7 6: new jdk.tools.jlink.plugin.PluginException
dup
aload 7
invokespecial jdk.tools.jlink.plugin.PluginException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 7 7: StackMap locals:
StackMap stack:
aload 4
8: aload 6
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
aload 0
invokevirtual jdk.tools.jlink.internal.plugins.StringSharingPlugin.getName:()Ljava/lang/String;
aconst_null
9: aload 3
checkcast jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolImpl
invokevirtual jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolImpl.getStringTable:()Ljdk/tools/jlink/internal/StringTable;
aload 3
invokeinterface jdk.tools.jlink.plugin.ResourcePool.byteOrder:()Ljava/nio/ByteOrder;
10: invokestatic jdk.tools.jlink.internal.ResourcePoolManager.newCompressedResource:(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;
astore 5
end local 6 11: StackMap locals:
StackMap stack:
aload 5
areturn
end local 5 end local 4 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
0 12 4 resource Ljdk/tools/jlink/plugin/ResourcePoolEntry;
1 12 5 res Ljdk/tools/jlink/plugin/ResourcePoolEntry;
3 11 6 compressed [B
6 7 7 ex Ljava/lang/Exception;
Exception table:
from to target type
3 4 5 Class java.lang.Exception
private void lambda$2(jdk.tools.jlink.internal.plugins.StringSharingPlugin$CompactCPHelper, jdk.tools.jlink.internal.StringTable, jdk.tools.jlink.plugin.ResourcePoolEntry);
descriptor: (Ljdk/tools/jlink/internal/plugins/StringSharingPlugin$CompactCPHelper;Ljdk/tools/jlink/internal/StringTable;Ljdk/tools/jlink/plugin/ResourcePoolEntry;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 3 0: aload 3
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.type:()Ljdk/tools/jlink/plugin/ResourcePoolEntry$Type;
getstatic jdk.tools.jlink.plugin.ResourcePoolEntry$Type.CLASS_OR_RESOURCE:Ljdk/tools/jlink/plugin/ResourcePoolEntry$Type;
invokevirtual jdk.tools.jlink.plugin.ResourcePoolEntry$Type.equals:(Ljava/lang/Object;)Z
ifeq 6
1: aload 3
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.path:()Ljava/lang/String;
ldc ".class"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 6
aload 0
getfield jdk.tools.jlink.internal.plugins.StringSharingPlugin.predicate:Ljava/util/function/Predicate;
aload 3
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.path:()Ljava/lang/String;
invokeinterface java.util.function.Predicate.test:(Ljava/lang/Object;)Z
ifeq 6
2: aload 1
aload 3
aconst_null
aload 2
invokevirtual jdk.tools.jlink.internal.plugins.StringSharingPlugin$CompactCPHelper.transform:(Ljdk/tools/jlink/plugin/ResourcePoolEntry;Ljdk/tools/jlink/plugin/ResourcePoolBuilder;Ljdk/tools/jlink/internal/StringTable;)[B
pop
3: goto 6
StackMap locals:
StackMap stack: java.lang.Exception
4: astore 4
start local 4 5: new jdk.tools.jlink.plugin.PluginException
dup
aload 4
invokespecial jdk.tools.jlink.plugin.PluginException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 6: StackMap locals:
StackMap stack:
return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
0 7 3 resource Ljdk/tools/jlink/plugin/ResourcePoolEntry;
5 6 4 ex Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
}
SourceFile: "StringSharingPlugin.java"
NestMembers:
jdk.tools.jlink.internal.plugins.StringSharingPlugin$CompactCPHelper jdk.tools.jlink.internal.plugins.StringSharingPlugin$CompactCPHelper$DescriptorsScanner
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final CompressedModuleData = jdk.tools.jlink.internal.ResourcePoolManager$CompressedModuleData of jdk.tools.jlink.internal.ResourcePoolManager
public ResourcePoolImpl = jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolImpl of jdk.tools.jlink.internal.ResourcePoolManager
private final CompactCPHelper = jdk.tools.jlink.internal.plugins.StringSharingPlugin$CompactCPHelper of jdk.tools.jlink.internal.plugins.StringSharingPlugin
public final Category = jdk.tools.jlink.plugin.Plugin$Category of jdk.tools.jlink.plugin.Plugin
public final Type = jdk.tools.jlink.plugin.ResourcePoolEntry$Type of jdk.tools.jlink.plugin.ResourcePoolEntry