public final class jdk.tools.jlink.internal.plugins.ZipPlugin implements jdk.tools.jlink.plugin.Plugin
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.tools.jlink.internal.plugins.ZipPlugin
super_class: java.lang.Object
{
public static final java.lang.String NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "zip"
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;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jlink/internal/plugins/ZipPlugin;
void <init>(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokestatic jdk.tools.jlink.internal.plugins.ResourceFilter.includeFilter:(Ljava/util/List;)Ljdk/tools/jlink/internal/plugins/ResourceFilter;
invokespecial jdk.tools.jlink.internal.plugins.ZipPlugin.<init>:(Ljava/util/function/Predicate;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jlink/internal/plugins/ZipPlugin;
0 2 1 patterns [Ljava/lang/String;
MethodParameters:
Name Flags
patterns
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
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield jdk.tools.jlink.internal.plugins.ZipPlugin.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/ZipPlugin;
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 java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "zip"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/plugins/ZipPlugin;
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/ZipPlugin;
public java.lang.String getDescription();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "zip"
invokestatic jdk.tools.jlink.internal.plugins.PluginsResourceBundle.getDescription:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/plugins/ZipPlugin;
public boolean hasArguments();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/plugins/ZipPlugin;
public java.lang.String getArgumentsDescription();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "zip"
iconst_0
anewarray java.lang.Object
invokestatic jdk.tools.jlink.internal.plugins.PluginsResourceBundle.getArgument:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/plugins/ZipPlugin;
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
ldc "zip"
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.ZipPlugin.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/ZipPlugin;
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
static byte[] compress(byte[]);
descriptor: ([B)[B
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: new java.util.zip.Deflater
dup
invokespecial java.util.zip.Deflater.<init>:()V
astore 1
start local 1 1: aload 1
aload 0
invokevirtual java.util.zip.Deflater.setInput:([B)V
2: new java.io.ByteArrayOutputStream
dup
aload 0
arraylength
invokespecial java.io.ByteArrayOutputStream.<init>:(I)V
astore 2
start local 2 3: sipush 1024
newarray 8
astore 3
start local 3 4: aload 1
invokevirtual java.util.zip.Deflater.finish:()V
5: goto 8
6: StackMap locals: java.util.zip.Deflater java.io.ByteArrayOutputStream byte[]
StackMap stack:
aload 1
aload 3
invokevirtual java.util.zip.Deflater.deflate:([B)I
istore 4
start local 4 7: aload 2
aload 3
iconst_0
iload 4
invokevirtual java.io.ByteArrayOutputStream.write:([BII)V
end local 4 8: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.util.zip.Deflater.finished:()Z
ifeq 6
9: aload 2
invokevirtual java.io.ByteArrayOutputStream.close:()V
10: goto 13
StackMap locals:
StackMap stack: java.io.IOException
11: pop
12: aload 0
areturn
13: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
astore 4
start local 4 14: aload 1
invokevirtual java.util.zip.Deflater.end:()V
15: 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 16 0 bytesIn [B
1 16 1 deflater Ljava/util/zip/Deflater;
3 16 2 stream Ljava/io/ByteArrayOutputStream;
4 16 3 buffer [B
7 8 4 count I
14 16 4 bytesOut [B
Exception table:
from to target type
9 10 11 Class java.io.IOException
MethodParameters:
Name Flags
bytesIn
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=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 0
aload 1
invokedynamic apply(Ljdk/tools/jlink/internal/plugins/ZipPlugin;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/ZipPlugin.lambda$0(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;
1: aload 2
2: invokeinterface jdk.tools.jlink.plugin.ResourcePool.transformAndCopy:(Ljava/util/function/Function;Ljdk/tools/jlink/plugin/ResourcePoolBuilder;)V
3: aload 2
invokeinterface jdk.tools.jlink.plugin.ResourcePoolBuilder.build:()Ljdk/tools/jlink/plugin/ResourcePool;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/tools/jlink/internal/plugins/ZipPlugin;
0 4 1 in Ljdk/tools/jlink/plugin/ResourcePool;
0 4 2 out Ljdk/tools/jlink/plugin/ResourcePoolBuilder;
MethodParameters:
Name Flags
in
out
private jdk.tools.jlink.plugin.ResourcePoolEntry lambda$0(jdk.tools.jlink.plugin.ResourcePool, jdk.tools.jlink.plugin.ResourcePoolEntry);
descriptor: (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=5, args_size=3
start local 0 start local 2 0: aload 2
astore 3
start local 3 1: aload 2
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 8
2: aload 0
getfield jdk.tools.jlink.internal.plugins.ZipPlugin.predicate:Ljava/util/function/Predicate;
aload 2
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.path:()Ljava/lang/String;
invokeinterface java.util.function.Predicate.test:(Ljava/lang/Object;)Z
ifeq 8
3: aload 2
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.contentBytes:()[B
invokestatic jdk.tools.jlink.internal.plugins.ZipPlugin.compress:([B)[B
astore 4
start local 4 4: aload 2
5: aload 4
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
aload 0
invokevirtual jdk.tools.jlink.internal.plugins.ZipPlugin.getName:()Ljava/lang/String;
aconst_null
6: aload 1
checkcast jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolImpl
invokevirtual jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolImpl.getStringTable:()Ljdk/tools/jlink/internal/StringTable;
aload 1
invokeinterface jdk.tools.jlink.plugin.ResourcePool.byteOrder:()Ljava/nio/ByteOrder;
7: 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 3
end local 4 8: StackMap locals: jdk.tools.jlink.plugin.ResourcePoolEntry
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/tools/jlink/internal/plugins/ZipPlugin;
0 9 2 resource Ljdk/tools/jlink/plugin/ResourcePoolEntry;
1 9 3 res Ljdk/tools/jlink/plugin/ResourcePoolEntry;
4 8 4 compressed [B
}
SourceFile: "ZipPlugin.java"
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
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