class jdk.tools.jlink.internal.ImageStringsWriter implements jdk.internal.jimage.ImageStrings
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.tools.jlink.internal.ImageStringsWriter
super_class: java.lang.Object
{
private static final int NOT_FOUND;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: -1
static final int EMPTY_OFFSET;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 0
private final java.util.HashMap<java.lang.String, java.lang.Integer> stringToOffsetMap;
descriptor: Ljava/util/HashMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Integer;>;
private final jdk.internal.jimage.ImageStream stream;
descriptor: Ljdk/internal/jimage/ImageStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield jdk.tools.jlink.internal.ImageStringsWriter.stringToOffsetMap:Ljava/util/HashMap;
2: aload 0
new jdk.internal.jimage.ImageStream
dup
invokespecial jdk.internal.jimage.ImageStream.<init>:()V
putfield jdk.tools.jlink.internal.ImageStringsWriter.stream:Ljdk/internal/jimage/ImageStream;
3: aload 0
ldc ""
invokevirtual jdk.tools.jlink.internal.ImageStringsWriter.addString:(Ljava/lang/String;)I
istore 1
start local 1 4: iload 1
ifeq 6
5: new java.lang.InternalError
dup
ldc "Empty string not offset zero"
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: jdk.tools.jlink.internal.ImageStringsWriter int
StackMap stack:
aload 0
ldc "class"
invokevirtual jdk.tools.jlink.internal.ImageStringsWriter.addString:(Ljava/lang/String;)I
istore 1
7: iload 1
iconst_1
if_icmpeq 9
8: new java.lang.InternalError
dup
ldc "'class' string not offset one"
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/tools/jlink/internal/ImageStringsWriter;
4 10 1 offset I
private int addString(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.tools.jlink.internal.ImageStringsWriter.stream:Ljdk/internal/jimage/ImageStream;
invokevirtual jdk.internal.jimage.ImageStream.getPosition:()I
istore 2
start local 2 1: aload 1
invokestatic jdk.internal.jimage.ImageStringsReader.mutf8FromString:(Ljava/lang/String;)[B
astore 3
start local 3 2: aload 0
getfield jdk.tools.jlink.internal.ImageStringsWriter.stream:Ljdk/internal/jimage/ImageStream;
aload 3
iconst_0
aload 3
arraylength
invokevirtual jdk.internal.jimage.ImageStream.put:([BII)Ljdk/internal/jimage/ImageStream;
pop
3: aload 0
getfield jdk.tools.jlink.internal.ImageStringsWriter.stream:Ljdk/internal/jimage/ImageStream;
iconst_0
invokevirtual jdk.internal.jimage.ImageStream.put:(I)Ljdk/internal/jimage/ImageStream;
pop
4: aload 0
getfield jdk.tools.jlink.internal.ImageStringsWriter.stringToOffsetMap:Ljava/util/HashMap;
aload 1
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: iload 2
ireturn
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/ImageStringsWriter;
0 6 1 string Ljava/lang/String;
1 6 2 offset I
2 6 3 bytes [B
MethodParameters:
Name Flags
string final
public int add(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.tools.jlink.internal.ImageStringsWriter.find:(Ljava/lang/String;)I
istore 2
start local 2 1: iload 2
iconst_m1
if_icmpne 2
aload 0
aload 1
invokevirtual jdk.tools.jlink.internal.ImageStringsWriter.addString:(Ljava/lang/String;)I
goto 3
StackMap locals: int
StackMap stack:
2: iload 2
StackMap locals:
StackMap stack: int
3: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/tools/jlink/internal/ImageStringsWriter;
0 4 1 string Ljava/lang/String;
1 4 2 offset I
MethodParameters:
Name Flags
string final
int find(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0000)
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.tools.jlink.internal.ImageStringsWriter.stringToOffsetMap:Ljava/util/HashMap;
aload 1
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Integer
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokevirtual java.lang.Integer.intValue:()I
goto 3
StackMap locals: java.lang.Integer
StackMap stack:
2: iconst_m1
StackMap locals:
StackMap stack: int
3: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/tools/jlink/internal/ImageStringsWriter;
0 4 1 string Ljava/lang/String;
1 4 2 offset Ljava/lang/Integer;
MethodParameters:
Name Flags
string final
public java.lang.String get(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.tools.jlink.internal.ImageStringsWriter.stream:Ljdk/internal/jimage/ImageStream;
invokevirtual jdk.internal.jimage.ImageStream.getBuffer:()Ljava/nio/ByteBuffer;
astore 2
start local 2 1: aload 2
invokevirtual java.nio.ByteBuffer.capacity:()I
istore 3
start local 3 2: iload 1
iflt 3
iload 1
iload 3
if_icmplt 4
3: StackMap locals: java.nio.ByteBuffer int
StackMap stack:
new java.lang.InternalError
dup
ldc "String buffer offset out of range"
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
iconst_m1
istore 4
start local 4 5: iload 1
istore 5
start local 5 6: goto 11
7: StackMap locals: int int
StackMap stack:
aload 2
iload 5
invokevirtual java.nio.ByteBuffer.get:(I)B
ifne 10
8: iload 5
istore 4
9: goto 12
10: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
11: iload 5
iload 3
if_icmplt 7
end local 5 12: StackMap locals:
StackMap stack:
iload 4
iconst_m1
if_icmpne 14
13: new java.lang.InternalError
dup
ldc "String zero terminator not found"
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
iload 4
iload 1
isub
istore 5
start local 5 15: iload 5
newarray 8
astore 6
start local 6 16: aload 2
invokevirtual java.nio.ByteBuffer.position:()I
istore 7
start local 7 17: aload 2
iload 1
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
18: aload 2
aload 6
invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
pop
19: aload 2
iload 7
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
20: aload 6
invokestatic jdk.internal.jimage.ImageStringsReader.stringFromMUTF8:([B)Ljava/lang/String;
areturn
end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljdk/tools/jlink/internal/ImageStringsWriter;
0 21 1 offset I
1 21 2 buffer Ljava/nio/ByteBuffer;
2 21 3 capacity I
5 21 4 zero I
6 12 5 i I
15 21 5 length I
16 21 6 bytes [B
17 21 7 mark I
MethodParameters:
Name Flags
offset
jdk.internal.jimage.ImageStream getStream();
descriptor: ()Ljdk/internal/jimage/ImageStream;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.ImageStringsWriter.stream:Ljdk/internal/jimage/ImageStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ImageStringsWriter;
int getSize();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.ImageStringsWriter.stream:Ljdk/internal/jimage/ImageStream;
invokevirtual jdk.internal.jimage.ImageStream.getSize:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ImageStringsWriter;
int getCount();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jlink.internal.ImageStringsWriter.stringToOffsetMap:Ljava/util/HashMap;
invokevirtual java.util.HashMap.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/tools/jlink/internal/ImageStringsWriter;
}
SourceFile: "ImageStringsWriter.java"