⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 javadoc.java

📁 ant源代码
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
     * @param path the string version of the path.     * @deprecated since 1.5.x.     *             Use the {@link #setExtdirs(Path)} version.     */    public void setExtdirs(String path) {        cmd.createArgument().setValue("-extdirs");        cmd.createArgument().setValue(path);    }    /**     * Set the location of the extensions directories.     *     * @param path a path containing the extension directories.     */    public void setExtdirs(Path path) {        cmd.createArgument().setValue("-extdirs");        cmd.createArgument().setPath(path);    }    /**     * Run javadoc in verbose mode     *     * @param b true if operation is to be verbose.     */    public void setVerbose(boolean b) {        addArgIf(b, "-verbose");    }    /**     * Set the local to use in documentation generation.     *     * @param locale the locale to use.     */    public void setLocale(String locale) {        // createArgument(true) is necessary to make sure -locale        // is the first argument (required in 1.3+).        cmd.createArgument(true).setValue(locale);        cmd.createArgument(true).setValue("-locale");    }    /**     * Set the encoding name of the source files,     *     * @param enc the name of the encoding for the source files.     */    public void setEncoding(String enc) {        cmd.createArgument().setValue("-encoding");        cmd.createArgument().setValue(enc);    }    /**     * Include the version tag in the generated documentation.     *     * @param b true if the version tag should be included.     */    public void setVersion(boolean b) {        this.version = b;    }    /**     * Generate the &quot;use&quot page for each package.     *     * @param b true if the use page should be generated.     */    public void setUse(boolean b) {        addArgIf(b, "-use");    }    /**     * Include the author tag in the generated documentation.     *     * @param b true if the author tag should be included.     */    public void setAuthor(boolean b) {        author = b;    }    /**     * Generate a split index     *     * @param b true if the index should be split into a file per letter.     */    public void setSplitindex(boolean b) {        addArgIf(b, "-splitindex");    }    /**     * Set the title to be placed in the HTML &lt;title&gt; tag of the     * generated documentation.     *     * @param title the window title to use.     */    public void setWindowtitle(String title) {        addArgIfNotEmpty("-windowtitle", title);    }    /**     * Set the title of the generated overview page.     *     * @param doctitle the Document title.     */    public void setDoctitle(String doctitle) {        Html h = new Html();        h.addText(doctitle);        addDoctitle(h);    }    /**     * Add a document title to use for the overview page.     *     * @param text the HTML element containing the document title.     */    public void addDoctitle(Html text) {        doctitle = text;    }    /**     * Set the header text to be placed at the top of each output file.     *     * @param header the header text     */    public void setHeader(String header) {        Html h = new Html();        h.addText(header);        addHeader(h);    }    /**     * Set the header text to be placed at the top of each output file.     *     * @param text the header text     */    public void addHeader(Html text) {        header = text;    }    /**     * Set the footer text to be placed at the bottom of each output file.     *     * @param footer the footer text.     */    public void setFooter(String footer) {        Html h = new Html();        h.addText(footer);        addFooter(h);    }    /**     * Set the footer text to be placed at the bottom of each output file.     *     * @param text the footer text.     */    public void addFooter(Html text) {        footer = text;    }    /**     * Set the text to be placed at the bottom of each output file.     *     * @param bottom the bottom text.     */    public void setBottom(String bottom) {        Html h = new Html();        h.addText(bottom);        addBottom(h);    }    /**     * Set the text to be placed at the bottom of each output file.     *     * @param text the bottom text.     */    public void addBottom(Html text) {        bottom = text;    }    /**     * Link to docs at "url" using package list at "url2"     * - separate the URLs by using a space character.     *     * @param src the offline link specification (url and package list)     */    public void setLinkoffline(String src) {        LinkArgument le = createLink();        le.setOffline(true);        String linkOfflineError = "The linkoffline attribute must include"            + " a URL and a package-list file location separated by a"            + " space";        if (src.trim().length() == 0) {            throw new BuildException(linkOfflineError);        }        StringTokenizer tok = new StringTokenizer(src, " ", false);        le.setHref(tok.nextToken());        if (!tok.hasMoreTokens()) {            throw new BuildException(linkOfflineError);        }        le.setPackagelistLoc(getProject().resolveFile(tok.nextToken()));    }    /**     * Group specified packages together in overview page.     *     * @param src the group packages - a command separated list of group specs,     *        each one being a group name and package specification separated     *        by a space.     */    public void setGroup(String src) {        group = src;    }    /**     * Create links to Javadoc output at the given URL.     * @param src the URL to link to     */    public void setLink(String src) {        createLink().setHref(src);    }    /**     * Control deprecation infromation     *     * @param b If true, do not include deprecated information.     */    public void setNodeprecated(boolean b) {        addArgIf(b, "-nodeprecated");    }    /**     * Control deprecated list generation     *     * @param b if true, do not generate deprecated list.     */    public void setNodeprecatedlist(boolean b) {        addArgIf(b, "-nodeprecatedlist");    }    /**     * Control class tree generation.     *     * @param b if true, do not generate class hierarchy.     */    public void setNotree(boolean b) {        addArgIf(b, "-notree");    }    /**     * Control generation of index.     *     * @param b if true, do not generate index.     */    public void setNoindex(boolean b) {        addArgIf(b, "-noindex");    }    /**     * Control generation of help link.     *     * @param b if true, do not generate help link     */    public void setNohelp(boolean b) {        addArgIf(b, "-nohelp");    }    /**     * Control generation of the navigation bar.     *     * @param b if true, do not generate navigation bar.     */    public void setNonavbar(boolean b) {        addArgIf(b, "-nonavbar");    }    /**     * Control warnings about serial tag.     *     * @param b if true, generate warning about the serial tag.     */    public void setSerialwarn(boolean b) {        addArgIf(b, "-serialwarn");    }    /**     * Specifies the CSS stylesheet file to use.     *     * @param f the file with the CSS to use.     */    public void setStylesheetfile(File f) {        cmd.createArgument().setValue("-stylesheetfile");        cmd.createArgument().setFile(f);    }    /**     * Specifies the HTML help file to use.     *     * @param f the file containing help content.     */    public void setHelpfile(File f) {        cmd.createArgument().setValue("-helpfile");        cmd.createArgument().setFile(f);    }    /**     * Output file encoding name.     *     * @param enc name of the encoding to use.     */    public void setDocencoding(String enc) {        cmd.createArgument().setValue("-docencoding");        cmd.createArgument().setValue(enc);    }    /**     * The name of a file containing the packages to process.     *     * @param src the file containing the package list.     */    public void setPackageList(String src) {        packageList = src;    }    /**     * Create link to Javadoc output at the given URL.     *     * @return link argument to configure     */    public LinkArgument createLink() {        LinkArgument la = new LinkArgument();        links.addElement(la);        return la;    }    /**     * Represents a link triplet (href, whether link is offline,     * location of the package list if off line)     */    public class LinkArgument {        private String href;        private boolean offline = false;        private File packagelistLoc;        private boolean resolveLink = false;        /** Constructor for LinkArguement */        public LinkArgument() {            //empty        }        /**         * Set the href attribute.         * @param hr a <code>String</code> value         */        public void setHref(String hr) {            href = hr;        }        /**         * Get the href attribute.         * @return the href attribute.         */        public String getHref() {            return href;        }        /**         * Set the packetlist location attribute.         * @param src a <code>File</code> value         */        public void setPackagelistLoc(File src) {            packagelistLoc = src;        }        /**         * Get the packetList location attribute.         * @return the packetList location attribute.         */        public File getPackagelistLoc() {            return packagelistLoc;        }        /**         * Set the offline attribute.         * @param offline a <code>boolean</code> value         */        public void setOffline(boolean offline) {            this.offline = offline;        }        /**         * Get the linkOffline attribute.         * @return the linkOffline attribute.         */        public boolean isLinkOffline() {            return offline;        }        /**         * Sets whether Ant should resolve the link attribute relative         * to the current basedir.         * @param resolve a <code>boolean</code> value         */        public void setResolveLink(boolean resolve) {            this.resolveLink = resolve;        }        /**         * should Ant resolve the link attribute relative to the         * current basedir?         * @return the resolveLink attribute.         */        public boolean shouldResolveLink() {            return resolveLink;        }    }    /**     * Creates and adds a -tag argument. This is used to specify     * custom tags. This argument is only available for Javadoc 1.4,     * and will generate a verbose message (and then be ignored)     * when run on Java versions below 1.4.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -