final class jdk.tools.jlink.internal.ImagePluginStack$PreVisitStrings implements jdk.tools.jlink.internal.StringTable
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.tools.jlink.internal.ImagePluginStack$PreVisitStrings
super_class: java.lang.Object
{
private int currentid;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final java.util.Map<java.lang.String, java.lang.Integer> stringsUsage;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;
private final java.util.Map<java.lang.String, java.lang.Integer> stringsMap;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;
private final java.util.Map<java.lang.Integer, java.lang.String> reverseMap;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Integer;Ljava/lang/String;>;
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield jdk.tools.jlink.internal.ImagePluginStack$PreVisitStrings.currentid:I
2: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.tools.jlink.internal.ImagePluginStack$PreVisitStrings.stringsUsage:Ljava/util/Map;
3: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.tools.jlink.internal.ImagePluginStack$PreVisitStrings.stringsMap:Ljava/util/Map;
4: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.tools.jlink.internal.ImagePluginStack$PreVisitStrings.reverseMap:Ljava/util/Map;
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/tools/jlink/internal/ImagePluginStack$PreVisitStrings;
public int addString(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, 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.ImagePluginStack$PreVisitStrings.stringsUsage:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 2
start local 2 2: aload 2
ifnonnull 4
3: iconst_0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 2
4: StackMap locals: java.lang.Integer
StackMap stack:
aload 2
invokevirtual java.lang.Integer.intValue:()I
iconst_1
iadd
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 2
5: aload 0
getfield jdk.tools.jlink.internal.ImagePluginStack$PreVisitStrings.stringsUsage:Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 0
getfield jdk.tools.jlink.internal.ImagePluginStack$PreVisitStrings.stringsMap:Ljava/util/Map;
aload 1
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 3
start local 3 7: aload 3
ifnonnull 12
8: aload 0
getfield jdk.tools.jlink.internal.ImagePluginStack$PreVisitStrings.currentid:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
astore 3
9: aload 0
getfield jdk.tools.jlink.internal.ImagePluginStack$PreVisitStrings.stringsMap:Ljava/util/Map;
aload 1
aload 3
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: aload 0
dup
getfield jdk.tools.jlink.internal.ImagePluginStack$PreVisitStrings.currentid:I
iconst_1
iadd
putfield jdk.tools.jlink.internal.ImagePluginStack$PreVisitStrings.currentid:I
11: aload 0
getfield jdk.tools.jlink.internal.ImagePluginStack$PreVisitStrings.reverseMap:Ljava/util/Map;
aload 3
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: StackMap locals: java.lang.Integer
StackMap stack:
aload 3
invokevirtual java.lang.Integer.intValue:()I
ireturn
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/ImagePluginStack$PreVisitStrings;
0 13 1 str Ljava/lang/String;
2 13 2 count Ljava/lang/Integer;
7 13 3 id Ljava/lang/Integer;
MethodParameters:
Name Flags
str
private java.util.List<java.lang.String> getSortedStrings();
descriptor: ()Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.ImagePluginStack$PreVisitStrings.stringsUsage:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.stream:()Ljava/util/stream/Stream;
1: astore 1
start local 1 2: aload 1
invokedynamic apply()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/ImagePluginStack$PreVisitStrings.lambda$0(Ljava/util/Map$Entry;)Ljava/lang/Integer; (6)
(Ljava/util/Map$Entry;)Ljava/lang/Integer;
3: invokestatic java.util.Comparator.reverseOrder:()Ljava/util/Comparator;
4: invokestatic java.util.Comparator.comparing:(Ljava/util/function/Function;Ljava/util/Comparator;)Ljava/util/Comparator;
invokeinterface java.util.stream.Stream.sorted:(Ljava/util/Comparator;)Ljava/util/stream/Stream;
5: 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/ImagePluginStack$PreVisitStrings.lambda$1(Ljava/util/Map$Entry;)Z (6)
(Ljava/util/Map$Entry;)Z
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
6: invokedynamic apply()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;
java/util/Map$Entry.getKey()Ljava/lang/Object; (9 itf)
(Ljava/util/Map$Entry;)Ljava/lang/String;
invokeinterface java.util.stream.Stream.map:(Ljava/util/function/Function;)Ljava/util/stream/Stream;
7: invokeinterface java.util.stream.Stream.toList:()Ljava/util/List;
8: astore 2
start local 2 9: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/tools/jlink/internal/ImagePluginStack$PreVisitStrings;
2 10 1 stream Ljava/util/stream/Stream<Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Integer;>;>;
9 10 2 result Ljava/util/List<Ljava/lang/String;>;
Signature: ()Ljava/util/List<Ljava/lang/String;>;
public java.lang.String getString(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.tools.jlink.internal.ImagePluginStack$PreVisitStrings.reverseMap:Ljava/util/Map;
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ImagePluginStack$PreVisitStrings;
0 1 1 id I
MethodParameters:
Name Flags
id
private static java.lang.Integer lambda$0(java.util.Map$Entry);
descriptor: (Ljava/util/Map$Entry;)Ljava/lang/Integer;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 e Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Integer;>;
private static boolean lambda$1(java.util.Map$Entry);
descriptor: (Ljava/util/Map$Entry;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
iconst_1
if_icmple 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 e Ljava/util/Map$Entry<Ljava/lang/String;Ljava/lang/Integer;>;
}
SourceFile: "ImagePluginStack.java"
NestHost: jdk.tools.jlink.internal.ImagePluginStack
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map
private final PreVisitStrings = jdk.tools.jlink.internal.ImagePluginStack$PreVisitStrings of jdk.tools.jlink.internal.ImagePluginStack