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

📄 javadoc.java

📁 java ant的源码!非常值得看的源码
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
     * Javadoc error.     */    private boolean failOnError = false;    private Path sourcePath = null;    private File destDir = null;    private Vector sourceFiles = new Vector();    private Vector packageNames = new Vector();    private Vector excludePackageNames = new Vector(1);    private boolean author = true;    private boolean version = true;    private DocletInfo doclet = null;    private Path classpath = null;    private Path bootclasspath = null;    private String group = null;    private String packageList = null;    private Vector links = new Vector();    private Vector groups = new Vector();    private Vector tags = new Vector();    private boolean useDefaultExcludes = true;    private Html doctitle = null;    private Html header = null;    private Html footer = null;    private Html bottom = null;    private boolean useExternalFile = false;    private String source = null;    private boolean linksource = false;    private boolean breakiterator = false;    private String noqualifier;    private boolean includeNoSourcePackages = false;    private boolean old = false;    private String executable = null;    private ResourceCollectionContainer nestedSourceFiles        = new ResourceCollectionContainer();    private Vector packageSets = new Vector();    /**     * Work around command line length limit by using an external file     * for the sourcefiles.     *     * @param b true if an external file is to be used.     */    public void setUseExternalFile(boolean b) {        useExternalFile = b;    }    /**     * Sets whether default exclusions should be used or not.     *     * @param useDefaultExcludes "true"|"on"|"yes" when default exclusions     *                           should be used, "false"|"off"|"no" when they     *                           shouldn't be used.     */    public void setDefaultexcludes(boolean useDefaultExcludes) {        this.useDefaultExcludes = useDefaultExcludes;    }    /**     * Set the maximum memory to be used by the javadoc process     *     * @param max a string indicating the maximum memory according to the     *        JVM conventions (e.g. 128m is 128 Megabytes)     */    public void setMaxmemory(String max) {        cmd.createArgument().setValue("-J-Xmx" + max);    }    /**     * Set an additional parameter on the command line     *     * @param add the additional command line parameter for the javadoc task.     */    public void setAdditionalparam(String add) {        cmd.createArgument().setLine(add);    }    /**     * Adds a command-line argument.     * @return a command-line argument to configure     * @since Ant 1.6     */    public Commandline.Argument createArg() {        return cmd.createArgument();    }    /**     * Specify where to find source file     *     * @param src a Path instance containing the various source directories.     */    public void setSourcepath(Path src) {        if (sourcePath == null) {            sourcePath = src;        } else {            sourcePath.append(src);        }    }    /**     * Create a path to be configured with the locations of the source     * files.     *     * @return a new Path instance to be configured by the Ant core.     */    public Path createSourcepath() {        if (sourcePath == null) {            sourcePath = new Path(getProject());        }        return sourcePath.createPath();    }    /**     * Adds a reference to a CLASSPATH defined elsewhere.     *     * @param r the reference containing the source path definition.     */    public void setSourcepathRef(Reference r) {        createSourcepath().setRefid(r);    }    /**     * Set the directory where the Javadoc output will be generated.     *     * @param dir the destination directory.     */    public void setDestdir(File dir) {        destDir = dir;        cmd.createArgument().setValue("-d");        cmd.createArgument().setFile(destDir);    }    /**     * Set the list of source files to process.     *     * @param src a comma separated list of source files.     */    public void setSourcefiles(String src) {        StringTokenizer tok = new StringTokenizer(src, ",");        while (tok.hasMoreTokens()) {            String f = tok.nextToken();            SourceFile sf = new SourceFile();            sf.setFile(getProject().resolveFile(f.trim()));            addSource(sf);        }    }    /**     * Add a single source file.     *     * @param sf the source file to be processed.     */    public void addSource(SourceFile sf) {        sourceFiles.addElement(sf);    }    /**     * Set the package names to be processed.     *     * @param packages a comma separated list of packages specs     *        (may be wildcarded).     *     * @see #addPackage for wildcard information.     */    public void setPackagenames(String packages) {        StringTokenizer tok = new StringTokenizer(packages, ",");        while (tok.hasMoreTokens()) {            String p = tok.nextToken();            PackageName pn = new PackageName();            pn.setName(p);            addPackage(pn);        }    }    /**     * Add a single package to be processed.     *     * If the package name ends with ".*" the Javadoc task     * will find and process all subpackages.     *     * @param pn the package name, possibly wildcarded.     */    public void addPackage(PackageName pn) {        packageNames.addElement(pn);    }    /**     * Set the list of packages to be excluded.     *     * @param packages a comma separated list of packages to be excluded.     *        This may not include wildcards.     */    public void setExcludePackageNames(String packages) {        StringTokenizer tok = new StringTokenizer(packages, ",");        while (tok.hasMoreTokens()) {            String p = tok.nextToken();            PackageName pn = new PackageName();            pn.setName(p);            addExcludePackage(pn);        }    }    /**     * Add a package to be excluded from the Javadoc run.     *     * @param pn the name of the package (wildcards are not permitted).     */    public void addExcludePackage(PackageName pn) {        excludePackageNames.addElement(pn);    }    /**     * Specify the file containing the overview to be included in the generated     * documentation.     *     * @param f the file containing the overview.     */    public void setOverview(File f) {        cmd.createArgument().setValue("-overview");        cmd.createArgument().setFile(f);    }    /**     * Indicate whether only public classes and members are to be included in     * the scope processed     *     * @param b true if scope is to be public.     */    public void setPublic(boolean b) {        addArgIf(b, "-public");    }    /**     * Indicate whether only protected and public classes and members are to     * be included in the scope processed     *     * @param b true if scope is to be protected.     */    public void setProtected(boolean b) {        addArgIf(b, "-protected");    }    /**     * Indicate whether only package, protected and public classes and     * members are to be included in the scope processed     *     * @param b true if scope is to be package level.     */    public void setPackage(boolean b) {        addArgIf(b, "-package");    }    /**     * Indicate whether all classes and     * members are to be included in the scope processed     *     * @param b true if scope is to be private level.     */    public void setPrivate(boolean b) {        addArgIf(b, "-private");    }    /**     * Set the scope to be processed. This is an alternative to the     * use of the setPublic, setPrivate, etc methods. It gives better build     * file control over what scope is processed.     *     * @param at the scope to be processed.     */    public void setAccess(AccessType at) {        cmd.createArgument().setValue("-" + at.getValue());    }    /**     * Set the class that starts the doclet used in generating the     * documentation.     *     * @param docletName the name of the doclet class.     */    public void setDoclet(String docletName) {        if (doclet == null) {            doclet = new DocletInfo();            doclet.setProject(getProject());        }        doclet.setName(docletName);    }    /**     * Set the classpath used to find the doclet class.     *     * @param docletPath the doclet classpath.     */    public void setDocletPath(Path docletPath) {        if (doclet == null) {            doclet = new DocletInfo();            doclet.setProject(getProject());        }        doclet.setPath(docletPath);    }    /**     * Set the classpath used to find the doclet class by reference.     *     * @param r the reference to the Path instance to use as the doclet     *        classpath.     */    public void setDocletPathRef(Reference r) {        if (doclet == null) {            doclet = new DocletInfo();            doclet.setProject(getProject());        }        doclet.createPath().setRefid(r);    }    /**     * Create a doclet to be used in the documentation generation.     *     * @return a new DocletInfo instance to be configured.     */    public DocletInfo createDoclet() {        if (doclet == null) {            doclet = new DocletInfo();        }        return doclet;    }    /**     * Add a taglet     *     * @param tagletInfo information about the taglet.     */    public void addTaglet(ExtensionInfo tagletInfo) {        tags.addElement(tagletInfo);    }    /**     * Indicate whether Javadoc should produce old style (JDK 1.1)     * documentation.     *     * This is not supported by JDK 1.1 and has been phased out in JDK 1.4     *     * @param b if true attempt to generate old style documentation.     */    public void setOld(boolean b) {        old = b;    }    /**     * Set the classpath to be used for this Javadoc run.     *     * @param path an Ant Path object containing the compilation     *        classpath.     */    public void setClasspath(Path path) {        if (classpath == null) {            classpath = path;        } else {            classpath.append(path);        }    }    /**     * Create a Path to be configured with the classpath to use     *     * @return a new Path instance to be configured with the classpath.     */    public Path createClasspath() {        if (classpath == null) {            classpath = new Path(getProject());        }        return classpath.createPath();    }    /**     * Adds a reference to a CLASSPATH defined elsewhere.     *     * @param r the reference to an instance defining the classpath.     */    public void setClasspathRef(Reference r) {        createClasspath().setRefid(r);    }    /**     * Set the boot classpath to use.     *     * @param path the boot classpath.     */    public void setBootclasspath(Path path) {        if (bootclasspath == null) {            bootclasspath = path;        } else {            bootclasspath.append(path);        }    }    /**     * Create a Path to be configured with the boot classpath     *     * @return a new Path instance to be configured with the boot classpath.     */    public Path createBootclasspath() {        if (bootclasspath == null) {            bootclasspath = new Path(getProject());        }        return bootclasspath.createPath();    }    /**     * Adds a reference to a CLASSPATH defined elsewhere.     *     * @param r the reference to an instance defining the bootclasspath.     */    public void setBootClasspathRef(Reference r) {        createBootclasspath().setRefid(r);    }

⌨️ 快捷键说明

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