public final class jdk.tools.jlink.internal.plugins.DefaultCompressPlugin implements jdk.tools.jlink.plugin.Plugin, jdk.tools.jlink.internal.ResourcePrevisitor
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.tools.jlink.internal.plugins.DefaultCompressPlugin
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: "compress"
public static final java.lang.String FILTER;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "filter"
public static final java.lang.String LEVEL_0;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "0"
public static final java.lang.String LEVEL_1;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "1"
public static final java.lang.String LEVEL_2;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "2"
private jdk.tools.jlink.internal.plugins.StringSharingPlugin ss;
descriptor: Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
flags: (0x0002) ACC_PRIVATE
private jdk.tools.jlink.internal.plugins.ZipPlugin zip;
descriptor: Ljdk/tools/jlink/internal/plugins/ZipPlugin;
flags: (0x0002) ACC_PRIVATE
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
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/plugins/DefaultCompressPlugin;
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 "compress"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/plugins/DefaultCompressPlugin;
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=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.tools.jlink.internal.plugins.DefaultCompressPlugin.ss:Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
ifnull 5
aload 0
getfield jdk.tools.jlink.internal.plugins.DefaultCompressPlugin.zip:Ljdk/tools/jlink/internal/plugins/ZipPlugin;
ifnull 5
1: new jdk.tools.jlink.internal.ImagePluginStack$OrderedResourcePoolManager
dup
2: aload 1
invokeinterface jdk.tools.jlink.plugin.ResourcePool.byteOrder:()Ljava/nio/ByteOrder;
aload 1
checkcast jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolImpl
invokevirtual jdk.tools.jlink.internal.ResourcePoolManager$ResourcePoolImpl.getStringTable:()Ljdk/tools/jlink/internal/StringTable;
3: invokespecial jdk.tools.jlink.internal.ImagePluginStack$OrderedResourcePoolManager.<init>:(Ljava/nio/ByteOrder;Ljdk/tools/jlink/internal/StringTable;)V
astore 3
start local 3 4: aload 0
getfield jdk.tools.jlink.internal.plugins.DefaultCompressPlugin.zip:Ljdk/tools/jlink/internal/plugins/ZipPlugin;
aload 0
getfield jdk.tools.jlink.internal.plugins.DefaultCompressPlugin.ss:Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
aload 1
aload 3
invokevirtual jdk.tools.jlink.internal.ResourcePoolManager.resourcePoolBuilder:()Ljdk/tools/jlink/plugin/ResourcePoolBuilder;
invokevirtual jdk.tools.jlink.internal.plugins.StringSharingPlugin.transform:(Ljdk/tools/jlink/plugin/ResourcePool;Ljdk/tools/jlink/plugin/ResourcePoolBuilder;)Ljdk/tools/jlink/plugin/ResourcePool;
aload 2
invokevirtual jdk.tools.jlink.internal.plugins.ZipPlugin.transform:(Ljdk/tools/jlink/plugin/ResourcePool;Ljdk/tools/jlink/plugin/ResourcePoolBuilder;)Ljdk/tools/jlink/plugin/ResourcePool;
areturn
end local 3 5: StackMap locals:
StackMap stack:
aload 0
getfield jdk.tools.jlink.internal.plugins.DefaultCompressPlugin.ss:Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
ifnull 7
6: aload 0
getfield jdk.tools.jlink.internal.plugins.DefaultCompressPlugin.ss:Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
aload 1
aload 2
invokevirtual jdk.tools.jlink.internal.plugins.StringSharingPlugin.transform:(Ljdk/tools/jlink/plugin/ResourcePool;Ljdk/tools/jlink/plugin/ResourcePoolBuilder;)Ljdk/tools/jlink/plugin/ResourcePool;
areturn
7: StackMap locals:
StackMap stack:
aload 0
getfield jdk.tools.jlink.internal.plugins.DefaultCompressPlugin.zip:Ljdk/tools/jlink/internal/plugins/ZipPlugin;
ifnull 9
8: aload 0
getfield jdk.tools.jlink.internal.plugins.DefaultCompressPlugin.zip:Ljdk/tools/jlink/internal/plugins/ZipPlugin;
aload 1
aload 2
invokevirtual jdk.tools.jlink.internal.plugins.ZipPlugin.transform:(Ljdk/tools/jlink/plugin/ResourcePool;Ljdk/tools/jlink/plugin/ResourcePoolBuilder;)Ljdk/tools/jlink/plugin/ResourcePool;
areturn
9: StackMap locals:
StackMap stack:
aload 1
invokestatic java.util.function.Function.identity:()Ljava/util/function/Function;
aload 2
invokeinterface jdk.tools.jlink.plugin.ResourcePool.transformAndCopy:(Ljava/util/function/Function;Ljdk/tools/jlink/plugin/ResourcePoolBuilder;)V
10: 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 11 0 this Ljdk/tools/jlink/internal/plugins/DefaultCompressPlugin;
0 11 1 in Ljdk/tools/jlink/plugin/ResourcePool;
0 11 2 out Ljdk/tools/jlink/plugin/ResourcePoolBuilder;
4 5 3 resMgr Ljdk/tools/jlink/internal/ResourcePoolManager;
MethodParameters:
Name Flags
in
out
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=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.tools.jlink.internal.plugins.DefaultCompressPlugin.ss:Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
ifnull 2
1: aload 0
getfield jdk.tools.jlink.internal.plugins.DefaultCompressPlugin.ss:Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
aload 1
aload 2
invokevirtual jdk.tools.jlink.internal.plugins.StringSharingPlugin.previsit:(Ljdk/tools/jlink/plugin/ResourcePool;Ljdk/tools/jlink/internal/StringTable;)V
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/tools/jlink/internal/plugins/DefaultCompressPlugin;
0 3 1 resources Ljdk/tools/jlink/plugin/ResourcePool;
0 3 2 strings Ljdk/tools/jlink/internal/StringTable;
MethodParameters:
Name Flags
resources
strings
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/DefaultCompressPlugin;
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 "compress"
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/DefaultCompressPlugin;
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/DefaultCompressPlugin;
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 "compress"
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/DefaultCompressPlugin;
public void configure(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ldc "filter"
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;
astore 2
start local 2 1: aload 1
ldc "compress"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 2: aload 3
ifnull 16
3: aload 3
dup
astore 4
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 3
48: 4
49: 5
50: 6
default: 14
}
StackMap locals: jdk.tools.jlink.internal.plugins.ResourceFilter java.lang.String java.lang.String
StackMap stack:
4: aload 4
ldc "0"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
goto 14
StackMap locals:
StackMap stack:
5: aload 4
ldc "1"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
goto 14
StackMap locals:
StackMap stack:
6: aload 4
ldc "2"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 12
goto 14
7: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield jdk.tools.jlink.internal.plugins.DefaultCompressPlugin.ss:Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
8: aload 0
aconst_null
putfield jdk.tools.jlink.internal.plugins.DefaultCompressPlugin.zip:Ljdk/tools/jlink/internal/plugins/ZipPlugin;
9: goto 17
10: StackMap locals:
StackMap stack:
aload 0
new jdk.tools.jlink.internal.plugins.StringSharingPlugin
dup
aload 2
invokespecial jdk.tools.jlink.internal.plugins.StringSharingPlugin.<init>:(Ljava/util/function/Predicate;)V
putfield jdk.tools.jlink.internal.plugins.DefaultCompressPlugin.ss:Ljdk/tools/jlink/internal/plugins/StringSharingPlugin;
11: goto 17
12: StackMap locals:
StackMap stack:
aload 0
new jdk.tools.jlink.internal.plugins.ZipPlugin
dup
aload 2
invokespecial jdk.tools.jlink.internal.plugins.ZipPlugin.<init>:(Ljava/util/function/Predicate;)V
putfield jdk.tools.jlink.internal.plugins.DefaultCompressPlugin.zip:Ljdk/tools/jlink/internal/plugins/ZipPlugin;
13: goto 17
14: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid compression level "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
goto 17
16: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid compression level "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljdk/tools/jlink/internal/plugins/DefaultCompressPlugin;
0 18 1 config Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 18 2 resFilter Ljdk/tools/jlink/internal/plugins/ResourceFilter;
2 18 3 level Ljava/lang/String;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
config
}
SourceFile: "DefaultCompressPlugin.java"
InnerClasses:
public final OrderedResourcePoolManager = jdk.tools.jlink.internal.ImagePluginStack$OrderedResourcePoolManager of jdk.tools.jlink.internal.ImagePluginStack
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