IT. Expert System.

Java Standard Edition (SE)



Class Doclet

  • public abstract class Doclet
    extends Object
    This is an example of a starting class for a doclet, showing the entry-point methods. A starting class must import com.sun.javadoc.* and implement the start(RootDoc) method, as described in the package description. If the doclet takes command line options, it must also implement optionLength and validOptions.

    A doclet supporting the language features added since 1.1 (such as generics and annotations) should indicate this by implementing languageVersion. In the absence of this the doclet should not invoke any of the Doclet API methods added since 1.5, and the results of several other methods are modified so as to conceal the new constructs (such as type parameters) from the doclet.

    To start the doclet, pass -doclet followed by the fully-qualified name of the starting class on the javadoc tool command line.

    • Constructor Detail

      • Doclet

        public Doclet()
    • Method Detail

      • start

        public static boolean start(RootDoc root)
        Generate documentation here. This method is required for all doclets.
        true on success.
      • optionLength

        public static int optionLength(String option)
        Check for doclet-added options. Returns the number of arguments you must specify on the command line for the given option. For example, "-d docs" would return 2.

        This method is required if the doclet contains any options. If this method is missing, Javadoc will print an invalid flag error for every option.

        number of arguments on the command line for an option including the option name itself. Zero return means option not known. Negative value means error occurred.
      • validOptions

        public static boolean validOptions(String[][] options,
                                           DocErrorReporter reporter)
        Check that options have the correct arguments.

        This method is not required, but is recommended, as every option will be considered valid if this method is not present. It will default gracefully (to true) if absent.

        Printing option related error messages (using the provided DocErrorReporter) is the responsibility of this method.

        true if the options are valid.
      • languageVersion

        public static LanguageVersion languageVersion()
        Return the version of the Java Programming Language supported by this doclet.

        This method is required by any doclet supporting a language version newer than 1.1.

        the language version supported by this doclet.


Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)





Java Script








Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 718 / 159282825. Delta: 0.03693 с