Class StandardDoclet
java.lang.Object
jdk.javadoc.doclet.StandardDoclet
- All Implemented Interfaces:
Doclet
This doclet generates HTML-formatted documentation for the specified modules,
packages and types. It is the doclet that is used by the
javadoc tool
and the system documentation tool when no other doclet is specified to be used.
User-Defined Taglets
The standard doclet supports user-definedtaglets,
which can be used to generate customized output for user-defined tags
in documentation comments.
Taglets invoked by the standard doclet must return strings from
Taglet.toString as follows:
- Inline Tags
- The returned string must be
flow content,
or any valid fragment of HTML code that may appear in the body of a document.
There may be additional constraints, depending on how the tag is to be
used in a documentation comment: for example, if the tag may be used
within an inline element such as
<b>or<i>, the taglet must not return a string containing block tags, like<h3>or<p>. - Block Tags
- The returned string must be suitable content for a definition list,
or
<dl>element. It will typically be a series of pairs of<dt>and<dd>elements.
- Since:
- 9
- External Specifications
-
Nested Class Summary
Nested classes/interfaces declared in interface Doclet
Doclet.OptionModifier and TypeInterfaceDescriptionstatic interfaceAn encapsulation of option name, aliases, parameters and descriptions as used by the Doclet. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of the standard doclet, used to generate HTML-formatted documentation. -
Method Summary
Modifier and TypeMethodDescriptionReturns the locale for this doclet.getName()Returns a name identifying the doclet.Returns the reporter for this doclet.Set<? extends Doclet.Option> Returns all the supported options.Returns the version of the Java Programming Language supported by this doclet.voidInitializes this doclet with the given locale and error reporter.booleanrun(DocletEnvironment docEnv) The entry point of the doclet.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()Answers a new instance of the same class as the receiver, whose slots have been filled in with the values in the slots of the receiver.booleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.protected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.inthashCode()Answers an integer hash code for the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.toString()Answers a string containing a concise, human-readable description of the receiver.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Constructor Details
-
StandardDoclet
public StandardDoclet()Creates an instance of the standard doclet, used to generate HTML-formatted documentation.
-
-
Method Details
-
init
Description copied from interface:DocletInitializes this doclet with the given locale and error reporter. This locale will be used by the reporter and the doclet components. -
getName
Description copied from interface:DocletReturns 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
Description copied from interface:DocletReturns all the supported options.- Specified by:
getSupportedOptionsin interfaceDoclet- Returns:
- a set containing all the supported options, an empty set if none
-
getSupportedSourceVersion
Description copied from interface:DocletReturns the version of the Java Programming Language supported by this doclet.- Specified by:
getSupportedSourceVersionin interfaceDoclet- Returns:
- the language version supported by this doclet, usually the latest version
-
run
Description copied from interface:DocletThe entry point of the doclet. Further processing will commence as instructed by this method. -
getLocale
Returns the locale for this doclet.- Returns:
- the locale for this doclet
- Since:
- 17
- See Also:
-
getReporter
Returns the reporter for this doclet.- Returns:
- the reporter for this doclet
- Since:
- 17
- See Also:
-