com.sun.tools.doclets.internal.toolkit.Configuration Java Examples
The following examples show how to use
com.sun.tools.doclets.internal.toolkit.Configuration.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DocFileFactory.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Get the appropriate factory, based on the file manager given in the * configuration. */ static synchronized DocFileFactory getFactory(Configuration configuration) { DocFileFactory f = factories.get(configuration); if (f == null) { JavaFileManager fm = configuration.getFileManager(); if (fm instanceof StandardJavaFileManager) f = new StandardDocFileFactory(configuration); else { try { Class<?> pathFileManagerClass = Class.forName("com.sun.tools.javac.nio.PathFileManager"); if (pathFileManagerClass.isAssignableFrom(fm.getClass())) f = new PathDocFileFactory(configuration); } catch (Throwable t) { throw new IllegalStateException(t); } } factories.put(configuration, f); } return f; }
Example #2
Source File: DocFileFactory.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * Get the appropriate factory, based on the file manager given in the * configuration. */ static synchronized DocFileFactory getFactory(Configuration configuration) { DocFileFactory f = factories.get(configuration); if (f == null) { JavaFileManager fm = configuration.getFileManager(); if (fm instanceof StandardJavaFileManager) f = new StandardDocFileFactory(configuration); else { try { Class<?> pathFileManagerClass = Class.forName("com.sun.tools.javac.nio.PathFileManager"); if (pathFileManagerClass.isAssignableFrom(fm.getClass())) f = new PathDocFileFactory(configuration); } catch (Throwable t) { throw new IllegalStateException(t); } } factories.put(configuration, f); } return f; }
Example #3
Source File: PathDocFileFactory.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public PathDocFileFactory(Configuration configuration) { super(configuration); fileManager = (PathFileManager) configuration.getFileManager(); if (!configuration.destDirName.isEmpty() || !fileManager.hasLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT)) { try { String dirName = configuration.destDirName.isEmpty() ? "." : configuration.destDirName; Path dir = fileManager.getDefaultFileSystem().getPath(dirName); fileManager.setLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT, Arrays.asList(dir)); } catch (IOException e) { throw new DocletAbortException(e); } } destDir = fileManager.getLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT).iterator().next(); }
Example #4
Source File: DocFileFactory.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Get the appropriate factory, based on the file manager given in the * configuration. */ static synchronized DocFileFactory getFactory(Configuration configuration) { DocFileFactory f = factories.get(configuration); if (f == null) { JavaFileManager fm = configuration.getFileManager(); if (fm instanceof StandardJavaFileManager) f = new StandardDocFileFactory(configuration); else { try { Class<?> pathFileManagerClass = Class.forName("com.sun.tools.javac.nio.PathFileManager"); if (pathFileManagerClass.isAssignableFrom(fm.getClass())) f = new PathDocFileFactory(configuration); } catch (Throwable t) { throw new IllegalStateException(t); } } factories.put(configuration, f); } return f; }
Example #5
Source File: DocFileFactory.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Get the appropriate factory, based on the file manager given in the * configuration. */ static synchronized DocFileFactory getFactory(Configuration configuration) { DocFileFactory f = factories.get(configuration); if (f == null) { JavaFileManager fm = configuration.getFileManager(); if (fm instanceof StandardJavaFileManager) f = new StandardDocFileFactory(configuration); else { try { Class<?> pathFileManagerClass = Class.forName("com.sun.tools.javac.nio.PathFileManager"); if (pathFileManagerClass.isAssignableFrom(fm.getClass())) f = new PathDocFileFactory(configuration); } catch (Throwable t) { throw new IllegalStateException(t); } } factories.put(configuration, f); } return f; }
Example #6
Source File: PathDocFileFactory.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public PathDocFileFactory(Configuration configuration) { super(configuration); fileManager = (PathFileManager) configuration.getFileManager(); if (!configuration.destDirName.isEmpty() || !fileManager.hasLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT)) { try { String dirName = configuration.destDirName.isEmpty() ? "." : configuration.destDirName; Path dir = fileManager.getDefaultFileSystem().getPath(dirName); fileManager.setLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT, Arrays.asList(dir)); } catch (IOException e) { throw new DocletAbortException(e); } } destDir = fileManager.getLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT).iterator().next(); }
Example #7
Source File: DocFileFactory.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * Get the appropriate factory, based on the file manager given in the * configuration. */ static synchronized DocFileFactory getFactory(Configuration configuration) { DocFileFactory f = factories.get(configuration); if (f == null) { JavaFileManager fm = configuration.getFileManager(); if (fm instanceof StandardJavaFileManager) f = new StandardDocFileFactory(configuration); else { try { Class<?> pathFileManagerClass = Class.forName("com.sun.tools.javac.nio.PathFileManager"); if (pathFileManagerClass.isAssignableFrom(fm.getClass())) f = new PathDocFileFactory(configuration); } catch (Throwable t) { throw new IllegalStateException(t); } } factories.put(configuration, f); } return f; }
Example #8
Source File: DocFileFactory.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Get the appropriate factory, based on the file manager given in the * configuration. */ static synchronized DocFileFactory getFactory(Configuration configuration) { DocFileFactory f = factories.get(configuration); if (f == null) { JavaFileManager fm = configuration.getFileManager(); if (fm instanceof StandardJavaFileManager) f = new StandardDocFileFactory(configuration); else { try { Class<?> pathFileManagerClass = Class.forName("com.sun.tools.javac.nio.PathFileManager"); if (pathFileManagerClass.isAssignableFrom(fm.getClass())) f = new PathDocFileFactory(configuration); } catch (Throwable t) { throw new IllegalStateException(t); } } factories.put(configuration, f); } return f; }
Example #9
Source File: PathDocFileFactory.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public PathDocFileFactory(Configuration configuration) { super(configuration); fileManager = (PathFileManager) configuration.getFileManager(); if (!configuration.destDirName.isEmpty() || !fileManager.hasLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT)) { try { String dirName = configuration.destDirName.isEmpty() ? "." : configuration.destDirName; Path dir = fileManager.getDefaultFileSystem().getPath(dirName); fileManager.setLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT, Arrays.asList(dir)); } catch (IOException e) { throw new DocletAbortException(e); } } destDir = fileManager.getLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT).iterator().next(); }
Example #10
Source File: PathDocFileFactory.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public PathDocFileFactory(Configuration configuration) { super(configuration); fileManager = (PathFileManager) configuration.getFileManager(); if (!configuration.destDirName.isEmpty() || !fileManager.hasLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT)) { try { String dirName = configuration.destDirName.isEmpty() ? "." : configuration.destDirName; Path dir = fileManager.getDefaultFileSystem().getPath(dirName); fileManager.setLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT, Arrays.asList(dir)); } catch (IOException e) { throw new DocletAbortException(e); } } destDir = fileManager.getLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT).iterator().next(); }
Example #11
Source File: DeprecatedAPIListBuilder.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Constructor. * * @param configuration the current configuration of the doclet */ public DeprecatedAPIListBuilder(Configuration configuration) { deprecatedLists = new ArrayList<List<Doc>>(); for (int i = 0; i < NUM_TYPES; i++) { deprecatedLists.add(i, new ArrayList<Doc>()); } buildDeprecatedAPIInfo(configuration); }
Example #12
Source File: PathDocFileFactory.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public PathDocFileFactory(Configuration configuration) { super(configuration); fileManager = (PathFileManager) configuration.getFileManager(); if (!configuration.destDirName.isEmpty() || !fileManager.hasLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT)) { try { String dirName = configuration.destDirName.isEmpty() ? "." : configuration.destDirName; Path dir = fileManager.getDefaultFileSystem().getPath(dirName); fileManager.setLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT, Arrays.asList(dir)); } catch (IOException e) { throw new DocletAbortException(e); } } destDir = fileManager.getLocation(DocumentationTool.Location.DOCUMENTATION_OUTPUT).iterator().next(); }
Example #13
Source File: ClassDocCatalog.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Construct a new ClassDocCatalog. * * @param classdocs the array of ClassDocs to catalog */ public ClassDocCatalog (ClassDoc[] classdocs, Configuration config) { init(); this.configuration = config; for (int i = 0; i < classdocs.length; i++) { addClassDoc(classdocs[i]); } }
Example #14
Source File: ClassDocCatalog.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Construct a new ClassDocCatalog. * * @param classdocs the array of ClassDocs to catalog */ public ClassDocCatalog (ClassDoc[] classdocs, Configuration config) { init(); this.configuration = config; for (int i = 0; i < classdocs.length; i++) { addClassDoc(classdocs[i]); } }
Example #15
Source File: ClassDocCatalog.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Construct a new ClassDocCatalog. * * @param classdocs the array of ClassDocs to catalog */ public ClassDocCatalog (ClassDoc[] classdocs, Configuration config) { init(); this.configuration = config; for (int i = 0; i < classdocs.length; i++) { addClassDoc(classdocs[i]); } }
Example #16
Source File: ClassDocCatalog.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Construct a new ClassDocCatalog. * * @param classdocs the array of ClassDocs to catalog */ public ClassDocCatalog (ClassDoc[] classdocs, Configuration config) { init(); this.configuration = config; this.utils = config.utils; for (ClassDoc classdoc : classdocs) { addClassDoc(classdoc); } }
Example #17
Source File: DeprecatedAPIListBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * Constructor. * * @param configuration the current configuration of the doclet */ public DeprecatedAPIListBuilder(Configuration configuration) { this.configuration = configuration; this.utils = configuration.utils; deprecatedLists = new ArrayList<>(); for (int i = 0; i < NUM_TYPES; i++) { deprecatedLists.add(i, new ArrayList<Doc>()); } buildDeprecatedAPIInfo(); }
Example #18
Source File: DeprecatedAPIListBuilder.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Constructor. * * @param configuration the current configuration of the doclet */ public DeprecatedAPIListBuilder(Configuration configuration) { deprecatedLists = new ArrayList<List<Doc>>(); for (int i = 0; i < NUM_TYPES; i++) { deprecatedLists.add(i, new ArrayList<Doc>()); } buildDeprecatedAPIInfo(configuration); }
Example #19
Source File: DeprecatedAPIListBuilder.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Constructor. * * @param configuration the current configuration of the doclet */ public DeprecatedAPIListBuilder(Configuration configuration) { deprecatedLists = new ArrayList<List<Doc>>(); for (int i = 0; i < NUM_TYPES; i++) { deprecatedLists.add(i, new ArrayList<Doc>()); } buildDeprecatedAPIInfo(configuration); }
Example #20
Source File: StandardDocFileFactory.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public StandardDocFileFactory(Configuration configuration) { super(configuration); fileManager = (StandardJavaFileManager) configuration.getFileManager(); }
Example #21
Source File: StandardDocFileFactory.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public StandardDocFileFactory(Configuration configuration) { super(configuration); fileManager = (StandardJavaFileManager) configuration.getFileManager(); }
Example #22
Source File: DeprecatedAPIListBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
/** * Build the sorted list of all the deprecated APIs in this run. * Build separate lists for deprecated packages, classes, constructors, * methods and fields. * * @param configuration the current configuration of the doclet. */ private void buildDeprecatedAPIInfo(Configuration configuration) { PackageDoc[] packages = configuration.packages; PackageDoc pkg; for (int c = 0; c < packages.length; c++) { pkg = packages[c]; if (Util.isDeprecated(pkg)) { getList(PACKAGE).add(pkg); } } ClassDoc[] classes = configuration.root.classes(); for (int i = 0; i < classes.length; i++) { ClassDoc cd = classes[i]; if (Util.isDeprecated(cd)) { if (cd.isOrdinaryClass()) { getList(CLASS).add(cd); } else if (cd.isInterface()) { getList(INTERFACE).add(cd); } else if (cd.isException()) { getList(EXCEPTION).add(cd); } else if (cd.isEnum()) { getList(ENUM).add(cd); } else if (cd.isError()) { getList(ERROR).add(cd); } else if (cd.isAnnotationType()) { getList(ANNOTATION_TYPE).add(cd); } } composeDeprecatedList(getList(FIELD), cd.fields()); composeDeprecatedList(getList(METHOD), cd.methods()); composeDeprecatedList(getList(CONSTRUCTOR), cd.constructors()); if (cd.isEnum()) { composeDeprecatedList(getList(ENUM_CONSTANT), cd.enumConstants()); } if (cd.isAnnotationType()) { composeDeprecatedList(getList(ANNOTATION_TYPE_MEMBER), ((AnnotationTypeDoc) cd).elements()); } } sortDeprecatedLists(); }
Example #23
Source File: DocFile.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** Create a DocFile without a location or path */ protected DocFile(Configuration configuration) { this.configuration = configuration; this.location = null; this.path = null; }
Example #24
Source File: DocFile.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
/** Create a DocFile for a given location and relative path. */ protected DocFile(Configuration configuration, Location location, DocPath path) { this.configuration = configuration; this.location = location; this.path = path; }
Example #25
Source File: StandardDocFileFactory.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public StandardDocFileFactory(Configuration configuration) { super(configuration); fileManager = (StandardJavaFileManager) configuration.getFileManager(); }
Example #26
Source File: DocFile.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
/** Create a DocFile for a file that will be opened for writing. */ public static DocFile createFileForOutput(Configuration configuration, DocPath path) { return DocFileFactory.getFactory(configuration).createFileForOutput(path); }
Example #27
Source File: DocFile.java From hottub with GNU General Public License v2.0 | 4 votes |
/** Create a DocFile for a file that will be opened for reading. */ public static DocFile createFileForInput(Configuration configuration, String file) { return DocFileFactory.getFactory(configuration).createFileForInput(file); }
Example #28
Source File: SimpleDocFileFactory.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public SimpleDocFileFactory(Configuration configuration) { super(configuration); }
Example #29
Source File: DeprecatedAPIListBuilder.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** * Build the sorted list of all the deprecated APIs in this run. * Build separate lists for deprecated packages, classes, constructors, * methods and fields. * * @param configuration the current configuration of the doclet. */ private void buildDeprecatedAPIInfo(Configuration configuration) { PackageDoc[] packages = configuration.packages; PackageDoc pkg; for (int c = 0; c < packages.length; c++) { pkg = packages[c]; if (Util.isDeprecated(pkg)) { getList(PACKAGE).add(pkg); } } ClassDoc[] classes = configuration.root.classes(); for (int i = 0; i < classes.length; i++) { ClassDoc cd = classes[i]; if (Util.isDeprecated(cd)) { if (cd.isOrdinaryClass()) { getList(CLASS).add(cd); } else if (cd.isInterface()) { getList(INTERFACE).add(cd); } else if (cd.isException()) { getList(EXCEPTION).add(cd); } else if (cd.isEnum()) { getList(ENUM).add(cd); } else if (cd.isError()) { getList(ERROR).add(cd); } else if (cd.isAnnotationType()) { getList(ANNOTATION_TYPE).add(cd); } } composeDeprecatedList(getList(FIELD), cd.fields()); composeDeprecatedList(getList(METHOD), cd.methods()); composeDeprecatedList(getList(CONSTRUCTOR), cd.constructors()); if (cd.isEnum()) { composeDeprecatedList(getList(ENUM_CONSTANT), cd.enumConstants()); } if (cd.isAnnotationType()) { composeDeprecatedList(getList(ANNOTATION_TYPE_MEMBER), ((AnnotationTypeDoc) cd).elements()); } } sortDeprecatedLists(); }
Example #30
Source File: DeprecatedAPIListBuilder.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** * Build the sorted list of all the deprecated APIs in this run. * Build separate lists for deprecated packages, classes, constructors, * methods and fields. * * @param configuration the current configuration of the doclet. */ private void buildDeprecatedAPIInfo(Configuration configuration) { PackageDoc[] packages = configuration.packages; PackageDoc pkg; for (int c = 0; c < packages.length; c++) { pkg = packages[c]; if (Util.isDeprecated(pkg)) { getList(PACKAGE).add(pkg); } } ClassDoc[] classes = configuration.root.classes(); for (int i = 0; i < classes.length; i++) { ClassDoc cd = classes[i]; if (Util.isDeprecated(cd)) { if (cd.isOrdinaryClass()) { getList(CLASS).add(cd); } else if (cd.isInterface()) { getList(INTERFACE).add(cd); } else if (cd.isException()) { getList(EXCEPTION).add(cd); } else if (cd.isEnum()) { getList(ENUM).add(cd); } else if (cd.isError()) { getList(ERROR).add(cd); } else if (cd.isAnnotationType()) { getList(ANNOTATION_TYPE).add(cd); } } composeDeprecatedList(getList(FIELD), cd.fields()); composeDeprecatedList(getList(METHOD), cd.methods()); composeDeprecatedList(getList(CONSTRUCTOR), cd.constructors()); if (cd.isEnum()) { composeDeprecatedList(getList(ENUM_CONSTANT), cd.enumConstants()); } if (cd.isAnnotationType()) { composeDeprecatedList(getList(ANNOTATION_TYPE_MEMBER), ((AnnotationTypeDoc) cd).elements()); } } sortDeprecatedLists(); }