class jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory extends jdk.javadoc.internal.doclets.toolkit.util.DocFileFactory
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory
super_class: jdk.javadoc.internal.doclets.toolkit.util.DocFileFactory
{
private final javax.tools.StandardJavaFileManager fileManager;
descriptor: Ljavax/tools/StandardJavaFileManager;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.nio.file.Path destDir;
descriptor: Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
public void <init>(jdk.javadoc.internal.doclets.toolkit.BaseConfiguration);
descriptor: (Ljdk/javadoc/internal/doclets/toolkit/BaseConfiguration;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial jdk.javadoc.internal.doclets.toolkit.util.DocFileFactory.<init>:(Ljdk/javadoc/internal/doclets/toolkit/BaseConfiguration;)V
1: aload 0
aload 1
invokevirtual jdk.javadoc.internal.doclets.toolkit.BaseConfiguration.getFileManager:()Ljavax/tools/JavaFileManager;
checkcast javax.tools.StandardJavaFileManager
putfield jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory.fileManager:Ljavax/tools/StandardJavaFileManager;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/javadoc/internal/doclets/toolkit/util/StandardDocFileFactory;
0 3 1 configuration Ljdk/javadoc/internal/doclets/toolkit/BaseConfiguration;
MethodParameters:
Name Flags
configuration
public void setDestDir(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory.destDir:Ljava/nio/file/Path;
ifnull 2
1: new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
ldc "destDir already initialized: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory.destDir:Ljava/nio/file/Path;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 4
3: aload 0
getfield jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory.fileManager:Ljavax/tools/StandardJavaFileManager;
getstatic javax.tools.DocumentationTool$Location.DOCUMENTATION_OUTPUT:Ljavax/tools/DocumentationTool$Location;
invokeinterface javax.tools.StandardJavaFileManager.hasLocation:(Ljavax/tools/JavaFileManager$Location;)Z
ifne 13
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifeq 5
ldc "."
goto 6
StackMap locals:
StackMap stack:
5: aload 1
StackMap locals:
StackMap stack: java.lang.String
6: astore 2
start local 2 7: aload 2
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 3
start local 3 8: aload 0
getfield jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory.fileManager:Ljavax/tools/StandardJavaFileManager;
getstatic javax.tools.DocumentationTool$Location.DOCUMENTATION_OUTPUT:Ljavax/tools/DocumentationTool$Location;
iconst_1
anewarray java.nio.file.Path
dup
iconst_0
aload 3
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface javax.tools.StandardJavaFileManager.setLocationFromPaths:(Ljavax/tools/JavaFileManager$Location;Ljava/util/Collection;)V
end local 3 end local 2 9: goto 13
StackMap locals:
StackMap stack: java.io.IOException
10: astore 2
start local 2 11: aload 0
getfield jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory.configuration:Ljdk/javadoc/internal/doclets/toolkit/BaseConfiguration;
invokevirtual jdk.javadoc.internal.doclets.toolkit.BaseConfiguration.getDocResources:()Ljdk/javadoc/internal/doclets/toolkit/Resources;
ldc "doclet.error.initializing.dest.dir"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokevirtual jdk.javadoc.internal.doclets.toolkit.Resources.getText:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 3
start local 3 12: new jdk.javadoc.internal.doclets.toolkit.util.SimpleDocletException
dup
aload 3
aload 2
invokespecial jdk.javadoc.internal.doclets.toolkit.util.SimpleDocletException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 13: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory.fileManager:Ljavax/tools/StandardJavaFileManager;
getstatic javax.tools.DocumentationTool$Location.DOCUMENTATION_OUTPUT:Ljavax/tools/DocumentationTool$Location;
invokeinterface javax.tools.StandardJavaFileManager.getLocationAsPaths:(Ljavax/tools/JavaFileManager$Location;)Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
putfield jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory.destDir:Ljava/nio/file/Path;
14: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/javadoc/internal/doclets/toolkit/util/StandardDocFileFactory;
0 15 1 destDirName Ljava/lang/String;
7 9 2 dirName Ljava/lang/String;
8 9 3 dir Ljava/nio/file/Path;
11 13 2 e Ljava/io/IOException;
12 13 3 message Ljava/lang/String;
Exception table:
from to target type
4 9 10 Class java.io.IOException
Exceptions:
throws jdk.javadoc.internal.doclets.toolkit.util.SimpleDocletException
MethodParameters:
Name Flags
destDirName
private java.nio.file.Path getDestDir();
descriptor: ()Ljava/nio/file/Path;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory.destDir:Ljava/nio/file/Path;
ldc "destDir not initialized"
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 0
getfield jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory.destDir:Ljava/nio/file/Path;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/javadoc/internal/doclets/toolkit/util/StandardDocFileFactory;
public jdk.javadoc.internal.doclets.toolkit.util.DocFile createFileForDirectory(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/javadoc/internal/doclets/toolkit/util/DocFile;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory$StandardDocFile
dup
aload 0
aload 1
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokespecial jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory$StandardDocFile.<init>:(Ljdk/javadoc/internal/doclets/toolkit/util/StandardDocFileFactory;Ljava/nio/file/Path;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/javadoc/internal/doclets/toolkit/util/StandardDocFileFactory;
0 1 1 file Ljava/lang/String;
MethodParameters:
Name Flags
file
public jdk.javadoc.internal.doclets.toolkit.util.DocFile createFileForInput(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/javadoc/internal/doclets/toolkit/util/DocFile;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory$StandardDocFile
dup
aload 0
aload 1
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokespecial jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory$StandardDocFile.<init>:(Ljdk/javadoc/internal/doclets/toolkit/util/StandardDocFileFactory;Ljava/nio/file/Path;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/javadoc/internal/doclets/toolkit/util/StandardDocFileFactory;
0 1 1 file Ljava/lang/String;
MethodParameters:
Name Flags
file
public jdk.javadoc.internal.doclets.toolkit.util.DocFile createFileForOutput(jdk.javadoc.internal.doclets.toolkit.util.DocPath);
descriptor: (Ljdk/javadoc/internal/doclets/toolkit/util/DocPath;)Ljdk/javadoc/internal/doclets/toolkit/util/DocFile;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: new jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory$StandardDocFile
dup
aload 0
getstatic javax.tools.DocumentationTool$Location.DOCUMENTATION_OUTPUT:Ljavax/tools/DocumentationTool$Location;
aload 1
invokespecial jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory$StandardDocFile.<init>:(Ljdk/javadoc/internal/doclets/toolkit/util/StandardDocFileFactory;Ljavax/tools/JavaFileManager$Location;Ljdk/javadoc/internal/doclets/toolkit/util/DocPath;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/javadoc/internal/doclets/toolkit/util/StandardDocFileFactory;
0 1 1 path Ljdk/javadoc/internal/doclets/toolkit/util/DocPath;
MethodParameters:
Name Flags
path
java.lang.Iterable<jdk.javadoc.internal.doclets.toolkit.util.DocFile> list(javax.tools.JavaFileManager$Location, jdk.javadoc.internal.doclets.toolkit.util.DocPath);
descriptor: (Ljavax/tools/JavaFileManager$Location;Ljdk/javadoc/internal/doclets/toolkit/util/DocPath;)Ljava/lang/Iterable;
flags: (0x0000)
Code:
stack=5, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
getstatic javax.tools.StandardLocation.SOURCE_PATH:Ljavax/tools/StandardLocation;
if_acmpne 3
1: aload 0
getfield jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory.fileManager:Ljavax/tools/StandardJavaFileManager;
getstatic javax.tools.StandardLocation.SOURCE_PATH:Ljavax/tools/StandardLocation;
invokeinterface javax.tools.StandardJavaFileManager.hasLocation:(Ljavax/tools/JavaFileManager$Location;)Z
ifne 3
2: getstatic javax.tools.StandardLocation.CLASS_PATH:Ljavax/tools/StandardLocation;
goto 4
3: StackMap locals:
StackMap stack:
aload 1
4: StackMap locals:
StackMap stack: javax.tools.JavaFileManager$Location
astore 3
start local 3 5: new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
astore 4
start local 4 6: aload 0
getfield jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory.fileManager:Ljavax/tools/StandardJavaFileManager;
aload 3
invokeinterface javax.tools.StandardJavaFileManager.getLocationAsPaths:(Ljavax/tools/JavaFileManager$Location;)Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
astore 6
goto 12
StackMap locals: jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory javax.tools.JavaFileManager$Location jdk.javadoc.internal.doclets.toolkit.util.DocPath javax.tools.JavaFileManager$Location java.util.Set top java.util.Iterator
StackMap stack:
7: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 5
start local 5 8: aload 5
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 12
9: aload 5
aload 2
invokevirtual jdk.javadoc.internal.doclets.toolkit.util.DocPath.getPath:()Ljava/lang/String;
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
astore 5
10: aload 5
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 12
11: aload 4
new jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory$StandardDocFile
dup
aload 0
aload 5
invokespecial jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory$StandardDocFile.<init>:(Ljdk/javadoc/internal/doclets/toolkit/util/StandardDocFileFactory;Ljava/nio/file/Path;)V
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 5 12: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
13: 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 14 0 this Ljdk/javadoc/internal/doclets/toolkit/util/StandardDocFileFactory;
0 14 1 location Ljavax/tools/JavaFileManager$Location;
0 14 2 path Ljdk/javadoc/internal/doclets/toolkit/util/DocPath;
5 14 3 l Ljavax/tools/JavaFileManager$Location;
6 14 4 files Ljava/util/Set<Ljdk/javadoc/internal/doclets/toolkit/util/DocFile;>;
8 12 5 f Ljava/nio/file/Path;
Signature: (Ljavax/tools/JavaFileManager$Location;Ljdk/javadoc/internal/doclets/toolkit/util/DocPath;)Ljava/lang/Iterable<Ljdk/javadoc/internal/doclets/toolkit/util/DocFile;>;
MethodParameters:
Name Flags
location
path
private static java.nio.file.Path newFile(java.nio.file.Path, java.lang.String);
descriptor: (Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/Path;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 1
aload 1
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
aload 1
invokeinterface java.nio.file.Path.resolve:(Ljava/lang/String;)Ljava/nio/file/Path;
StackMap locals:
StackMap stack: java.nio.file.Path
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 dir Ljava/nio/file/Path;
0 3 1 path Ljava/lang/String;
MethodParameters:
Name Flags
dir
path
}
SourceFile: "StandardDocFileFactory.java"
NestMembers:
jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory$StandardDocFile
InnerClasses:
public final Location = javax.tools.DocumentationTool$Location of javax.tools.DocumentationTool
public abstract Location = javax.tools.JavaFileManager$Location of javax.tools.JavaFileManager
StandardDocFile = jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory$StandardDocFile of jdk.javadoc.internal.doclets.toolkit.util.StandardDocFileFactory