public class com.sun.codemodel.internal.writer.FileCodeWriter extends com.sun.codemodel.internal.CodeWriter
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: com.sun.codemodel.internal.writer.FileCodeWriter
  super_class: com.sun.codemodel.internal.CodeWriter
{
  private final java.io.File target;
    descriptor: Ljava/io/File;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final boolean readOnly;
    descriptor: Z
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private final java.util.Set<java.io.File> readonlyFiles;
    descriptor: Ljava/util/Set;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/Set<Ljava/io/File;>;

  public void <init>(java.io.File);
    descriptor: (Ljava/io/File;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // com.sun.codemodel.internal.writer.FileCodeWriter this
        start local 1 // java.io.File target
         0: .line 56
            aload 0 /* this */
            aload 1 /* target */
            iconst_0
            invokespecial com.sun.codemodel.internal.writer.FileCodeWriter.<init>:(Ljava/io/File;Z)V
         1: .line 57
            return
        end local 1 // java.io.File target
        end local 0 // com.sun.codemodel.internal.writer.FileCodeWriter this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0    2     0    this  Lcom/sun/codemodel/internal/writer/FileCodeWriter;
            0    2     1  target  Ljava/io/File;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
        Name  Flags
      target  

  public void <init>(java.io.File, java.lang.String);
    descriptor: (Ljava/io/File;Ljava/lang/String;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=3
        start local 0 // com.sun.codemodel.internal.writer.FileCodeWriter this
        start local 1 // java.io.File target
        start local 2 // java.lang.String encoding
         0: .line 60
            aload 0 /* this */
            aload 1 /* target */
            iconst_0
            aload 2 /* encoding */
            invokespecial com.sun.codemodel.internal.writer.FileCodeWriter.<init>:(Ljava/io/File;ZLjava/lang/String;)V
         1: .line 61
            return
        end local 2 // java.lang.String encoding
        end local 1 // java.io.File target
        end local 0 // com.sun.codemodel.internal.writer.FileCodeWriter this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    2     0      this  Lcom/sun/codemodel/internal/writer/FileCodeWriter;
            0    2     1    target  Ljava/io/File;
            0    2     2  encoding  Ljava/lang/String;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
          Name  Flags
      target    
      encoding  

  public void <init>(java.io.File, boolean);
    descriptor: (Ljava/io/File;Z)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=3, args_size=3
        start local 0 // com.sun.codemodel.internal.writer.FileCodeWriter this
        start local 1 // java.io.File target
        start local 2 // boolean readOnly
         0: .line 64
            aload 0 /* this */
            aload 1 /* target */
            iload 2 /* readOnly */
            aconst_null
            invokespecial com.sun.codemodel.internal.writer.FileCodeWriter.<init>:(Ljava/io/File;ZLjava/lang/String;)V
         1: .line 65
            return
        end local 2 // boolean readOnly
        end local 1 // java.io.File target
        end local 0 // com.sun.codemodel.internal.writer.FileCodeWriter this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    2     0      this  Lcom/sun/codemodel/internal/writer/FileCodeWriter;
            0    2     1    target  Ljava/io/File;
            0    2     2  readOnly  Z
    Exceptions:
      throws java.io.IOException
    MethodParameters:
          Name  Flags
      target    
      readOnly  

  public void <init>(java.io.File, boolean, java.lang.String);
    descriptor: (Ljava/io/File;ZLjava/lang/String;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=4, args_size=4
        start local 0 // com.sun.codemodel.internal.writer.FileCodeWriter this
        start local 1 // java.io.File target
        start local 2 // boolean readOnly
        start local 3 // java.lang.String encoding
         0: .line 67
            aload 0 /* this */
            invokespecial com.sun.codemodel.internal.CodeWriter.<init>:()V
         1: .line 53
            aload 0 /* this */
            new java.util.HashSet
            dup
            invokespecial java.util.HashSet.<init>:()V
            putfield com.sun.codemodel.internal.writer.FileCodeWriter.readonlyFiles:Ljava/util/Set;
         2: .line 68
            aload 0 /* this */
            aload 1 /* target */
            putfield com.sun.codemodel.internal.writer.FileCodeWriter.target:Ljava/io/File;
         3: .line 69
            aload 0 /* this */
            iload 2 /* readOnly */
            putfield com.sun.codemodel.internal.writer.FileCodeWriter.readOnly:Z
         4: .line 70
            aload 0 /* this */
            aload 3 /* encoding */
            putfield com.sun.codemodel.internal.writer.FileCodeWriter.encoding:Ljava/lang/String;
         5: .line 71
            aload 1 /* target */
            invokevirtual java.io.File.exists:()Z
            ifeq 6
            aload 1 /* target */
            invokevirtual java.io.File.isDirectory:()Z
            ifne 7
         6: .line 72
      StackMap locals: com.sun.codemodel.internal.writer.FileCodeWriter java.io.File int java.lang.String
      StackMap stack:
            new java.io.IOException
            dup
            new java.lang.StringBuilder
            dup
            invokespecial java.lang.StringBuilder.<init>:()V
            aload 1 /* target */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            ldc ": non-existent directory"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
         7: .line 73
      StackMap locals:
      StackMap stack:
            return
        end local 3 // java.lang.String encoding
        end local 2 // boolean readOnly
        end local 1 // java.io.File target
        end local 0 // com.sun.codemodel.internal.writer.FileCodeWriter this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    8     0      this  Lcom/sun/codemodel/internal/writer/FileCodeWriter;
            0    8     1    target  Ljava/io/File;
            0    8     2  readOnly  Z
            0    8     3  encoding  Ljava/lang/String;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
          Name  Flags
      target    
      readOnly  
      encoding  

  public java.io.OutputStream openBinary(com.sun.codemodel.internal.JPackage, java.lang.String);
    descriptor: (Lcom/sun/codemodel/internal/JPackage;Ljava/lang/String;)Ljava/io/OutputStream;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=5, locals=3, args_size=3
        start local 0 // com.sun.codemodel.internal.writer.FileCodeWriter this
        start local 1 // com.sun.codemodel.internal.JPackage pkg
        start local 2 // java.lang.String fileName
         0: .line 77
            new java.io.FileOutputStream
            dup
            aload 0 /* this */
            aload 1 /* pkg */
            aload 2 /* fileName */
            invokevirtual com.sun.codemodel.internal.writer.FileCodeWriter.getFile:(Lcom/sun/codemodel/internal/JPackage;Ljava/lang/String;)Ljava/io/File;
            invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
            areturn
        end local 2 // java.lang.String fileName
        end local 1 // com.sun.codemodel.internal.JPackage pkg
        end local 0 // com.sun.codemodel.internal.writer.FileCodeWriter this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    1     0      this  Lcom/sun/codemodel/internal/writer/FileCodeWriter;
            0    1     1       pkg  Lcom/sun/codemodel/internal/JPackage;
            0    1     2  fileName  Ljava/lang/String;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
          Name  Flags
      pkg       
      fileName  

  protected java.io.File getFile(com.sun.codemodel.internal.JPackage, java.lang.String);
    descriptor: (Lcom/sun/codemodel/internal/JPackage;Ljava/lang/String;)Ljava/io/File;
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=4, locals=5, args_size=3
        start local 0 // com.sun.codemodel.internal.writer.FileCodeWriter this
        start local 1 // com.sun.codemodel.internal.JPackage pkg
        start local 2 // java.lang.String fileName
         0: .line 82
            aload 1 /* pkg */
            ifnull 1
            aload 1 /* pkg */
            invokevirtual com.sun.codemodel.internal.JPackage.isUnnamed:()Z
            ifeq 3
         1: .line 83
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.codemodel.internal.writer.FileCodeWriter.target:Ljava/io/File;
            astore 3 /* dir */
        start local 3 // java.io.File dir
         2: goto 4
        end local 3 // java.io.File dir
         3: .line 85
      StackMap locals:
      StackMap stack:
            new java.io.File
            dup
            aload 0 /* this */
            getfield com.sun.codemodel.internal.writer.FileCodeWriter.target:Ljava/io/File;
            aload 1 /* pkg */
            invokestatic com.sun.codemodel.internal.writer.FileCodeWriter.toDirName:(Lcom/sun/codemodel/internal/JPackage;)Ljava/lang/String;
            invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
            astore 3 /* dir */
        start local 3 // java.io.File dir
         4: .line 87
      StackMap locals: java.io.File
      StackMap stack:
            aload 3 /* dir */
            invokevirtual java.io.File.exists:()Z
            ifne 5
            aload 3 /* dir */
            invokevirtual java.io.File.mkdirs:()Z
            pop
         5: .line 89
      StackMap locals:
      StackMap stack:
            new java.io.File
            dup
            aload 3 /* dir */
            aload 2 /* fileName */
            invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
            astore 4 /* fn */
        start local 4 // java.io.File fn
         6: .line 91
            aload 4 /* fn */
            invokevirtual java.io.File.exists:()Z
            ifeq 9
         7: .line 92
            aload 4 /* fn */
            invokevirtual java.io.File.delete:()Z
            ifne 9
         8: .line 93
            new java.io.IOException
            dup
            new java.lang.StringBuilder
            dup
            invokespecial java.lang.StringBuilder.<init>:()V
            aload 4 /* fn */
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
            ldc ": Can't delete previous version"
            invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
            invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
            invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
            athrow
         9: .line 97
      StackMap locals: java.io.File
      StackMap stack:
            aload 0 /* this */
            getfield com.sun.codemodel.internal.writer.FileCodeWriter.readOnly:Z
            ifeq 10
            aload 0 /* this */
            getfield com.sun.codemodel.internal.writer.FileCodeWriter.readonlyFiles:Ljava/util/Set;
            aload 4 /* fn */
            invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
            pop
        10: .line 98
      StackMap locals:
      StackMap stack:
            aload 4 /* fn */
            areturn
        end local 4 // java.io.File fn
        end local 3 // java.io.File dir
        end local 2 // java.lang.String fileName
        end local 1 // com.sun.codemodel.internal.JPackage pkg
        end local 0 // com.sun.codemodel.internal.writer.FileCodeWriter this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0   11     0      this  Lcom/sun/codemodel/internal/writer/FileCodeWriter;
            0   11     1       pkg  Lcom/sun/codemodel/internal/JPackage;
            0   11     2  fileName  Ljava/lang/String;
            2    3     3       dir  Ljava/io/File;
            4   11     3       dir  Ljava/io/File;
            6   11     4        fn  Ljava/io/File;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
          Name  Flags
      pkg       
      fileName  

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=3, args_size=1
        start local 0 // com.sun.codemodel.internal.writer.FileCodeWriter this
         0: .line 104
            aload 0 /* this */
            getfield com.sun.codemodel.internal.writer.FileCodeWriter.readonlyFiles:Ljava/util/Set;
            invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
            astore 2
            goto 3
      StackMap locals: com.sun.codemodel.internal.writer.FileCodeWriter top java.util.Iterator
      StackMap stack:
         1: aload 2
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.io.File
            astore 1 /* f */
        start local 1 // java.io.File f
         2: .line 105
            aload 1 /* f */
            invokevirtual java.io.File.setReadOnly:()Z
            pop
        end local 1 // java.io.File f
         3: .line 104
      StackMap locals:
      StackMap stack:
            aload 2
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 1
         4: .line 106
            return
        end local 0 // com.sun.codemodel.internal.writer.FileCodeWriter this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Lcom/sun/codemodel/internal/writer/FileCodeWriter;
            2    3     1     f  Ljava/io/File;
    Exceptions:
      throws java.io.IOException

  private static java.lang.String toDirName(com.sun.codemodel.internal.JPackage);
    descriptor: (Lcom/sun/codemodel/internal/JPackage;)Ljava/lang/String;
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=3, locals=1, args_size=1
        start local 0 // com.sun.codemodel.internal.JPackage pkg
         0: .line 110
            aload 0 /* pkg */
            invokevirtual com.sun.codemodel.internal.JPackage.name:()Ljava/lang/String;
            bipush 46
            getstatic java.io.File.separatorChar:C
            invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
            areturn
        end local 0 // com.sun.codemodel.internal.JPackage pkg
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0   pkg  Lcom/sun/codemodel/internal/JPackage;
    MethodParameters:
      Name  Flags
      pkg   
}
SourceFile: "FileCodeWriter.java"