public class com.sun.tools.internal.ws.processor.util.DirectoryUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.internal.ws.processor.util.DirectoryUtil
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/tools/internal/ws/processor/util/DirectoryUtil;
public static java.io.File getOutputDirectoryFor(java.lang.String, java.io.File);
descriptor: (Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=8, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 0
astore 3
start local 3 2: aconst_null
astore 4
start local 4 3: aload 3
invokestatic com.sun.tools.internal.ws.util.ClassNameInfo.getQualifier:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 4: aload 5
ifnull 6
aload 5
invokevirtual java.lang.String.length:()I
ifle 6
5: aload 5
bipush 46
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 4
6: StackMap locals: java.lang.String java.io.File java.io.File java.lang.String java.lang.String java.lang.String
StackMap stack:
aload 1
ifnull 13
7: aload 4
ifnull 11
8: new java.io.File
dup
aload 1
aload 4
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 2
9: aload 2
invokestatic com.sun.tools.internal.ws.processor.util.DirectoryUtil.ensureDirectory:(Ljava/io/File;)V
10: goto 20
11: StackMap locals:
StackMap stack:
aload 1
astore 2
12: goto 20
13: StackMap locals:
StackMap stack:
ldc "user.dir"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 6
start local 6 14: new java.io.File
dup
aload 6
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 7
start local 7 15: aload 4
ifnonnull 18
16: aload 7
astore 2
17: goto 20
18: StackMap locals: java.lang.String java.io.File
StackMap stack:
new java.io.File
dup
aload 7
aload 4
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 2
19: aload 2
invokestatic com.sun.tools.internal.ws.processor.util.DirectoryUtil.ensureDirectory:(Ljava/io/File;)V
end local 7 end local 6 20: StackMap locals:
StackMap stack:
aload 2
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 theClass Ljava/lang/String;
0 21 1 rootDir Ljava/io/File;
1 21 2 outputDir Ljava/io/File;
2 21 3 qualifiedClassName Ljava/lang/String;
3 21 4 packagePath Ljava/lang/String;
4 21 5 packageName Ljava/lang/String;
14 20 6 workingDirPath Ljava/lang/String;
15 20 7 workingDir Ljava/io/File;
Exceptions:
throws com.sun.tools.internal.ws.processor.generator.GeneratorException
MethodParameters:
Name Flags
theClass
rootDir
public static java.lang.String getRelativePathfromCommonBase(java.io.File, java.io.File);
descriptor: (Ljava/io/File;Ljava/io/File;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.io.File.getCanonicalPath:()Ljava/lang/String;
astore 2
start local 2 1: aload 0
invokevirtual java.io.File.getCanonicalPath:()Ljava/lang/String;
astore 3
start local 3 2: aload 3
aload 2
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 file Ljava/io/File;
0 3 1 base Ljava/io/File;
1 3 2 basePath Ljava/lang/String;
2 3 3 filePath Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
base
private static void ensureDirectory(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.io.File.exists:()Z
ifne 6
1: aload 0
invokevirtual java.io.File.mkdirs:()Z
istore 1
start local 1 2: iload 1
ifeq 3
aload 0
invokevirtual java.io.File.exists:()Z
ifne 6
3: StackMap locals: int
StackMap stack:
new com.sun.tools.internal.ws.processor.generator.GeneratorException
dup
ldc "generator.cannot.create.dir"
iconst_1
anewarray java.lang.Object
dup
iconst_0
4: aload 0
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
5: aastore
invokespecial com.sun.tools.internal.ws.processor.generator.GeneratorException.<init>:(Ljava/lang/String;[Ljava/lang/Object;)V
athrow
end local 1 6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 dir Ljava/io/File;
2 6 1 created Z
Exceptions:
throws com.sun.tools.internal.ws.processor.generator.GeneratorException
MethodParameters:
Name Flags
dir
}
SourceFile: "DirectoryUtil.java"