init method with an appropriate locale
and reporter.
getSupportedOptions,
and getSupportedSourceVersion.
These methods are only called once.
run method on the doclet
object, giving it a DocletEnvironment object, from which the doclet can determine
the elements to be included in the documentation.
If a doclet object is created and used without the above protocol being followed, then the doclet's behavior is not defined by this interface specification.
To start the doclet, pass -doclet followed by the fully-qualified
name of the entry point class (i.e. the implementation of this interface) on
the javadoc tool command line.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | Doclet.
An encapsulation of option name, aliases, parameters and descriptions as used by the Doclet. |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Set | Returns: a set containing all the supported options, an empty set if noneReturns all the supported options. |
| public SourceVersion | Returns: the language version supported by this doclet, usually the latest versionReturns the version of the Java Programming Language supported by this doclet. |
| public void | |
| public boolean | Returns: true on successfrom which essential information can be extracted environment)The entry point of the doclet. |
| getName | back to summary |
|---|---|
| public String getName() Returns a name identifying the doclet. A name is a simple identifier without white spaces, as defined in The Java Language Specification, section 6.2 "Names and Identifiers".
| |
| getSupportedOptions | back to summary |
|---|---|
| public Set Returns all the supported options. | |
| getSupportedSourceVersion | back to summary |
|---|---|
| public SourceVersion getSupportedSourceVersion() Returns the version of the Java Programming Language supported by this doclet.
| |
| init | back to summary |
|---|---|
| public void init(Locale locale, Reporter reporter) Initializes this doclet with the given locale and error reporter. This locale will be used by the reporter and the doclet components. | |
| run | back to summary |
|---|---|
| public boolean run(DocletEnvironment environment) The entry point of the doclet. Further processing will commence as instructed by this method.
| |
| Modifier and Type | Class and Description |
|---|---|
| public static enum | Doclet.
The kind of an option. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: number of consumed argumentsReturns the number of arguments, this option will consume. |
| public String | Returns: description if set, otherwise an empty StringReturns the description of the option. |
| public Doclet. | |
| public List | Returns: the names of the optionReturns the list of names that may be used to identify the option. |
| public String | Returns: parameters if set, otherwise an empty StringReturns the parameters of the option. |
| public boolean |
| getArgumentCount | back to summary |
|---|---|
| public int getArgumentCount() Returns the number of arguments, this option will consume.
| |
| getDescription | back to summary |
|---|---|
| public String getDescription() Returns the description of the option. For instance, the option "group", would return the synopsis of the option such as, "groups the documents".
| |
| getKind | back to summary |
|---|---|
| public Doclet. Returns the option kind. | |
| getNames | back to summary |
|---|---|
| public List Returns the list of names that may be used to identify the option. For instance, the
list could be | |
| getParameters | back to summary |
|---|---|
| public String getParameters() Returns the parameters of the option. For instance "name <p1>:<p2>.."
| |
| process | back to summary |
|---|---|
| public boolean process(String option, List<String> arguments) Processes the option and arguments as needed. This method will be invoked if the given option name matches the option. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final Doclet. | EXTENDED
An extended option, such as those prefixed with |
| public static final Doclet. | OTHER
An implementation-reserved option. |
| public static final Doclet. | STANDARD
A standard option. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Doclet. | |
| public static Doclet. |
| EXTENDED | back to summary |
|---|---|
| public static final Doclet. An extended option, such as those prefixed with | |
| OTHER | back to summary |
|---|---|
| public static final Doclet. An implementation-reserved option. | |
| STANDARD | back to summary |
|---|---|
| public static final Doclet. A standard option. | |
| Kind | back to summary |
|---|---|
| private Kind() | |
| valueOf | back to summary |
|---|---|
| public static Doclet. | |
| values | back to summary |
|---|---|
| public static Doclet. | |