class jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject extends jdk.jshell.MemoryFileManager$MemoryJavaFileObject
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject
super_class: jdk.jshell.MemoryFileManager$MemoryJavaFileObject
{
private java.io.ByteArrayOutputStream bos;
descriptor: Ljava/io/ByteArrayOutputStream;
flags: (0x0002) ACC_PRIVATE
private byte[] bytes;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private final java.lang.String className;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.String, javax.tools.JavaFileObject$Kind);
descriptor: (Ljava/lang/String;Ljavax/tools/JavaFileObject$Kind;)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
aload 1
aload 2
invokespecial jdk.jshell.MemoryFileManager$MemoryJavaFileObject.<init>:(Ljava/lang/String;Ljavax/tools/JavaFileObject$Kind;)V
1: aload 0
new java.io.ByteArrayOutputStream
dup
invokespecial java.io.ByteArrayOutputStream.<init>:()V
putfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.bos:Ljava/io/ByteArrayOutputStream;
2: aload 0
aconst_null
putfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.bytes:[B
3: aload 0
aload 1
putfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.className: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/jshell/MemoryFileManager$OutputMemoryJavaFileObject;
0 5 1 name Ljava/lang/String;
0 5 2 kind Ljavax/tools/JavaFileObject$Kind;
MethodParameters:
Name Flags
name
kind
public byte[] getBytes();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.bytes:[B
ifnonnull 3
1: aload 0
aload 0
getfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.bos:Ljava/io/ByteArrayOutputStream;
invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
putfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.bytes:[B
2: aload 0
aconst_null
putfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.bos:Ljava/io/ByteArrayOutputStream;
3: StackMap locals:
StackMap stack:
aload 0
getfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.bytes:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/jshell/MemoryFileManager$OutputMemoryJavaFileObject;
public void dump();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=3, args_size=1
start local 0 0: invokestatic java.nio.file.FileSystems.getDefault:()Ljava/nio/file/FileSystem;
ldc "dump"
iconst_0
anewarray java.lang.String
invokevirtual java.nio.file.FileSystem.getPath:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 1
start local 1 1: aload 1
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.notExists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 3
2: aload 1
iconst_0
anewarray java.nio.file.attribute.FileAttribute
invokestatic java.nio.file.Files.createDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path;
pop
3: StackMap locals: java.nio.file.Path
StackMap stack:
invokestatic java.nio.file.FileSystems.getDefault:()Ljava/nio/file/FileSystem;
ldc "dump"
iconst_1
anewarray java.lang.String
dup
iconst_0
new java.lang.StringBuilder
dup
aload 0
invokevirtual jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".class"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
invokevirtual java.nio.file.FileSystem.getPath:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 2
start local 2 4: aload 2
aload 0
invokevirtual jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.getBytes:()[B
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.write:(Ljava/nio/file/Path;[B[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
pop
end local 2 end local 1 5: goto 8
StackMap locals: jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject
StackMap stack: java.io.IOException
6: astore 1
start local 1 7: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/jshell/MemoryFileManager$OutputMemoryJavaFileObject;
1 5 1 dumpDir Ljava/nio/file/Path;
4 5 2 file Ljava/nio/file/Path;
7 8 1 ex Ljava/io/IOException;
Exception table:
from to target type
0 5 6 Class java.io.IOException
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: aload 0
getfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.className:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/MemoryFileManager$OutputMemoryJavaFileObject;
public java.io.OutputStream openOutputStream();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.bos:Ljava/io/ByteArrayOutputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/MemoryFileManager$OutputMemoryJavaFileObject;
Exceptions:
throws java.io.IOException
public java.io.InputStream openInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.io.ByteArrayInputStream
dup
aload 0
invokevirtual jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.getBytes:()[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/jshell/MemoryFileManager$OutputMemoryJavaFileObject;
Exceptions:
throws java.io.IOException
}
SourceFile: "MemoryFileManager.java"
NestHost: jdk.jshell.MemoryFileManager
InnerClasses:
public final Kind = javax.tools.JavaFileObject$Kind of javax.tools.JavaFileObject
abstract MemoryJavaFileObject = jdk.jshell.MemoryFileManager$MemoryJavaFileObject of jdk.jshell.MemoryFileManager
OutputMemoryJavaFileObject = jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject of jdk.jshell.MemoryFileManager