abstract class jdk.tools.jlink.internal.plugins.VersionPropsPlugin extends jdk.tools.jlink.internal.plugins.AbstractPlugin
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: jdk.tools.jlink.internal.plugins.VersionPropsPlugin
super_class: jdk.tools.jlink.internal.plugins.AbstractPlugin
{
private static final java.lang.String VERSION_PROPS_CLASS;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "/java.base/java/lang/VersionProps.class"
private final java.lang.String field;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String value;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private boolean redefined;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
protected void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 2
invokespecial jdk.tools.jlink.internal.plugins.AbstractPlugin.<init>:(Ljava/lang/String;)V
1: aload 0
iconst_0
putfield jdk.tools.jlink.internal.plugins.VersionPropsPlugin.redefined:Z
2: aload 0
aload 1
putfield jdk.tools.jlink.internal.plugins.VersionPropsPlugin.field:Ljava/lang/String;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/tools/jlink/internal/plugins/VersionPropsPlugin;
0 4 1 field Ljava/lang/String;
0 4 2 option Ljava/lang/String;
MethodParameters:
Name Flags
field
option
protected void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
bipush 95
bipush 45
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokespecial jdk.tools.jlink.internal.plugins.VersionPropsPlugin.<init>:(Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/tools/jlink/internal/plugins/VersionPropsPlugin;
0 2 1 field Ljava/lang/String;
MethodParameters:
Name Flags
field
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.TRANSFORMER: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/VersionPropsPlugin;
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/VersionPropsPlugin;
public boolean hasRawArgument();
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/VersionPropsPlugin;
public void configure(java.util.Map<java.lang.String, java.lang.String>);
descriptor: (Ljava/util/Map;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual jdk.tools.jlink.internal.plugins.VersionPropsPlugin.getName:()Ljava/lang/String;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 1: aload 2
ifnonnull 3
2: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 2
putfield jdk.tools.jlink.internal.plugins.VersionPropsPlugin.value:Ljava/lang/String;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/tools/jlink/internal/plugins/VersionPropsPlugin;
0 5 1 config Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
1 5 2 v Ljava/lang/String;
Signature: (Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
config
private byte[] redefine(byte[]);
descriptor: ([B)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: new jdk.internal.org.objectweb.asm.ClassReader
dup
aload 1
invokespecial jdk.internal.org.objectweb.asm.ClassReader.<init>:([B)V
astore 2
start local 2 1: new jdk.internal.org.objectweb.asm.ClassWriter
dup
iconst_0
invokespecial jdk.internal.org.objectweb.asm.ClassWriter.<init>:(I)V
astore 3
start local 3 2: aload 2
new jdk.tools.jlink.internal.plugins.VersionPropsPlugin$1
dup
aload 0
ldc 458752
aload 3
invokespecial jdk.tools.jlink.internal.plugins.VersionPropsPlugin$1.<init>:(Ljdk/tools/jlink/internal/plugins/VersionPropsPlugin;ILjdk/internal/org/objectweb/asm/ClassVisitor;)V
3: iconst_0
4: invokevirtual jdk.internal.org.objectweb.asm.ClassReader.accept:(Ljdk/internal/org/objectweb/asm/ClassVisitor;I)V
5: aload 3
invokevirtual jdk.internal.org.objectweb.asm.ClassWriter.toByteArray:()[B
areturn
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/plugins/VersionPropsPlugin;
0 6 1 classFile [B
1 6 2 cr Ljdk/internal/org/objectweb/asm/ClassReader;
2 6 3 cw Ljdk/internal/org/objectweb/asm/ClassWriter;
MethodParameters:
Name Flags
classFile
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
invokedynamic apply(Ljdk/tools/jlink/internal/plugins/VersionPropsPlugin;)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/VersionPropsPlugin.lambda$0(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 0
getfield jdk.tools.jlink.internal.plugins.VersionPropsPlugin.redefined:Z
ifne 5
4: new java.lang.AssertionError
dup
aload 0
getfield jdk.tools.jlink.internal.plugins.VersionPropsPlugin.field:Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
5: StackMap locals:
StackMap stack:
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 6 0 this Ljdk/tools/jlink/internal/plugins/VersionPropsPlugin;
0 6 1 in Ljdk/tools/jlink/plugin/ResourcePool;
0 6 2 out Ljdk/tools/jlink/plugin/ResourcePoolBuilder;
MethodParameters:
Name Flags
in
out
private jdk.tools.jlink.plugin.ResourcePoolEntry lambda$0(jdk.tools.jlink.plugin.ResourcePoolEntry);
descriptor: (Ljdk/tools/jlink/plugin/ResourcePoolEntry;)Ljdk/tools/jlink/plugin/ResourcePoolEntry;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
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 3
1: aload 1
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.path:()Ljava/lang/String;
ldc "/java.base/java/lang/VersionProps.class"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
2: aload 1
aload 0
aload 1
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.contentBytes:()[B
invokevirtual jdk.tools.jlink.internal.plugins.VersionPropsPlugin.redefine:([B)[B
invokeinterface jdk.tools.jlink.plugin.ResourcePoolEntry.copyWithContent:([B)Ljdk/tools/jlink/plugin/ResourcePoolEntry;
areturn
3: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/tools/jlink/internal/plugins/VersionPropsPlugin;
0 4 1 res Ljdk/tools/jlink/plugin/ResourcePoolEntry;
}
SourceFile: "VersionPropsPlugin.java"
NestMembers:
jdk.tools.jlink.internal.plugins.VersionPropsPlugin$1 jdk.tools.jlink.internal.plugins.VersionPropsPlugin$1$1
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
jdk.tools.jlink.internal.plugins.VersionPropsPlugin$1
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