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 // jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject this
        start local 1 // java.lang.String name
        start local 2 // javax.tools.JavaFileObject$Kind kind
         0: .line 116
            aload 0 /* this */
            aload 1 /* name */
            aload 2 /* kind */
            invokespecial jdk.jshell.MemoryFileManager$MemoryJavaFileObject.<init>:(Ljava/lang/String;Ljavax/tools/JavaFileObject$Kind;)V
         1: .line 110
            aload 0 /* this */
            new java.io.ByteArrayOutputStream
            dup
            invokespecial java.io.ByteArrayOutputStream.<init>:()V
            putfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.bos:Ljava/io/ByteArrayOutputStream;
         2: .line 111
            aload 0 /* this */
            aconst_null
            putfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.bytes:[B
         3: .line 117
            aload 0 /* this */
            aload 1 /* name */
            putfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.className:Ljava/lang/String;
         4: .line 118
            return
        end local 2 // javax.tools.JavaFileObject$Kind kind
        end local 1 // java.lang.String name
        end local 0 // jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject this
      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 // jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject this
         0: .line 121
            aload 0 /* this */
            getfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.bytes:[B
            ifnonnull 3
         1: .line 122
            aload 0 /* this */
            aload 0 /* this */
            getfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.bos:Ljava/io/ByteArrayOutputStream;
            invokevirtual java.io.ByteArrayOutputStream.toByteArray:()[B
            putfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.bytes:[B
         2: .line 123
            aload 0 /* this */
            aconst_null
            putfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.bos:Ljava/io/ByteArrayOutputStream;
         3: .line 125
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.bytes:[B
            areturn
        end local 0 // jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject this
      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 // jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject this
         0: .line 130
            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 /* dumpDir */
        start local 1 // java.nio.file.Path dumpDir
         1: .line 131
            aload 1 /* dumpDir */
            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: .line 132
            aload 1 /* dumpDir */
            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: .line 134
      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 /* this */
            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 /* file */
        start local 2 // java.nio.file.Path file
         4: .line 135
            aload 2 /* file */
            aload 0 /* this */
            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 // java.nio.file.Path file
        end local 1 // java.nio.file.Path dumpDir
         5: .line 136
            goto 8
      StackMap locals: jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject
      StackMap stack: java.io.IOException
         6: astore 1 /* ex */
        start local 1 // java.io.IOException ex
         7: .line 137
            new java.lang.RuntimeException
            dup
            aload 1 /* ex */
            invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 1 // java.io.IOException ex
         8: .line 139
      StackMap locals:
      StackMap stack:
            return
        end local 0 // jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject this
      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 // jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject this
         0: .line 143
            aload 0 /* this */
            getfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.className:Ljava/lang/String;
            areturn
        end local 0 // jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject this
      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 // jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject this
         0: .line 152
            aload 0 /* this */
            getfield jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.bos:Ljava/io/ByteArrayOutputStream;
            areturn
        end local 0 // jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject this
      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 // jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject this
         0: .line 157
            new java.io.ByteArrayInputStream
            dup
            aload 0 /* this */
            invokevirtual jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject.getBytes:()[B
            invokespecial java.io.ByteArrayInputStream.<init>:([B)V
            areturn
        end local 0 // jdk.jshell.MemoryFileManager$OutputMemoryJavaFileObject this
      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