final class jdk.tools.jaotc.binformat.elf.ElfContainer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.tools.jaotc.binformat.elf.ElfContainer
super_class: java.lang.Object
{
private final java.io.File outputFile;
descriptor: Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.io.FileOutputStream outputStream;
descriptor: Ljava/io/FileOutputStream;
flags: (0x0002) ACC_PRIVATE
private long fileOffset;
descriptor: J
flags: (0x0002) ACC_PRIVATE
void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
putfield jdk.tools.jaotc.binformat.elf.ElfContainer.outputFile:Ljava/io/File;
2: aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfContainer.outputFile:Ljava/io/File;
invokevirtual java.io.File.exists:()Z
ifeq 4
3: aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfContainer.outputFile:Ljava/io/File;
invokevirtual java.io.File.delete:()Z
pop
4: StackMap locals: jdk.tools.jaotc.binformat.elf.ElfContainer java.lang.String
StackMap stack:
aload 0
new java.io.FileOutputStream
dup
aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfContainer.outputFile:Ljava/io/File;
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
putfield jdk.tools.jaotc.binformat.elf.ElfContainer.outputStream:Ljava/io/FileOutputStream;
5: goto 8
StackMap locals:
StackMap stack: java.lang.Exception
6: pop
7: getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "ElfContainer: Can't create file "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
8: StackMap locals:
StackMap stack:
aload 0
lconst_0
putfield jdk.tools.jaotc.binformat.elf.ElfContainer.fileOffset:J
9: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/tools/jaotc/binformat/elf/ElfContainer;
0 10 1 fileName Ljava/lang/String;
Exception table:
from to target type
4 5 6 Class java.lang.Exception
MethodParameters:
Name Flags
fileName
void close();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfContainer.outputStream:Ljava/io/FileOutputStream;
invokevirtual java.io.FileOutputStream.close:()V
1: goto 4
StackMap locals:
StackMap stack: java.lang.Exception
2: pop
3: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "ElfContainer: close failed"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/tools/jaotc/binformat/elf/ElfContainer;
Exception table:
from to target type
0 1 2 Class java.lang.Exception
void writeBytes(byte[]);
descriptor: ([B)V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfContainer.outputStream:Ljava/io/FileOutputStream;
aload 1
invokevirtual java.io.FileOutputStream.write:([B)V
3: goto 6
StackMap locals:
StackMap stack: java.lang.Exception
4: pop
5: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "ElfContainer: writeBytes failed"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: StackMap locals:
StackMap stack:
aload 0
dup
getfield jdk.tools.jaotc.binformat.elf.ElfContainer.fileOffset:J
aload 1
arraylength
i2l
ladd
putfield jdk.tools.jaotc.binformat.elf.ElfContainer.fileOffset:J
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/tools/jaotc/binformat/elf/ElfContainer;
0 8 1 bytes [B
Exception table:
from to target type
2 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
bytes
void writeBytes(byte[], int);
descriptor: ([BI)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 4
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfContainer.outputStream:Ljava/io/FileOutputStream;
iconst_0
invokevirtual java.io.FileOutputStream.write:(I)V
3: aload 0
dup
getfield jdk.tools.jaotc.binformat.elf.ElfContainer.fileOffset:J
lconst_1
ladd
putfield jdk.tools.jaotc.binformat.elf.ElfContainer.fileOffset:J
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfContainer.fileOffset:J
iload 2
iconst_1
isub
i2l
land
lconst_0
lcmp
ifne 2
5: aload 0
getfield jdk.tools.jaotc.binformat.elf.ElfContainer.outputStream:Ljava/io/FileOutputStream;
aload 1
invokevirtual java.io.FileOutputStream.write:([B)V
6: goto 9
StackMap locals:
StackMap stack: java.lang.Exception
7: pop
8: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "ElfContainer: writeBytes failed"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: StackMap locals:
StackMap stack:
aload 0
dup
getfield jdk.tools.jaotc.binformat.elf.ElfContainer.fileOffset:J
aload 1
arraylength
i2l
ladd
putfield jdk.tools.jaotc.binformat.elf.ElfContainer.fileOffset:J
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/tools/jaotc/binformat/elf/ElfContainer;
0 11 1 bytes [B
0 11 2 alignment I
Exception table:
from to target type
2 6 7 Class java.lang.Exception
MethodParameters:
Name Flags
bytes
alignment
}
SourceFile: "ElfContainer.java"