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 start local 1 0: aload 0
aload 1
iconst_0
invokespecial com.sun.codemodel.internal.writer.FileCodeWriter.<init>:(Ljava/io/File;Z)V
1: return
end local 1 end local 0 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 start local 1 start local 2 0: aload 0
aload 1
iconst_0
aload 2
invokespecial com.sun.codemodel.internal.writer.FileCodeWriter.<init>:(Ljava/io/File;ZLjava/lang/String;)V
1: return
end local 2 end local 1 end local 0 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 start local 1 start local 2 0: aload 0
aload 1
iload 2
aconst_null
invokespecial com.sun.codemodel.internal.writer.FileCodeWriter.<init>:(Ljava/io/File;ZLjava/lang/String;)V
1: return
end local 2 end local 1 end local 0 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 start local 1 start local 2 start local 3 0: aload 0
invokespecial com.sun.codemodel.internal.CodeWriter.<init>:()V
1: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield com.sun.codemodel.internal.writer.FileCodeWriter.readonlyFiles:Ljava/util/Set;
2: aload 0
aload 1
putfield com.sun.codemodel.internal.writer.FileCodeWriter.target:Ljava/io/File;
3: aload 0
iload 2
putfield com.sun.codemodel.internal.writer.FileCodeWriter.readOnly:Z
4: aload 0
aload 3
putfield com.sun.codemodel.internal.writer.FileCodeWriter.encoding:Ljava/lang/String;
5: aload 1
invokevirtual java.io.File.exists:()Z
ifeq 6
aload 1
invokevirtual java.io.File.isDirectory:()Z
ifne 7
6: 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
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: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 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 start local 1 start local 2 0: new java.io.FileOutputStream
dup
aload 0
aload 1
aload 2
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 end local 1 end local 0 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 start local 1 start local 2 0: aload 1
ifnull 1
aload 1
invokevirtual com.sun.codemodel.internal.JPackage.isUnnamed:()Z
ifeq 3
1: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.codemodel.internal.writer.FileCodeWriter.target:Ljava/io/File;
astore 3
start local 3 2: goto 4
end local 3 3: StackMap locals:
StackMap stack:
new java.io.File
dup
aload 0
getfield com.sun.codemodel.internal.writer.FileCodeWriter.target:Ljava/io/File;
aload 1
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
start local 3 4: StackMap locals: java.io.File
StackMap stack:
aload 3
invokevirtual java.io.File.exists:()Z
ifne 5
aload 3
invokevirtual java.io.File.mkdirs:()Z
pop
5: StackMap locals:
StackMap stack:
new java.io.File
dup
aload 3
aload 2
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 4
start local 4 6: aload 4
invokevirtual java.io.File.exists:()Z
ifeq 9
7: aload 4
invokevirtual java.io.File.delete:()Z
ifne 9
8: new java.io.IOException
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 4
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: StackMap locals: java.io.File
StackMap stack:
aload 0
getfield com.sun.codemodel.internal.writer.FileCodeWriter.readOnly:Z
ifeq 10
aload 0
getfield com.sun.codemodel.internal.writer.FileCodeWriter.readonlyFiles:Ljava/util/Set;
aload 4
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
10: StackMap locals:
StackMap stack:
aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 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 0: aload 0
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
start local 1 2: aload 1
invokevirtual java.io.File.setReadOnly:()Z
pop
end local 1 3: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 0 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 0: aload 0
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 LocalVariableTable:
Start End Slot Name Signature
0 1 0 pkg Lcom/sun/codemodel/internal/JPackage;
MethodParameters:
Name Flags
pkg
}
SourceFile: "FileCodeWriter.java"