< prev index next >

src/jdk.javadoc/share/man/javadoc.1

Print this page


   1 .\" Copyright (c) 1994, 2019, Oracle and/or its affiliates. All rights reserved.

   2 .\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   3 .\"
   4 .\" This code is free software; you can redistribute it and/or modify it
   5 .\" under the terms of the GNU General Public License version 2 only, as
   6 .\" published by the Free Software Foundation.
   7 .\"
   8 .\" This code is distributed in the hope that it will be useful, but WITHOUT
   9 .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  10 .\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  11 .\" version 2 for more details (a copy is included in the LICENSE file that
  12 .\" accompanied this code).
  13 .\"
  14 .\" You should have received a copy of the GNU General Public License version
  15 .\" 2 along with this work; if not, write to the Free Software Foundation,
  16 .\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  17 .\"
  18 .\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  19 .\" or visit www.oracle.com if you need additional information or have any
  20 .\" questions.
  21 .\"
  22 .\" Automatically generated by Pandoc 2.3.1




  23 .\"
  24 .TH "JAVADOC" "1" "2018" "JDK 13" "JDK Commands"
  25 .hy
  26 .SH NAME
  27 .PP
  28 javadoc \- generate HTML pages of API documentation from Java source
  29 files
  30 .SH SYNOPSIS
  31 .PP
  32 \f[CB]javadoc\f[R] [\f[I]options\f[R]] [\f[I]packagenames\f[R]]
  33 [\f[I]sourcefiles\f[R]] [\f[CB]\@\f[R]\f[I]files\f[R]]
  34 .TP
  35 .B \f[I]options\f[R]
  36 Specifies command\-line options, separated by spaces.
  37 See \f[B]Options for javadoc\f[R], \f[B]Extended Options\f[R],
  38 \f[B]Standard doclet Options\f[R], and \f[B]Additional Options Provided
  39 by the Standard doclet\f[R].
  40 .RS
  41 .RE
  42 .TP
  43 .B \f[I]packagenames\f[R]
  44 Specifies names of packages that you want to document, separated by
  45 spaces, for example \f[CB]java.lang\ java.lang.reflect\ java.awt\f[R].
  46 If you want to also document the subpackages, then use the
  47 \f[CB]\-subpackages\f[R] option to specify the packages.
  48 .RS
  49 .PP
  50 By default, \f[CB]javadoc\f[R] looks for the specified packages in the
  51 current directory and subdirectories.
  52 Use the \f[CB]\-sourcepath\f[R] option to specify the list of directories
  53 where to look for packages.
  54 .RE
  55 .TP
  56 .B \f[I]sourcefiles\f[R]
  57 Specifies names of Java source files that you want to document,
  58 separated by spaces, for example
  59 \f[CB]Class.java\ Object.java\ Button.java\f[R].
  60 By default, \f[CB]javadoc\f[R] looks for the specified classes in the
  61 current directory.
  62 However, you can specify the full path to the class file and use
  63 wildcard characters, for example
  64 \f[CB]/home/src/java/awt/Graphics*.java\f[R].
  65 You can also specify the path relative to the current directory.
  66 .RS
  67 .RE
  68 .TP
  69 .B \f[CB]\@\f[R]\f[I]files\f[R]
  70 Specifies names of files that contain a list of \f[CB]javadoc\f[R] tool
  71 options, package names, and source file names in any order.
  72 .RS
  73 .RE
  74 .SH DESCRIPTION
  75 .PP
  76 The \f[CB]javadoc\f[R] tool parses the declarations and documentation
  77 comments in a set of Java source files and produces corresponding HTML
  78 pages that describe (by default) the public and protected classes,
  79 nested classes (but not anonymous inner classes), interfaces,
  80 constructors, methods, and fields.
  81 You can use the \f[CB]javadoc\f[R] tool to generate the API documentation
  82 or the implementation documentation for a set of source files.
  83 .PP
  84 You can run the \f[CB]javadoc\f[R] tool on entire packages, individual
  85 source files, or both.
  86 When documenting entire packages, you can use the \f[CB]\-subpackages\f[R]
  87 option either to recursively traverse a directory and its
  88 subdirectories, or to pass in an explicit list of package names.
  89 When you document individual source files, pass in a list of Java source
  90 file names.
  91 See \f[B]javadoc Overview\f[R]
  92 [https://www.oracle.com/pls/topic/lookup?ctx=en/java/javase/11/tools&id=JSJAV\-GUID\-7A344353\-3BBF\-45C4\-8B28\-15025DDCC643]
  93 in Java Platform, Standard Edition Javadoc Guide for information about
  94 using the \f[CB]javadoc\f[R] tool.
  95 .SH CONFORMANCE
  96 .PP
  97 The standard doclet does not validate the content of documentation
  98 comments for conformance, nor does it attempt to correct any errors in
  99 documentation comments.
 100 Anyone running javadoc is advised to be aware of the problems that may
 101 arise when generating non\-conformant output or output containing
 102 executable content, such as JavaScript.
 103 The standard doclet does provide the \f[CB]doclint\f[R] feature to help
 104 developers detect common problems in documentation comments; but it is
 105 also recommended to check the generated output with any appropriate
 106 conformance and other checking tools.
 107 .PP
 108 For more details on the conformance requirements for HTML5 documents,
 109 see \f[B]Conformance requirements\f[R]
 110 [https://www.w3.org/TR/html5/infrastructure.html#conformance\-requirements]
 111 in the HTML5 Specification.
 112 For more details on security issues related to web pages, see the
 113 \f[B]Open Web Application Security Project (OWASP)\f[R]
 114 [https://www.owasp.org] page.
 115 .SH OPTIONS FOR JAVADOC
 116 .PP
 117 The following core \f[CB]javadoc\f[R] options are equivalent to
 118 corresponding \f[CB]javac\f[R] options.
 119 See \f[I]Standard Options\f[R] in \f[B]javac\f[R] for the detailed
 120 descriptions of using these options:
 121 .IP \[bu] 2
 122 \f[CB]\-\-add\-modules\f[R]
 123 .IP \[bu] 2
 124 \f[CB]\-bootclasspath\f[R]
 125 .IP \[bu] 2
 126 \f[CB]\-\-class\-path\f[R], \f[CB]\-classpath\f[R], or \f[CB]\-cp\f[R]
 127 .IP \[bu] 2
 128 \f[CB]\-\-enable\-preview\f[R]
 129 .IP \[bu] 2
 130 \f[CB]\-encoding\f[R]
 131 .IP \[bu] 2
 132 \f[CB]\-extdirs\f[R]
 133 .IP \[bu] 2
 134 \f[CB]\-\-limit\-modules\f[R]
 135 .IP \[bu] 2
 136 \f[CB]\-\-module\f[R]
 137 .IP \[bu] 2
 138 \f[CB]\-\-module\-path\f[R] or \f[CB]\-p\f[R]
 139 .IP \[bu] 2
 140 \f[CB]\-\-module\-source\-path\f[R]
 141 .IP \[bu] 2
 142 \f[CB]\-\-release\f[R]
 143 .IP \[bu] 2
 144 \f[CB]\-source\f[R]
 145 .IP \[bu] 2
 146 \f[CB]\-\-source\-path\f[R] or \f[CB]\-sourcepath\f[R]
 147 .IP \[bu] 2
 148 \f[CB]\-\-system\f[R]
 149 .IP \[bu] 2
 150 \f[CB]\-\-upgrade\-module\-path\f[R]
 151 .PP
 152 The following options are the core \f[CB]javadoc\f[R] options that are not
 153 equivalent to a corresponding \f[CB]javac\f[R] option:
 154 .PP
 155 \f[B]Note:\f[R]
 156 .PP
 157 In tools that support \f[CB]\-\-\f[R] style options, the GNU\-style
 158 options can use the equal sign (=) instead of a white space to separate
 159 the name of an option from its value.
 160 .TP
 161 .B \f[CB]\-breakiterator\f[R]
 162 Computes the first sentence with \f[CB]BreakIterator\f[R].
 163 The first sentence is copied to the package, class, or member summary
 164 and to the alphabetic index.
 165 The \f[CB]BreakIterator\f[R] class is used to determine the end of a
 166 sentence for all languages except for English.
 167 .RS
 168 .IP \[bu] 2
 169 English default sentence\-break algorithm \-\-\- Stops at a period
 170 followed by a space or an HTML block tag, such as \f[CB]<P>\f[R].
 171 .IP \[bu] 2
 172 Breakiterator sentence\-break algorithm \-\-\- Stops at a period,
 173 question mark, or exclamation point followed by a space when the next
 174 word starts with a capital letter.
 175 This is meant to handle most abbreviations (such as "The serial no.
 176 is valid", but will not handle "Mr.\ Smith").
 177 The \f[CB]\-breakiterator\f[R] option doesn\[aq]t stop at HTML tags or
 178 sentences that begin with numbers or symbols.
 179 The algorithm stops at the last period in \f[CB]\&../filename\f[R], even
 180 when embedded in an HTML tag.
 181 .RE
 182 .TP
 183 .B \f[CB]\-doclet\f[R] \f[I]class\f[R]
 184 Generates output by using an alternate doclet.
 185 Use the fully qualified name.
 186 This doclet defines the content and formats the output.
 187 If the \f[CB]\-doclet\f[R] option isn\[aq]t used, then the
 188 \f[CB]javadoc\f[R] tool uses the standard doclet for generating the
 189 default HTML format.
 190 This class must contain the \f[CB]start(Root)\f[R] method.
 191 The path to this starting class is defined by the \f[CB]\-docletpath\f[R]
 192 option.
 193 .RS
 194 .RE
 195 .TP
 196 .B \f[CB]\-docletpath\f[R] \f[I]path\f[R]
 197 Specifies where to find doclet class files (specified with the
 198 \f[CB]\-doclet\f[R] option) and any JAR files it depends on.
 199 If the starting class file is in a JAR file, then this option specifies
 200 the path to that JAR file.
 201 You can specify an absolute path or a path relative to the current
 202 directory.
 203 If \f[CB]classpathlist\f[R] contains multiple paths or JAR files, then
 204 they should be separated with a colon (\f[CB]:\f[R]) on Oracle Solaris and
 205 a semi\-colon (\f[CB];\f[R]) on Windows.
 206 This option isn\[aq]t necessary when the \f[CB]doclet\f[R] starting class
 207 is already in the search path.
 208 .RS
 209 .RE
 210 .TP
 211 .B \f[CB]\-exclude\f[R] \f[I]pkglist\f[R]
 212 Unconditionally, excludes the specified packages and their subpackages
 213 from the list formed by \f[CB]\-subpackages\f[R].
 214 It excludes those packages even when they would otherwise be included by
 215 some earlier or later \f[CB]\-subpackages\f[R] option.
 216 .RS
 217 .PP
 218 The following example would include \f[CB]java.io\f[R],
 219 \f[CB]java.util\f[R], and \f[CB]java.math\f[R] (among others), but would
 220 exclude packages rooted at \f[CB]java.net\f[R] and \f[CB]java.lang\f[R].
 221 Notice that these examples exclude \f[CB]java.lang.ref\f[R], which is a
 222 subpackage of \f[CB]java.lang\f[R].
 223 .IP \[bu] 2
 224 \f[B]Oracle Solaris, Linux, and OS X:\f[R]
 225 .RS 2
 226 .RS
 227 .PP
 228 \f[CB]javadoc\ \-sourcepath\ /home/user/src\ \-subpackages\ java\ \-exclude\ java.net:java.lang\f[R]
 229 .RE
 230 .RE
 231 .IP \[bu] 2
 232 \f[B]Windows:\f[R]
 233 .RS 2
 234 .RS
 235 .PP
 236 \f[CB]javadoc\ \-sourcepath\ \\user\\src\ \-subpackages\ java\ \-exclude\ java.net:java.lang\f[R]
 237 .RE
 238 .RE
 239 .RE
 240 .TP
 241 .B \f[CB]\-\-expand\-requires\f[R] \f[I]value\f[R]
 242 Instructs the javadoc tool to expand the set of modules to be
 243 documented.
 244 By default, only the modules given explicitly on the command line are
 245 documented.
 246 Supports the following values:
 247 .RS
 248 .IP \[bu] 2
 249 \f[CB]transitive\f[R]: additionally includes all the required transitive
 250 dependencies of those modules.
 251 .IP \[bu] 2
 252 \f[CB]all\f[R]: includes all dependencies.
 253 .RE
 254 .TP
 255 .B \f[CB]\-help\f[R] or \f[CB]\-\-help\f[R]
 256 Displays the online help, which lists all of the \f[CB]javadoc\f[R] and
 257 \f[CB]doclet\f[R] command\-line options.
 258 .RS
 259 .RE
 260 .TP
 261 .B \f[CB]\-\-help\-extra\f[R] or \f[CB]\-X\f[R]
 262 Prints a synopsis of non\-standard options and exits.
 263 .RS
 264 .RE
 265 .TP
 266 .B \f[CB]\-J\f[R]\f[I]flag\f[R]
 267 Passes \f[I]flag\f[R] directly to the Java Runtime Environment (JRE) that
 268 runs the \f[CB]javadoc\f[R] tool.
 269 For example, if you must ensure that the system sets aside 32 MB of
 270 memory in which to process the generated documentation, then you would
 271 call the \f[CB]\-Xmx\f[R] option as follows:
 272 \f[CB]javadoc\ \-J\-Xmx32m\ \-J\-Xms32m\ com.mypackage\f[R].
 273 Be aware that \f[CB]\-Xms\f[R] is optional because it only sets the size
 274 of initial memory, which is useful when you know the minimum amount of
 275 memory required.
 276 .RS
 277 .PP
 278 There is no space between the \f[CB]J\f[R] and the \f[CB]flag\f[R].
 279 .PP
 280 Use the \f[CB]\-version\f[R] option to report the version of the JRE being
 281 used to run the \f[CB]javadoc\f[R] tool.
 282 .IP
 283 .nf
 284 \f[CB]
 285 javadoc\ \-J\-version
 286 java\ version\ "10\-ea"\ 2018\-03\-20
 287 Java(TM)\ SE\ Runtime\ Environment\ 18.3\ (build\ 10\-ea+36)
 288 Java\ HotSpot(TM)\ 64\-Bit\ Server\ VM\ 18.3\ (build\ 10\-ea+36,\ mixed\ mode)
 289 \f[R]
 290 .fi
 291 .RE
 292 .TP
 293 .B \f[CB]\-locale\f[R] \f[I]name\f[R]
 294 Specifies the locale that the \f[CB]javadoc\f[R] tool uses when it
 295 generates documentation.
 296 The argument is the name of the locale, as described in
 297 \f[CB]java.util.Locale\f[R] documentation, such as \f[CB]en_US\f[R]
 298 (English, United States) or \f[CB]en_US_WIN\f[R] (Windows variant).
 299 .RS
 300 .PP
 301 \f[B]Note:\f[R]
 302 .PP
 303 The \f[CB]\-locale\f[R] option must be placed ahead (to the left) of any
 304 options provided by the standard doclet or any other doclet.
 305 Otherwise, the navigation bars appear in English.
 306 This is the only command\-line option that depends on order.
 307 .PP
 308 Specifying a locale causes the \f[CB]javadoc\f[R] tool to choose the
 309 resource files of that locale for messages such as strings in the
 310 navigation bar, headings for lists and tables, help file contents,
 311 comments in the \f[CB]stylesheet.css\f[R] file, and so on.
 312 It also specifies the sorting order for lists sorted alphabetically, and
 313 the sentence separator to determine the end of the first sentence.
 314 The \f[CB]\-locale\f[R] option doesn\[aq]t determine the locale of the
 315 documentation comment text specified in the source files of the
 316 documented classes.
 317 .RE
 318 .TP
 319 .B \f[CB]\-package\f[R]
 320 Shows only package, protected, and public classes and members.
 321 .RS
 322 .RE
 323 .TP
 324 .B \f[CB]\-private\f[R]
 325 Shows all classes and members.
 326 .RS
 327 .RE
 328 .TP
 329 .B \f[CB]\-protected\f[R]
 330 Shows only protected and public classes and members.
 331 This is the default.
 332 .RS
 333 .RE
 334 .TP
 335 .B \f[CB]\-public\f[R]
 336 Shows only the public classes and members.
 337 .RS
 338 .RE
 339 .TP
 340 .B \f[CB]\-quiet\f[R]
 341 Shuts off messages so that only the warnings and errors appear to make
 342 them easier to view.
 343 It also suppresses the \f[CB]version\f[R] string.
 344 .RS
 345 .RE
 346 .TP
 347 .B \f[CB]\-\-show\-members\f[R] \f[I]value\f[R]
 348 Specifies which members (fields or methods) are documented, where
 349 \f[I]value\f[R] can be any of the following:
 350 .RS
 351 .IP \[bu] 2
 352 \f[CB]protected\f[R]: The default value is protected.
 353 .IP \[bu] 2
 354 \f[CB]public\f[R]: Shows only public values.
 355 .IP \[bu] 2
 356 \f[CB]package\f[R]: Shows public, protected, and package members.
 357 .IP \[bu] 2
 358 \f[CB]private\f[R]: Shows all members.
 359 .RE
 360 .TP
 361 .B \f[CB]\-\-show\-module\-contents\f[R] \f[I]value\f[R]
 362 Specifies the documentation granularity of module declarations, where
 363 \f[I]value\f[R] can be \f[CB]api\f[R] or \f[CB]all\f[R].
 364 .RS
 365 .RE
 366 .TP
 367 .B \f[CB]\-\-show\-packages\f[R] \f[I]value\f[R]
 368 Specifies which modules packages are documented, where \f[I]value\f[R]
 369 can be \f[CB]exported\f[R] or \f[CB]all\f[R] packages.
 370 .RS
 371 .RE
 372 .TP
 373 .B \f[CB]\-\-show\-types\f[R] \f[I]value\f[R]
 374 Specifies which types (classes, interfaces, etc.) are documented, where
 375 \f[I]value\f[R] can be any of the following:
 376 .RS
 377 .IP \[bu] 2
 378 \f[CB]protected\f[R]: The default value.
 379 Shows public and protected types.
 380 .IP \[bu] 2
 381 \f[CB]public\f[R]: Shows only public values.
 382 .IP \[bu] 2
 383 \f[CB]package\f[R]: Shows public, protected, and package types.
 384 .IP \[bu] 2
 385 \f[CB]private\f[R]: Shows all types.
 386 .RE
 387 .TP
 388 .B \f[CB]\-subpackages\f[R] \f[I]subpkglist\f[R]
 389 Generates documentation from source files in the specified packages and
 390 recursively in their subpackages.
 391 This option is useful when adding new subpackages to the source code
 392 because they are automatically included.
 393 Each package argument is any top\-level subpackage (such as
 394 \f[CB]java\f[R]) or fully qualified package (such as \f[CB]javax.swing\f[R])
 395 that doesn\[aq]t need to contain source files.
 396 Arguments are separated by colons on all operating systems.
 397 Wild cards aren\[aq]t allowed.
 398 Use \f[CB]\-sourcepath\f[R] to specify where to find the packages.
 399 This option doesn\[aq]t process source files that are in the source tree
 400 but don\[aq]t belong to the packages.
 401 .RS
 402 .PP
 403 For example, the following commands generates documentation for packages
 404 named \f[CB]java\f[R] and \f[CB]javax.swing\f[R] and all of their
 405 subpackages.
 406 .IP \[bu] 2
 407 \f[B]Oracle Solaris, Linux, and OS X:\f[R]
 408 .RS 2
 409 .RS
 410 .PP
 411 \f[CB]javadoc\ \-d\ docs\ \-sourcepath\ /home/user/src\ \-subpackages\ java:javax.swing\f[R]
 412 .RE
 413 .RE
 414 .IP \[bu] 2
 415 \f[B]Windows:\f[R]
 416 .RS 2
 417 .RS
 418 .PP
 419 \f[CB]javadoc\ \-d\ docs\ \-sourcepath\ \\user\\src\ \-subpackages\ java:javax.swing\f[R]
 420 .RE
 421 .RE
 422 .RE
 423 .TP
 424 .B \f[CB]\-verbose\f[R]
 425 Provides more detailed messages while the \f[CB]javadoc\f[R] tool runs.
 426 Without the \f[CB]\-verbose\f[R] option, messages appear for loading the
 427 source files, generating the documentation (one message per source
 428 file), and sorting.
 429 The \f[CB]\-verbose\f[R] option causes the printing of additional messages
 430 that specify the number of milliseconds to parse each Java source file.
 431 .RS
 432 .RE
 433 .TP
 434 .B \f[CB]\-\-version\f[R]
 435 Prints version information.
 436 .RS
 437 .RE
 438 .SH EXTENDED OPTIONS
 439 .PP
 440 \f[B]Note:\f[R]
 441 .PP
 442 The extended options for \f[CB]javadoc\f[R] are subject to change without
 443 notice.
 444 .PP
 445 The following extended \f[CB]javadoc\f[R] options are equivalent to
 446 corresponding \f[CB]javac\f[R] options.
 447 See \f[I]Extra Options\f[R] in \f[B]javac\f[R] for the detailed
 448 descriptions of using these options:
 449 .IP \[bu] 2
 450 \f[CB]\-add\-exports\f[R]
 451 .IP \[bu] 2
 452 \f[CB]\-\-add\-reads\f[R]
 453 .IP \[bu] 2
 454 \f[CB]\-\-patch\-module\f[R]
 455 .IP \[bu] 2
 456 \f[CB]\-\-Xmaxerrs\f[R]
 457 .IP \[bu] 2
 458 \f[CB]\-Xmaxwarns\f[R]
 459 .PP
 460 The following extended \f[CB]javadoc\f[R] options are not equivalent to a
 461 corresponding \f[CB]javac\f[R] option:
 462 .TP
 463 .B \f[CB]\-Xmodule:\f[R]\f[I]module\-name\f[R]
 464 Specifies a module to which the classes being compiled belong.
 465 .RS
 466 .RE
 467 .TP
 468 .B \f[CB]\-Xold\f[R]
 469 Invokes the legacy javadoc tool.
 470 .RS
 471 .RE
 472 .SH STANDARD DOCLET OPTIONS
 473 .PP
 474 The following options are provided by the standard doclet.
 475 .TP
 476 .B \f[CB]\-\-add\-stylesheet\f[R] \f[I]file\f[R]
 477 Adds additional stylesheet file for the generated documentation.
 478 This option can be used one or more times to specify additional
 479 stylesheets included in the documentation.
 480 .RS
 481 .PP
 482 Command\-line example:
 483 .RS
 484 .PP
 485 \f[CB]javadoc\ \-\-add\-stylesheet\ new_stylesheet_1.css\ \-\-add\-stylesheet\ new_stylesheet_2.css\ pkg_foo\f[R]
 486 .RE
 487 .RE
 488 .TP
 489 .B \f[CB]\-\-allow\-script\-in\-comments\f[R]
 490 Allow JavaScript in options and comments
 491 .RS
 492 .RE
 493 .TP
 494 .B \f[CB]\-author\f[R]
 495 Includes the \f[CB]\@author\f[R] text in the generated docs.
 496 .RS
 497 .RE
 498 .TP
 499 .B \f[CB]\-bottom\f[R] \f[I]html\-code\f[R]
 500 Specifies the text to be placed at the bottom of each output file.
 501 The text is placed at the bottom of the page, underneath the lower
 502 navigation bar.
 503 The text can contain HTML tags and white space, but when it does, the
 504 text must be enclosed in quotation marks.
 505 Use escape characters for any internal quotation marks within text.
 506 .RS
 507 .RE
 508 .TP
 509 .B \f[CB]\-charset\f[R] \f[I]name\f[R]
 510 Specifies the HTML character set for this document.
 511 The name should be a preferred MIME name as specified in the \f[B]IANA
 512 Registry, Character Sets\f[R]
 513 [http://www.iana.org/assignments/character\-sets].
 514 .RS
 515 .PP
 516 For example:
 517 .RS
 518 .PP
 519 \f[CB]javadoc\ \-charset\ "iso\-8859\-1"\ mypackage\f[R]
 520 .RE
 521 .PP
 522 This command inserts the following line in the head of every generated
 523 page:
 524 .RS
 525 .PP
 526 \f[CB]<META\ http\-equiv="Content\-Type"\ content="text/html;\ charset=ISO\-8859\-1">\f[R]
 527 .RE
 528 .PP
 529 The \f[CB]META\f[R] tag is described in the \f[B]HTML standard (4197265
 530 and 4137321), HTML Document Representation\f[R]
 531 [http://www.w3.org/TR/REC\-html40/charset.html#h\-5.2.2].
 532 .RE
 533 .TP
 534 .B \f[CB]\-d\f[R] \f[I]directory\f[R]
 535 Specifies the destination directory where the \f[CB]javadoc\f[R] tool
 536 saves the generated HTML files.
 537 If you omit the \f[CB]\-d\f[R] option, then the files are saved to the
 538 current directory.
 539 The \f[CB]directory\f[R] value can be absolute or relative to the current
 540 working directory.
 541 The destination directory is automatically created when the
 542 \f[CB]javadoc\f[R] tool runs.
 543 .RS
 544 .IP \[bu] 2
 545 \f[B]Oracle Solaris, Linux, and OS X:\f[R] For example, the following
 546 command generates the documentation for the package
 547 \f[CB]com.mypackage\f[R] and saves the results in the \f[CB]/user/doc/\f[R]
 548 directory:
 549 .RS 2
 550 .RS
 551 .PP
 552 \f[CB]javadoc\ \-d\ /user/doc/\ com.mypackage\f[R]
 553 .RE
 554 .RE
 555 .IP \[bu] 2
 556 \f[B]Windows:\f[R] For example, the following command generates the
 557 documentation for the package \f[CB]com.mypackage\f[R] and saves the
 558 results in the \f[CB]\\user\\doc\\\f[R] directory:
 559 .RS 2
 560 .RS
 561 .PP
 562 \f[CB]javadoc\ \-d\ \\user\\doc\\\ com.mypackage\f[R]
 563 .RE
 564 .RE
 565 .RE
 566 .TP
 567 .B \f[CB]\-docencoding\f[R] \f[I]name\f[R]
 568 Specifies the encoding of the generated HTML files.
 569 The name should be a preferred MIME name as specified in the \f[B]IANA
 570 Registry, Character Sets\f[R]
 571 [http://www.iana.org/assignments/character\-sets].
 572 .RS
 573 .PP
 574 Three options are available for use in a \f[CB]javadoc\f[R] encoding
 575 command.
 576 The \f[CB]\-encoding\f[R] option is used for encoding the files read by
 577 the \f[CB]javadoc\f[R] tool, while the \f[CB]\-docencoding\f[R] and
 578 \f[CB]\-charset\f[R] options are used for encoding the files written by
 579 the tool.
 580 Of the three available options, at most, only the input and an output
 581 encoding option are used in a single encoding command.
 582 If you specify both input and output encoding options in a command, they
 583 must be the same value.
 584 If you specify neither output option, it the tool defaults to the input
 585 encoding.
 586 .PP
 587 For example:
 588 .RS
 589 .PP
 590 \f[CB]javadoc\ \-docencoding\ "iso\-8859\-1"\ mypackage\f[R]
 591 .RE
 592 .RE
 593 .TP
 594 .B \f[CB]\-docfilessubdirs\f[R]
 595 Recursively copies doc\-file subdirectories.
 596 .RS
 597 .RE
 598 .TP
 599 .B \f[CB]\-doctitle\f[R] \f[I]html\-code\f[R]
 600 Specifies the title to place near the top of the overview summary file.
 601 The text specified in the \f[CB]title\f[R] tag is placed as a centered,
 602 level\-one heading directly beneath the top navigation bar.
 603 The \f[CB]title\f[R] tag can contain HTML tags and white space, but when
 604 it does, you must enclose the title in quotation marks.
 605 Additional quotation marks within the \f[CB]title\f[R] tag must be
 606 escaped.
 607 For example,
 608 \f[CB]javadoc\ \-header\ "<b>My\ Library</b><br>v1.0"\ com.mypackage.\f[R]
 609 .RS
 610 .RE
 611 .TP
 612 .B \f[CB]\-excludedocfilessubdir\f[R] \f[I]name\f[R]
 613 Excludes any doc files sub directories with the given name.
 614 Enables deep copying of doc\-files directories.
 615 Subdirectories and all contents are recursively copied to the
 616 destination.
 617 For example, the directory \f[CB]doc\-files/example/images\f[R] and all of
 618 its contents are copied.
 619 There is also an option to exclude subdirectories.
 620 .RS
 621 .RE
 622 .TP
 623 .B \f[CB]\-footer\f[R] \f[I]html\-code\f[R]
 624 Specifies the footer text to be placed at the bottom of each output
 625 file.
 626 The\f[CB]html\-code\f[R] value is placed to the right of the lower
 627 navigation bar.
 628 The \f[CB]html\-code\f[R] value can contain HTML tags and white space, but
 629 when it does, the \f[CB]html\-code\f[R] value must be enclosed in
 630 quotation marks.
 631 Use escape characters for any internal quotation marks within a footer.
 632 .RS
 633 .RE
 634 .TP
 635 .B \f[CB]\-\-frames\f[R]
 636 Enables the use of frames in the generated output (default).
 637 .RS
 638 .RE
 639 .TP
 640 .B \f[CB]\-group\f[R] \f[I]namep1\f[R]\f[CB]:\f[R]\f[I]p2\f[R]
 641 Group the specified packages together in the Overview page.
 642 .RS
 643 .RE
 644 .TP
 645 .B \f[CB]\-header\f[R] \f[I]html\-code\f[R]
 646 Specifies the header text to be placed at the top of each output file.
 647 The header is placed to the right of the upper navigation bar.
 648 The \f[CB]header\f[R] can contain HTML tags and white space, but when it
 649 does, the \f[CB]header\f[R] must be enclosed in quotation marks.
 650 Use escape characters for internal quotation marks within a header.
 651 For example,
 652 \f[CB]javadoc\ \-header\ "<b>My\ Library</b><br>v1.0"\ com.mypackage.\f[R]
 653 .RS
 654 .RE
 655 .TP
 656 .B \f[CB]\-helpfile\f[R] \f[I]filename\f[R]
 657 Includes the file that links to the \f[B]HELP\f[R] link in the top and
 658 bottom navigation bars .
 659 Without this option, the \f[CB]javadoc\f[R] tool creates a help file
 660 \f[CB]help\-doc.html\f[R] that is hard\-coded in the \f[CB]javadoc\f[R]
 661 tool.
 662 This option lets you override the default.
 663 The \f[I]filename\f[R] can be any name and isn\[aq]t restricted to
 664 \f[CB]help\-doc.html\f[R].
 665 The \f[CB]javadoc\f[R] tool adjusts the links in the navigation bar
 666 accordingly.
 667 For example:
 668 .RS
 669 .IP \[bu] 2
 670 \f[B]Oracle Solaris, Linux, and OS X:\f[R]
 671 .RS 2
 672 .RS
 673 .PP
 674 \f[CB]javadoc\ \-helpfile\ /home/user/myhelp.html\ java.awt.\f[R]
 675 .RE
 676 .RE
 677 .IP \[bu] 2
 678 \f[B]Windows:\f[R]
 679 .RS 2
 680 .RS
 681 .PP
 682 \f[CB]javadoc\ \-helpfile\ C:\\user\\myhelp.html\ java.awt.\f[R]
 683 .RE
 684 .RE
 685 .RE
 686 .TP
 687 .B \f[CB]\-html4\f[R]
 688 Generates HTML 4.0.1 output.
 689 If the option is not used, \f[CB]\-html4\f[R] is the default
 690 .RS
 691 .RE
 692 .TP
 693 .B \f[CB]\-html5\f[R]
 694 Generates HTML 5 output.
 695 If the option is not used, \f[CB]\-html4\f[R] is the default.
 696 .RS
 697 .RE
 698 .TP
 699 .B \f[CB]\-\-javafx\f[R] or \f[CB]\-javafx\f[R]
 700 Enables JavaFX functionality.
 701 .RS
 702 .RE
 703 .TP
 704 .B \f[CB]\-keywords\f[R]
 705 Adds HTML keyword \f[CB]<META>\f[R] tags to the generated file for each
 706 class.
 707 These tags can help search engines that look for \f[CB]<META>\f[R] tags
 708 find the pages.
 709 Most search engines that search the entire Internet don\[aq]t look at
 710 \f[CB]<META>\f[R] tags, because pages can misuse them.
 711 Search engines offered by companies that confine their searches to their
 712 own website can benefit by looking at \f[CB]<META>\f[R] tags.
 713 The \f[CB]<META>\f[R] tags include the fully qualified name of the class
 714 and the unqualified names of the fields and methods.
 715 Constructors aren\[aq]t included because they are identical to the class
 716 name.
 717 For example, the class \f[CB]String\f[R] starts with these keywords:
 718 .RS
 719 .IP
 720 .nf
 721 \f[CB]
 722 <META\ NAME="keywords"\ CONTENT="java.lang.String\ class">
 723 <META\ NAME="keywords"\ CONTENT="CASE_INSENSITIVE_ORDER">
 724 <META\ NAME="keywords"\ CONTENT="length()">
 725 <META\ NAME="keywords"\ CONTENT="charAt()">
 726 \f[R]
 727 .fi
 728 .RE
 729 .TP
 730 .B \f[CB]\-link\f[R] \f[I]url\f[R]
 731 Creates links to existing \f[CB]javadoc\f[R] generated documentation of
 732 externally referenced classes.
 733 The \f[I]url\f[R] argument is the absolute or relative URL of the
 734 directory that contains the external \f[CB]javadoc\f[R] generated
 735 documentation.
 736 You can specify multiple \f[CB]\-link\f[R] options in a specified
 737 \f[CB]javadoc\f[R] tool run to link to multiple documents.
 738 .RS
 739 .PP
 740 Either a \f[CB]package\-list\f[R] or an \f[CB]element\-list\f[R] file must
 741 be in this \f[I]url\f[R] directory (otherwise, use the
 742 \f[CB]\-linkoffline\f[R] option).
 743 .PP
 744 \f[B]Note:\f[R]
 745 .PP
 746 The \f[CB]package\-list\f[R] and \f[CB]element\-list\f[R] files are
 747 generated by the \f[CB]javadoc\f[R] tool when generating the API
 748 documentation and should not be modified by the user.
 749 .PP
 750 When you use the \f[CB]javadoc\f[R] tool to document packages, it uses the
 751 \f[CB]package\-list\f[R] file to determine the packages declared in an
 752 API.
 753 When you generate API documents for modules, the \f[CB]javadoc\f[R] tool
 754 uses the \f[CB]element\-list\f[R] file to determine the modules and
 755 packages declared in an API.
 756 .PP
 757 The \f[CB]javadoc\f[R] tool reads the names from the appropriate list file
 758 and then links to the packages or modules at that URL.
 759 .PP
 760 When the \f[CB]javadoc\f[R] tool runs, the \f[I]url\f[R] value is copied
 761 into the \f[CB]<A\ HREF>\f[R] links that are created.
 762 Therefore, \f[I]url\f[R] must be the URL to the directory and not to a
 763 file.
 764 .PP
 765 You can use an absolute link for \f[I]url\f[R] to enable your documents
 766 to link to a document on any web site, or you can use a relative link to
 767 link only to a relative location.
 768 If you use a relative link, then the value you pass in should be the
 769 relative path from the destination directory (specified with the
 770 \f[CB]\-d\f[R] option) to the directory containing the packages being
 771 linked to.
 772 When you specify an absolute link, you usually use an HTTP link.
 773 However, if you want to link to a file system that has no web server,
 774 then you can use a file link.
 775 Use a file link only when everyone who wants to access the generated
 776 documentation shares the same file system.
 777 In all cases, and on all operating systems, use a slash as the
 778 separator, whether the URL is absolute or relative, and \f[CB]https:\f[R],
 779 \f[CB]http:\f[R], or \f[CB]file:\f[R] as specified in the \f[B]URL Memo:
 780 Uniform Resource Locators\f[R] [http://www.ietf.org/rfc/rfc1738.txt].
 781 .IP
 782 .nf
 783 \f[CB]
 784 \-link\ https://<host>/<directory>/<directory>/.../<name>
 785 \-link\ http://<host>/<directory>/<directory>/.../<name>
 786 \-link\ file://<host>/<directory>/<directory>/.../<name>
 787 \-link\ <directory>/<directory>/.../<name>
 788 \f[R]
 789 .fi
 790 .RE
 791 .TP
 792 .B \f[CB]\-linkoffline\f[R] \f[I]url1\f[R] \f[I]url2\f[R]
 793 This option is a variation of the \f[CB]\-link\f[R] option.
 794 They both create links to \f[CB]javadoc\f[R] generated documentation for
 795 externally referenced classes.
 796 You can specify multiple \f[CB]\-linkoffline\f[R] options in a specified
 797 \f[CB]javadoc\f[R] tool run.
 798 .RS
 799 .PP
 800 Use the \f[CB]\-linkoffline\f[R] option when:
 801 .IP \[bu] 2
 802 Linking to a document on the web that the \f[CB]javadoc\f[R] tool
 803 can\[aq]t access through a web connection
 804 .IP \[bu] 2
 805 The \f[CB]package\-list\f[R] or \f[CB]element\-list\f[R] file of the
 806 external document either isn\[aq]t accessible or doesn\[aq]t exist at
 807 the URL location, but does exist at a different location and can be
 808 specified by either the \f[CB]package\-list\f[R] or \f[CB]element\-list\f[R]
 809 file (typically local).
 810 .PP
 811 \f[B]Note:\f[R]
 812 .PP
 813 The \f[CB]package\-list\f[R] and \f[CB]element\-list\f[R] files are
 814 generated by the \f[CB]javadoc\f[R] tool when generating the API
 815 documentation and should not be modified by the user.
 816 .PP
 817 If \f[I]url1\f[R] is accessible only on the World Wide Web, then the
 818 \f[CB]\-linkoffline\f[R] option removes the constraint that the
 819 \f[CB]javadoc\f[R] tool must have a web connection to generate
 820 documentation.
 821 .PP
 822 Another use of the \f[CB]\-linkoffline\f[R] option is as a work\-around to
 823 update documents.
 824 After you have run the \f[CB]javadoc\f[R] tool on a full set of packages
 825 or modules, you can run the \f[CB]javadoc\f[R] tool again on a smaller set
 826 of changed packages or modules, so that the updated files can be
 827 inserted back into the original set.
 828 .PP
 829 For example, the \f[CB]\-linkoffline\f[R] option takes two arguments.
 830 The first is for the string to be embedded in the \f[CB]<a\ href>\f[R]
 831 links, and the second tells the \f[CB]javadoc\f[R] tool where to find
 832 either the \f[CB]package\-list\f[R] or \f[CB]element\-list\f[R] file.
 833 .PP
 834 The \f[I]url1\f[R] or \f[I]url2\f[R] value is the absolute or relative URL
 835 of the directory that contains the external \f[CB]javadoc\f[R] generated
 836 documentation that you want to link to.
 837 When relative, the value should be the relative path from the
 838 destination directory (specified with the \f[CB]\-d\f[R] option) to the
 839 root of the packages being linked to.
 840 See \f[I]url\f[R] in the \f[CB]\-link\f[R] option.
 841 .RE
 842 .TP
 843 .B \f[CB]\-linksource\f[R]
 844 Creates an HTML version of each source file (with line numbers) and adds
 845 links to them from the standard HTML documentation.
 846 Links are created for classes, interfaces, constructors, methods, and
 847 fields whose declarations are in a source file.
 848 Otherwise, links aren\[aq]t created, such as for default constructors
 849 and generated classes.
 850 .RS
 851 .PP
 852 This option exposes all private implementation details in the included
 853 source files, including private classes, private fields, and the bodies
 854 of private methods, regardless of the \f[CB]\-public\f[R],
 855 \f[CB]\-package\f[R], \f[CB]\-protected\f[R], and \f[CB]\-private\f[R]
 856 options.
 857 Unless you also use the \f[CB]\-private\f[R] option, not all private
 858 classes or interfaces are accessible through links.
 859 .PP
 860 Each link appears on the name of the identifier in its declaration.
 861 For example, the link to the source code of the \f[CB]Button\f[R] class
 862 would be on the word \f[CB]Button\f[R]:
 863 .RS
 864 .PP
 865 \f[CB]public\ class\ Button\ extends\ Component\ implements\ Accessible\f[R]
 866 .RE
 867 .PP
 868 The link to the source code of the \f[CB]getLabel\f[R] method in the
 869 \f[CB]Button\f[R] class is on the word \f[CB]getLabel\f[R]:
 870 .RS
 871 .PP
 872 \f[CB]public\ String\ getLabel()\f[R]
 873 .RE
 874 .RE
 875 .TP
 876 .B \f[CB]\-\-main\-stylesheet\f[R] \f[I]file\f[R] or \f[CB]\-stylesheetfile\f[R] \f[I]file\f[R]
 877 Specifies the path of an alternate stylesheet file that contains the
 878 definitions for the CSS styles used in the generated documentation.
 879 This option lets you override the default.
 880 If you do not specify the option, the \f[CB]javadoc\f[R] tool will create
 881 and use a default stylesheet.
 882 The file name can be any name and isn\[aq]t restricted to
 883 \f[CB]stylesheet.css\f[R].
 884 The \f[CB]\-\-main\-stylesheet\f[R] option is the preferred form.
 885 .RS
 886 .PP
 887 Command\-line example:
 888 .RS
 889 .PP
 890 \f[CB]javadoc\ \-\-main\-stylesheet\ main_stylesheet.css\ pkg_foo\f[R]
 891 .RE
 892 .RE
 893 .TP
 894 .B \f[CB]\-nocomment\f[R]
 895 Suppresses the entire comment body, including the main description and
 896 all tags, and generate only declarations.
 897 This option lets you reuse source files that were originally intended
 898 for a different purpose so that you can produce skeleton HTML
 899 documentation during the early stages of a new project.
 900 .RS
 901 .RE
 902 .TP
 903 .B \f[CB]\-nodeprecated\f[R]
 904 Prevents the generation of any deprecated API in the documentation.
 905 This does what the \f[CB]\-nodeprecatedlist\f[R] option does, and it
 906 doesn\[aq]t generate any deprecated API throughout the rest of the
 907 documentation.
 908 This is useful when writing code when you don\[aq]t want to be
 909 distracted by the deprecated code.
 910 .RS
 911 .RE
 912 .TP
 913 .B \f[CB]\-nodeprecatedlist\f[R]
 914 Prevents the generation of the file that contains the list of deprecated
 915 APIs (\f[CB]deprecated\-list.html\f[R]) and the link in the navigation bar
 916 to that page.
 917 The \f[CB]javadoc\f[R] tool continues to generate the deprecated API
 918 throughout the rest of the document.
 919 This is useful when your source code contains no deprecated APIs, and
 920 you want to make the navigation bar cleaner.
 921 .RS
 922 .RE
 923 .TP
 924 .B \f[CB]\-\-no\-frames\f[R]
 925 Disables the use of frames in the generated output.
 926 .RS
 927 .RE
 928 .TP
 929 .B \f[CB]\-nohelp\f[R]
 930 Omits the HELP link in the navigation bars at the top and bottom of each
 931 page of output.
 932 .RS
 933 .RE
 934 .TP
 935 .B \f[CB]\-noindex\f[R]
 936 Omits the index from the generated documents.
 937 The index is produced by default.
 938 .RS
 939 .RE
 940 .TP
 941 .B \f[CB]\-nonavbar\f[R]
 942 Prevents the generation of the navigation bar, header, and footer, that
 943 are usually found at the top and bottom of the generated pages.
 944 The \f[CB]\-nonavbar\f[R] option has no affect on the \f[CB]\-bottom\f[R]
 945 option.
 946 The \f[CB]\-nonavbar\f[R] option is useful when you are interested only in
 947 the content and have no need for navigation, such as when you are
 948 converting the files to PostScript or PDF for printing only.
 949 .RS
 950 .RE
 951 .TP
 952 .B \f[CB]\-noqualifier\f[R] \f[I]name1\f[R]\f[CB]:\f[R]\f[I]name2\f[R]...
 953 Excludes the list of qualifiers from the output.
 954 The package name is removed from places where class or interface names
 955 appear.
 956 .RS
 957 .PP
 958 The following example omits all package qualifiers:
 959 \f[CB]\-noqualifier\ all\f[R].
 960 .PP
 961 The following example omits \f[CB]java.lang\f[R] and \f[CB]java.io\f[R]
 962 package qualifiers: \f[CB]\-noqualifier\ java.lang:java.io\f[R].
 963 .PP
 964 The following example omits package qualifiers starting with
 965 \f[CB]java\f[R] and \f[CB]com.sun\f[R] subpackages, but not
 966 \f[CB]javax:\ \-noqualifier\ java.*:com.sun.*\f[R].
 967 .PP
 968 Where a package qualifier would appear due to the previous behavior, the
 969 name can be suitably shortened.
 970 This rule is in effect whether or not the \f[CB]\-noqualifier\f[R] option
 971 is used.
 972 .RE
 973 .TP
 974 .B \f[CB]\-nosince\f[R]
 975 Omits from the generated documents the \f[CB]Since\f[R] sections
 976 associated with the \f[CB]\@since\f[R] tags.
 977 .RS
 978 .RE
 979 .TP
 980 .B \f[CB]\-notimestamp\f[R]
 981 Suppresses the time stamp, which is hidden in an HTML comment in the
 982 generated HTML near the top of each page.
 983 The \f[CB]\-notimestamp\f[R] option is useful when you want to run the
 984 \f[CB]javadoc\f[R] tool on two source bases and get the differences
 985 between \f[CB]diff\f[R] them, because it prevents time stamps from causing
 986 a \f[CB]diff\f[R] (which would otherwise be a \f[CB]diff\f[R] on every
 987 page).
 988 The time stamp includes the \f[CB]javadoc\f[R] tool release number.
 989 .RS
 990 .RE
 991 .TP
 992 .B \f[CB]\-notree\f[R]
 993 Omits the class and interface hierarchy pages from the generated
 994 documents.
 995 These are the pages you reach using the Tree button in the navigation
 996 bar.
 997 The hierarchy is produced by default.
 998 .RS
 999 .RE
1000 .TP
1001 .B \f[CB]\-\-override\-methods\f[R] (\f[CB]detail\f[R]|\f[CB]summary\f[R])
1002 Documents overridden methods in the detail or summary sections.
1003 .RS
1004 .RE
1005 .TP
1006 .B \f[CB]\-overview\f[R] \f[I]filename\f[R]
1007 Specifies that the \f[CB]javadoc\f[R] tool should retrieve the text for
1008 the overview documentation from the source file specified by
1009 \f[CB]filename\f[R] and place it on the Overview page
1010 (\f[CB]overview\-summary.html\f[R]).
1011 A relative path specified with the file name is relative to the current
1012 working directory.
1013 .RS
1014 .PP
1015 While you can use any name you want for the \f[CB]filename\f[R] value and
1016 place it anywhere you want for the path, it is typical to name it
1017 \f[CB]overview.html\f[R] and place it in the source tree at the directory
1018 that contains the topmost package directories.
1019 In this location, no path is needed when documenting packages, because
1020 the \f[CB]\-sourcepath\f[R] option points to this file.
1021 .IP \[bu] 2
1022 \f[B]Oracle Solaris, Linux, and OS X:\f[R] For example, if the source
1023 tree for the \f[CB]java.lang\f[R] package is
1024 \f[CB]/src/classes/java/lang/\f[R], then you could place the overview file
1025 at /src/classes/overview.html.
1026 .IP \[bu] 2
1027 \f[B]Windows:\f[R] For example, if the source tree for the
1028 \f[CB]java.lang\f[R] package is \f[CB]\\src\\classes\\java\\lang\\\f[R],
1029 then you could place the overview file at
1030 \f[CB]\\src\\classes\\overview.html\f[R]
1031 .PP
1032 The overview page is created only when you pass two or more package
1033 names to the \f[CB]javadoc\f[R] tool.
1034 The title on the overview page is set by \f[CB]\-doctitle\f[R].
1035 .RE
1036 .TP
1037 .B \f[CB]\-serialwarn\f[R]
1038 Generates compile\-time warnings for missing \f[CB]\@serial\f[R] tags.
1039 By default, Javadoc generates no serial warnings.
1040 Use this option to display the serial warnings, which helps to properly
1041 document default serializable fields and \f[CB]writeExternal\f[R] methods.
1042 .RS
1043 .RE
1044 .TP
1045 .B \f[CB]\-sourcetab\f[R] \f[I]tablength\f[R]
1046 Specifies the number of spaces each tab uses in the source.
1047 .RS
1048 .RE
1049 .TP
1050 .B \f[CB]\-splitindex\f[R]
1051 Splits the index file into multiple files, alphabetically, one file per
1052 letter, plus a file for any index entries that start with
1053 non\-alphabetical symbols.
1054 .RS
1055 .RE
1056 .TP
1057 .B \f[CB]\-tag\f[R] \f[I]name\f[R]:\f[I]locations\f[R]:\f[I]header\f[R]
1058 Specifies single argument custom tags.
1059 For the \f[CB]javadoc\f[R] tool to spell\-check tag names, it is important
1060 to include a \f[CB]\-tag\f[R] option for every custom tag that is present
1061 in the source code, disabling (with \f[CB]X\f[R]) those that aren\[aq]t
1062 being output in the current run.
1063 The colon (\f[CB]:\f[R]) is always the separator.
1064 The \f[CB]\-tag\f[R] option outputs the tag heading, \f[I]header\f[R], in
1065 bold, followed on the next line by the text from its single argument.
1066 Similar to any block tag, the argument text can contain inline tags,
1067 which are also interpreted.
1068 The output is similar to standard one\-argument tags, such as the
1069 \f[CB]\@return\f[R] and \f[CB]\@author\f[R] tags.
1070 Omitting a \f[I]header\f[R] value causes the \f[I]name\f[R] to be the
1071 heading.
1072 .RS
1073 .RE
1074 .TP
1075 .B \f[CB]\-taglet\f[R] \f[I]class\f[R]
1076 Specifies the fully qualified name of the taglet used in generating the
1077 documentation for that tag.
1078 Use the fully qualified name for the \f[I]class\f[R] value.
1079 This taglet also defines the number of text arguments that the custom
1080 tag has.
1081 The taglet accepts those arguments, processes them, and generates the
1082 output.
1083 .RS
1084 .PP
1085 Taglets are useful for block or inline tags.
1086 They can have any number of arguments and implement custom behavior,
1087 such as making text bold, formatting bullets, writing out the text to a
1088 file, or starting other processes.
1089 Taglets can only determine where a tag should appear and in what form.
1090 All other decisions are made by the doclet.
1091 A taglet can\[aq]t do things such as remove a class name from the list
1092 of included classes.
1093 However, it can execute side effects, such as printing the tag\[aq]s
1094 text to a file or triggering another process.
1095 Use the \f[CB]\-tagletpath\f[R] option to specify the path to the taglet.
1096 The following example inserts the To Do taglet after Parameters and
1097 ahead of Throws in the generated pages.
1098 .IP
1099 .nf
1100 \f[CB]
1101 \-taglet\ com.sun.tools.doclets.ToDoTaglet
1102 \-tagletpath\ /home/taglets
1103 \-tag\ return
1104 \-tag\ param
1105 \-tag\ todo
1106 \-tag\ throws
1107 \-tag\ see
1108 \f[R]
1109 .fi
1110 .PP
1111 Alternately, you can use the \f[CB]\-taglet\f[R] option in place of its
1112 \f[CB]\-tag\f[R] option, but that might be difficult to read.
1113 .RE
1114 .TP
1115 .B \f[CB]\-tagletpath\f[R] \f[I]tagletpathlist\f[R]
1116 Specifies the search paths for finding taglet class files.
1117 The \f[I]tagletpathlist\f[R] can contain multiple paths by separating
1118 them with a colon (\f[CB]:\f[R]).
1119 The \f[CB]javadoc\f[R] tool searches all subdirectories of the specified
1120 paths.
1121 .RS
1122 .RE
1123 .TP
1124 .B \f[CB]\-top\f[R] \f[I]html\-code\f[R]
1125 Specifies the text to be placed at the top of each output file.
1126 .RS
1127 .RE
1128 .TP
1129 .B \f[CB]\-use\f[R]
1130 Creates class and package usage pages.
1131 Includes one Use page for each documented class and package.
1132 The page describes what packages, classes, methods, constructors and
1133 fields use any API of the specified class or package.
1134 Given class C, things that use class C would include subclasses of C,
1135 fields declared as C, methods that return C, and methods and
1136 constructors with parameters of type C.
1137 For example, you can look at the Use page for the \f[CB]String\f[R] type.
1138 Because the \f[CB]getName\f[R] method in the \f[CB]java.awt.Font\f[R] class
1139 returns type \f[CB]String\f[R], the \f[CB]getName\f[R] method uses
1140 \f[CB]String\f[R] and so the \f[CB]getName\f[R] method appears on the Use
1141 page for \f[CB]String\f[R].
1142 This documents only uses of the API, not the implementation.
1143 When a method uses \f[CB]String\f[R] in its implementation, but
1144 doesn\[aq]t take a string as an argument or return a string, that
1145 isn\[aq]t considered a use of \f[CB]String\f[R].To access the generated
1146 Use page, go to the class or package and click the \f[B]Use link\f[R] in
1147 the navigation bar.
1148 .RS
1149 .RE
1150 .TP
1151 .B \f[CB]\-version\f[R]
1152 Includes the version text in the generated docs.
1153 This text is omitted by default.
1154 To find out what version of the \f[CB]javadoc\f[R] tool you are using, use
1155 the \f[CB]\-J\-version\f[R] option.
1156 .RS
1157 .RE
1158 .TP
1159 .B \f[CB]\-windowtitle\f[R] \f[I]title\f[R]
1160 Specifies the title to be placed in the HTML \f[CB]<title>\f[R] tag.
1161 The text specified in the \f[CB]title\f[R] tag appears in the window title
1162 and in any browser bookmarks (favorite places) that someone creates for
1163 this page.
1164 This title shouldn\[aq]t contain any HTML tags because the browser
1165 doesn\[aq]t interpret them correctly.
1166 Use escape characters on any internal quotation marks within the
1167 \f[CB]title\f[R] tag.
1168 If the \f[CB]\-windowtitle\f[R] option is omitted, then the
1169 \f[CB]javadoc\f[R] tool uses the value of the \f[CB]\-doctitle\f[R] option
1170 for the \f[CB]\-windowtitle\f[R] option.
1171 For example,
1172 \f[CB]javadoc\ \-windowtitle\ "My\ Library"\ com.mypackage\f[R].
1173 .RS
1174 .RE
1175 .SH ADDITIONAL OPTIONS PROVIDED BY THE STANDARD DOCLET
1176 .PP
1177 The following are additional options provided by the standard doclet and
1178 are subject to change without notice.
1179 Additional options might are less commonly used or are otherwise
1180 regarded as advanced.
1181 .TP
1182 .B \f[CB]\-Xdoclint\f[R]
1183 Enables recommended checks for problems in Javadoc comments.
1184 .RS
1185 .RE
1186 .TP
1187 .B \f[CB]\-Xdoclint:\f[R](\f[CB]all\f[R]|\f[CB]none\f[R]|[\f[CB]\-\f[R]]\f[I]group\f[R])
1188 Enable or disable specific checks for bad references, lack of
1189 accessibility, missing Javadoc comments, and reports errors for invalid
1190 Javadoc syntax and missing HTML tags.
1191 .RS
1192 .PP
1193 This option enables the \f[CB]javadoc\f[R] tool to check for all
1194 documentation comments included in the generated output.
1195 You can select which items to include in the generated output with the
1196 standard options \f[CB]\-public\f[R], \f[CB]\-protected\f[R],
1197 \f[CB]\-package\f[R] and \f[CB]\-private\f[R].
1198 .PP
1199 When the \f[CB]\-Xdoclint\f[R] is enabled, it reports issues with messages
1200 similar to the \f[CB]javac\f[R] command.
1201 The \f[CB]javadoc\f[R] tool prints a message, a copy of the source line,
1202 and a caret pointing at the exact position where the error was detected.
1203 Messages may be either warnings or errors, depending on their severity
1204 and the likelihood to cause an error if the generated documentation were
1205 run through a validator.
1206 For example, bad references or missing Javadoc comments don\[aq]t cause
1207 the \f[CB]javadoc\f[R] tool to generate invalid HTML, so these issues are
1208 reported as warnings.
1209 Syntax errors or missing HTML end tags cause the \f[CB]javadoc\f[R] tool
1210 to generate invalid output, so these issues are reported as errors.
1211 .PP
1212 \f[CB]\-Xdoclint\f[R] option validates input comments based upon the
1213 requested markup.
1214 .PP
1215 By default, the \f[CB]\-Xdoclint\f[R] option is enabled.
1216 Disable it with the option \f[CB]\-Xdoclint:none\f[R].
1217 .PP
1218 The following options change what the \f[CB]\-Xdoclint\f[R] option
1219 reports:
1220 .IP \[bu] 2
1221 \f[CB]\-Xdoclint\ none\f[R]: Disables the \f[CB]\-Xdoclint\f[R] option
1222 .IP \[bu] 2
1223 \f[CB]\-Xdoclint\f[R] \f[I]group\f[R]: Enables \f[I]group\f[R] checks
1224 .IP \[bu] 2
1225 \f[CB]\-Xdoclint\ all\f[R]: Enables all groups of checks
1226 .IP \[bu] 2
1227 \f[CB]\-Xdoclint\ all,\-\f[R]\f[I]group\f[R]: Enables all checks except
1228 \f[I]group\f[R] checks
1229 .PP
1230 The \f[I]group\f[R] variable has one of the following values:
1231 .IP \[bu] 2
1232 \f[CB]accessibility\f[R]: Checks for the issues to be detected by an
1233 accessibility checker (for example, no caption or summary attributes
1234 specified in a \f[CB]<table>\f[R] tag).
1235 .IP \[bu] 2
1236 \f[CB]html\f[R]: Detects high\-level HTML issues, such as putting block
1237 elements inside inline elements, or not closing elements that require an
1238 end tag.
1239 The rules are derived from the \f[B]HTML 4 Specification\f[R]
1240 [https://www.w3.org/TR/html4/] or the \f[B]HTML 5 Specification\f[R]
1241 [http://www.w3.org/TR/2014/REC\-html5\-20141028/] based on the standard
1242 doclet \f[CB]html\f[R] output generation selected.
1243 This type of check enables the \f[CB]javadoc\f[R] tool to detect HTML
1244 issues that some browsers might not interpret as intended.
1245 .IP \[bu] 2
1246 \f[CB]missing\f[R]: Checks for missing Javadoc comments or tags (for
1247 example, a missing comment or class, or a missing \f[CB]\@return\f[R] tag
1248 or similar tag on a method).
1249 .IP \[bu] 2
1250 \f[CB]reference\f[R]: Checks for issues relating to the references to Java
1251 API elements from Javadoc tags (for example, item not found in
1252 \f[CB]\@see\f[R], or a bad name after \f[CB]\@param)\f[R].
1253 .IP \[bu] 2
1254 \f[CB]syntax\f[R]: Checks for low level issues like unescaped angle
1255 brackets (\f[CB]<\f[R] and \f[CB]>\f[R]) and ampersands (\f[CB]&\f[R]) and
1256 invalid Javadoc tags.
1257 .PP
1258 You can specify the \f[CB]\-Xdoclint\f[R] option multiple times to enable
1259 the option to check errors and warnings in multiple categories.
1260 Alternatively, you can specify multiple error and warning categories by
1261 using the preceding options.
1262 For example, use either of the following commands to check for the HTML,
1263 syntax, and accessibility issues in the file \f[I]filename\f[R].
1264 .RS
1265 .PP
1266 \f[CB]javadoc\ \-Xdoclint:html\ \-Xdoclint:syntax\ \-Xdoclint:accessibility\f[R]
1267 \f[I]filename\f[R]
1268 .RE
1269 .RS
1270 .PP
1271 \f[CB]javadoc\ \-Xdoclint:html,syntax,accessibility\f[R] \f[I]filename\f[R]
1272 .RE
1273 .PP
1274 \f[B]Note:\f[R]
1275 .PP
1276 The \f[CB]javadoc\f[R] tool doesn\[aq]t guarantee the completeness of
1277 these checks.
1278 In particular, it isn\[aq]t a full HTML compliance checker.
1279 The goal of the \-\f[CB]Xdoclint\f[R] option is to enable the
1280 \f[CB]javadoc\f[R] tool to report majority of common errors.
1281 .PP
1282 The \f[CB]javadoc\f[R] tool doesn\[aq]t attempt to fix invalid input, it
1283 just reports it.
1284 .RE
1285 .TP
1286 .B \f[CB]\-Xdoclint/package:\f[R][\f[CB]\-\f[R]]\f[I]packages\f[R]
1287 Enables or disables checks in specific packages.
1288 \f[I]packages\f[R] is a comma separated list of package specifiers.
1289 A package specifier is either a qualified name of a package or a package
1290 name prefix followed by \f[CB]*\f[R], which expands to all sub packages of
1291 the given package.
1292 Prefix the package specifier with \f[CB]\-\f[R] to disable checks for the
1293 specified packages.
1294 .RS
1295 .RE
1296 .TP
1297 .B \f[CB]\-Xdocrootparent\f[R] \f[I]url\f[R]
1298 Replaces all \f[CB]\@docRoot\f[R] items followed by\f[CB]/..\f[R] in Javadoc
1299 comments with the \f[I]url\f[R].
1300 .RS
1301 .RE































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































   1 '\" t
   2 .\" Copyright (c) 1994, 2015, Oracle and/or its affiliates. All rights reserved.
   3 .\" DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 .\"
   5 .\" This code is free software; you can redistribute it and/or modify it
   6 .\" under the terms of the GNU General Public License version 2 only, as
   7 .\" published by the Free Software Foundation.
   8 .\"
   9 .\" This code is distributed in the hope that it will be useful, but WITHOUT
  10 .\" ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 .\" FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 .\" version 2 for more details (a copy is included in the LICENSE file that
  13 .\" accompanied this code).
  14 .\"
  15 .\" You should have received a copy of the GNU General Public License version
  16 .\" 2 along with this work; if not, write to the Free Software Foundation,
  17 .\" Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 .\"
  19 .\" Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 .\" or visit www.oracle.com if you need additional information or have any
  21 .\" questions.
  22 .\"
  23 .\"     Arch: generic
  24 .\"     Software: JDK 8
  25 .\"     Date: 03 March 2015
  26 .\"     SectDesc: Basic Tools
  27 .\"     Title: javadoc.1
  28 .\"
  29 .if n .pl 99999
  30 .TH javadoc 1 "03 March 2015" "JDK 8" "Basic Tools"
  31 .\" -----------------------------------------------------------------
  32 .\" * Define some portability stuff
  33 .\" -----------------------------------------------------------------
  34 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  35 .\" http://bugs.debian.org/507673
  36 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
  37 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  38 .ie \n(.g .ds Aq \(aq
  39 .el       .ds Aq '
  40 .\" -----------------------------------------------------------------
  41 .\" * set default formatting
  42 .\" -----------------------------------------------------------------
  43 .\" disable hyphenation
  44 .nh
  45 .\" disable justification (adjust text to left margin only)
  46 .ad l
  47 .\" -----------------------------------------------------------------
  48 .\" * MAIN CONTENT STARTS HERE *
  49 .\" -----------------------------------------------------------------
  50 
  51 .SH NAME    
  52 javadoc \- Generates HTML pages of API documentation from Java source files\&.
  53 .SH SYNOPSIS    
  54 .sp     
  55 .nf     
  56 
  57 \fBjavadoc\fR {\fIpackages\fR|\fIsource\-files\fR} [\fIoptions\fR] [\fI@argfiles\fR]
  58 .fi     
  59 .sp     
  60 .TP     
  61 \fIpackages\fR
  62 Names of packages that you want to document, separated by spaces, for example \f3java\&.lang java\&.lang\&.reflect java\&.awt\fR\&. If you want to also document the subpackages, use the \f3-subpackages\fR option to specify the packages\&.
  63 
  64 By default, \f3javadoc\fR looks for the specified packages in the current directory and subdirectories\&. Use the \f3-sourcepath\fR option to specify the list of directories where to look for packages\&.
  65 .TP     
  66 \fIsource-files\fR
  67 Names of Java source files that you want to document, separated by spaces, for example \f3Class\&.java Object\&.java Button\&.java\fR\&. By default, \f3javadoc\fR looks for the specified classes in the current directory\&. However, you can specify the full path to the class file and use wildcard characters, for example \f3/home/src/java/awt/Graphics*\&.java\fR\&. You can also specify the path relative to the current directory\&.
  68 .TP     
  69 \fIoptions\fR
  70 Command-line options, separated by spaces\&. See Options\&.
  71 .TP     
  72 \fI@argfiles\fR
  73 Names of files that contain a list of \f3javadoc\fR command options, package names and source file names in any order\&.
  74 .SH DESCRIPTION    
  75 The \f3javadoc\fR command parses the declarations and documentation comments in a set of Java source files and produces a corresponding set of HTML pages that describe (by default) the public and protected classes, nested classes (but not anonymous inner classes), interfaces, constructors, methods, and fields\&. You can use the \f3javadoc\fR command to generate the API documentation or the implementation documentation for a set of source files\&.
  76 .PP
  77 You can run the \f3javadoc\fR command on entire packages, individual source files, or both\&. When documenting entire packages, you can either use the \f3-subpackages\fR option to recursively traverse a directory and its subdirectories, or to pass in an explicit list of package names\&. When you document individual source files, pass in a list of Java source file names\&. See Simple Examples\&.
  78 .SS PROCESS\ SOURCE\ FILES    
  79 The \f3javadoc\fR command processes files that end in source and other files described in Source Files\&. If you run the \f3javadoc\fR command by passing in individual source file names, then you can determine exactly which source files are processed\&. However, that is not how most developers want to work, because it is simpler to pass in package names\&. The \f3javadoc\fR command can be run three ways without explicitly specifying the source file names\&. You can pass in package names, use the \f3-subpackages\fR option, or use wild cards with source file names\&. In these cases, the \f3javadoc\fR command processes a source file only when the file fulfills all of the following requirements:
  80 .TP 0.2i    
  81 \(bu
  82 The file name prefix (with \f3\&.java\fR removed) is a valid class name\&.
  83 .TP 0.2i    
  84 \(bu
  85 The path name relative to the root of the source tree is a valid package name after the separators are converted to dots\&.
  86 .TP 0.2i    
  87 \(bu
  88 The package statement contains the valid package name\&.
  89 .PP
  90 Processing Links
  91 
  92 During a run, the \f3javadoc\fR command adds cross-reference links to package, class, and member names that are being documented as part of that run\&. Links appear in the following places\&. See Javadoc Tags for a description of the @ tags\&.
  93 .TP 0.2i    
  94 \(bu
  95 Declarations (return types, argument types, and field types)\&.
  96 .TP 0.2i    
  97 \(bu
  98 \fISee Also\fR sections that are generated from \f3@see\fR tags\&.
  99 .TP 0.2i    
 100 \(bu
 101 Inline text generated from \f3{@link}\fR tags\&.
 102 .TP 0.2i    
 103 \(bu
 104 Exception names generated from \f3@throws\fR tags\&.
 105 .TP 0.2i    
 106 \(bu
 107 \fISpecified by\fR links to interface members and \fIOverrides\fR links to class members\&. See Method Comment Inheritance\&.
 108 .TP 0.2i    
 109 \(bu
 110 Summary tables listing packages, classes and members\&.
 111 .TP 0.2i    
 112 \(bu
 113 Package and class inheritance trees\&.
 114 .TP 0.2i    
 115 \(bu
 116 The index\&.
 117 .PP
 118 You can add links to existing text for classes not included on the command line (but generated separately) by way of the \f3-link\fR and \f3-linkoffline\fR options\&.
 119 .PP
 120 Processing Details
 121 
 122 The \f3javadoc\fR command produces one complete document every time it runs\&. It does not do incremental builds that modify or directly incorporate the results from earlier runs\&. However, the \f3javadoc\fR command can link to results from other runs\&.
 123 .PP
 124 The \f3javadoc\fR command implementation requires and relies on the Java compiler\&. The \f3javadoc\fR command calls part of the \f3javac\fR command to compile the declarations and ignore the member implementations\&. The \f3javadoc\fR command builds a rich internal representation of the classes that includes the class hierarchy and use relationships to generate the HTML\&. The \f3javadoc\fR command also picks up user-supplied documentation from documentation comments in the source code\&. See Documentation Comments\&.
 125 .PP
 126 The \f3javadoc\fR command runs on source files that are pure stub files with no method bodies\&. This means you can write documentation comments and run the \f3javadoc\fR command in the early stages of design before API implementation\&.
 127 .PP
 128 Relying on the compiler ensures that the HTML output corresponds exactly with the actual implementation, which may rely on implicit, rather than explicit, source code\&. For example, the \f3javadoc\fR command documents default constructors that are present in the compiled class files but not in the source code\&.
 129 .PP
 130 In many cases, the \f3javadoc\fR command lets you generate documentation for source files with incomplete or erroneous code\&. You can generate documentation before all debugging and troubleshooting is done\&. The \f3javadoc\fR command does primitive checking of documentation comments\&.
 131 .PP
 132 When the \f3javadoc\fR command builds its internal structure for the documentation, it loads all referenced classes\&. Because of this, the \f3javadoc\fR command must be able to find all referenced classes, whether bootstrap classes, extensions, or user classes\&. See How Classes Are Found at http://docs\&.oracle\&.com/javase/8/docs/technotes/tools/findingclasses\&.html
 133 .PP
 134 Typically, classes you create must either be loaded as an extension or in the \f3javadoc\fR command class path\&.
 135 .SS JAVADOC\ DOCLETS    
 136 You can customize the content and format of the \f3javadoc\fR command output with doclets\&. The \f3javadoc\fR command has a default built-in doclet, called the standard doclet, that generates HTML-formatted API documentation\&. You can modify or make a subclass of the standard doclet, or write your own doclet to generate HTML, XML, MIF, RTF or whatever output format you want\&.
 137 .PP
 138 When a custom doclet is not specified with the \f3-doclet\fR option, the \f3javadoc\fR command uses the default standard doclet\&. The \f3javadoc\fR command has several options that are available regardless of which doclet is being used\&. The standard doclet adds a supplementary set of command-line options\&. See Options\&.
 139 .SH SOURCE\ FILES    
 140 The \f3javadoc\fR command generates output that originates from the following types of source files: Java language source files for classes (\f3\&.java\fR), package comment files, overview comment files, and miscellaneous unprocessed files\&. This section also describes test files and template files that can also be in the source tree, but that you want to be sure not to document\&.
 141 .SS CLASS\ SOURCE\ FILES    
 142 Each class or interface and its members can have their own documentation comments contained in a source file\&. See Documentation Comments\&.
 143 .SS PACKAGE\ COMMENT\ FILES    
 144 Each package can have its own documentation comment, contained in its own source file, that the \f3javadoc\fR command merges into the generated package summary page\&. You typically include in this comment any documentation that applies to the entire package\&.
 145 .PP
 146 To create a package comment file, you can place your comments in one of the following files:
 147 .TP 0.2i    
 148 \(bu
 149 The \f3package-info\&.java\fR file can contain the package declaration, package annotations, package comments, and Javadoc tags\&. This file is preferred\&.
 150 .TP 0.2i    
 151 \(bu
 152 The \f3package\&.html\fR file contains only package comments and Javadoc tags\&. No package annotations\&.
 153 .PP
 154 A package can have a single \f3package\&.html\fR file or a single \f3package-info\&.java\fR file, but not both\&. Place either file in the package directory in the source tree with your source files\&.
 155 .PP
 156 The package-info\&.java File
 157 
 158 The \f3package-info\&.java\fR file can contain a package comment of the following structure\&. The comment is placed before the package declaration\&.
 159 .PP
 160 \fINote:\fR The comment separators \f3/**\fR and \f3*/\fR must be present, but the leading asterisks on the intermediate lines can be left off\&.
 161 .sp     
 162 .nf     
 163 \f3/**\fP
 164 .fi     
 165 .nf     
 166 \f3 * Provides the classes necessary to create an  \fP
 167 .fi     
 168 .nf     
 169 \f3 * applet and the classes an applet uses \fP
 170 .fi     
 171 .nf     
 172 \f3 * to communicate with its applet context\&.\fP
 173 .fi     
 174 .nf     
 175 \f3 * <p>\fP
 176 .fi     
 177 .nf     
 178 \f3 * The applet framework involves two entities:\fP
 179 .fi     
 180 .nf     
 181 \f3 * the applet and the applet context\&.\fP
 182 .fi     
 183 .nf     
 184 \f3 * An applet is an embeddable window (see the\fP
 185 .fi     
 186 .nf     
 187 \f3 * {@link java\&.awt\&.Panel} class) with a few extra\fP
 188 .fi     
 189 .nf     
 190 \f3 * methods that the applet context can use to \fP
 191 .fi     
 192 .nf     
 193 \f3 * initialize, start, and stop the applet\&.\fP
 194 .fi     
 195 .nf     
 196 \f3 *\fP
 197 .fi     
 198 .nf     
 199 \f3 * @since 1\&.0\fP
 200 .fi     
 201 .nf     
 202 \f3 * @see java\&.awt\fP
 203 .fi     
 204 .nf     
 205 \f3 */\fP
 206 .fi     
 207 .nf     
 208 \f3package java\&.lang\&.applet;\fP
 209 .fi     
 210 .nf     
 211 \f3\fP
 212 .fi     
 213 .sp     
 214 
 215 .PP
 216 The package\&.html File
 217 
 218 The \f3package\&.html\fR file can contain a package comment of the following structure\&. The comment is placed in the \f3<body>\fR element\&.
 219 .PP
 220 File: \f3java/applet/package\&.html\fR
 221 .sp     
 222 .nf     
 223 \f3<HTML>\fP
 224 .fi     
 225 .nf     
 226 \f3<BODY>\fP
 227 .fi     
 228 .nf     
 229 \f3Provides the classes necessary to create an applet and the \fP
 230 .fi     
 231 .nf     
 232 \f3classes an applet uses to communicate with its applet context\&.\fP
 233 .fi     
 234 .nf     
 235 \f3<p>\fP
 236 .fi     
 237 .nf     
 238 \f3The applet framework involves two entities: the applet\fP
 239 .fi     
 240 .nf     
 241 \f3and the applet context\&. An applet is an embeddable\fP
 242 .fi     
 243 .nf     
 244 \f3window (see the {@link java\&.awt\&.Panel} class) with a\fP
 245 .fi     
 246 .nf     
 247 \f3few extra methods that the applet context can use to\fP
 248 .fi     
 249 .nf     
 250 \f3initialize, start, and stop the applet\&. \fP
 251 .fi     
 252 .nf     
 253 \f3\fP
 254 .fi     
 255 .nf     
 256 \f3@since 1\&.0 \fP
 257 .fi     
 258 .nf     
 259 \f3@see java\&.awt\fP
 260 .fi     
 261 .nf     
 262 \f3</BODY>\fP
 263 .fi     
 264 .nf     
 265 \f3</HTML>\fP
 266 .fi     
 267 .nf     
 268 \f3\fP
 269 .fi     
 270 .sp     
 271 The \f3package\&.html\fR file is a typical HTML file and does not include a package declaration\&. The content of the package comment file is written in HTML with one exception\&. The documentation comment should not include the comment separators \f3/**\fR and \f3*/\fR or leading asterisks\&. When writing the comment, make the first sentence a summary about the package, and do not put a title or any other text between the \f3<body>\fR tag and the first sentence\&. You can include package tags\&. All block tags must appear after the main description\&. If you add an \f3@see\fR tag in a package comment file, then it must have a fully qualified name\&.
 272 .PP
 273 Processing the Comment File
 274 
 275 When the \f3javadoc\fR command runs, it searches for the package comment file\&. If the package comment file is found, then the \f3javadoc\fR command does the following:
 276 .TP 0.2i    
 277 \(bu
 278 Copies the comment for processing\&. For package\&.html, the \f3javadoc\fR command copies all content between the \f3<body>\fR and \f3</body>\fR HTML tags\&. You can include a \f3<head>\fR section to put a \f3<title>\fR tag, source file copyright statement, or other information, but none of these appear in the generated documentation\&.
 279 .TP 0.2i    
 280 \(bu
 281 Processes the package tags\&. See Package Tags\&.
 282 .TP 0.2i    
 283 \(bu
 284 Inserts the processed text at the bottom of the generated package summary page\&. See Java Platform, Standard Edition API Specification Overview at http://docs\&.oracle\&.com/javase/8/docs/api/overview-summary\&.html
 285 .TP 0.2i    
 286 \(bu
 287 Copies the first sentence of the package comment to the top of the package summary page\&. The \f3javadoc\fR command also adds the package name and this first sentence to the list of packages on the overview page\&. See Java Platform, Standard Edition API Specification Overview at http://docs\&.oracle\&.com/javase/8/docs/api/overview-summary\&.html
 288 
 289 The end of the sentence is determined by the same rules used for the end of the first sentence of class and member main descriptions\&.
 290 .SS OVERVIEW\ COMMENT\ FILES    
 291 Each application or set of packages that you are documenting can have its own overview documentation comment that is kept in its own source file, that the \f3javadoc\fR command merges into the generated overview page\&. You typically include in this comment any documentation that applies to the entire application or set of packages\&.
 292 .PP
 293 You can name the file anything you want such as overview\&.html and place it anywhere\&. A typical location is at the top of the source tree\&.
 294 .PP
 295 For example, if the source files for the \f3java\&.applet\fR package are contained in the /home/user/src/java/applet directory, then you could create an overview comment file at /home/user/src/overview\&.html\&.
 296 .PP
 297 You can have multiple overview comment files for the same set of source files in case you want to run the \f3javadoc\fR command multiple times on different sets of packages\&. For example, you could run the \f3javadoc\fR command once with \f3-private\fR for internal documentation and again without that option for public documentation\&. In this case, you could describe the documentation as public or internal in the first sentence of each overview comment file\&.
 298 .PP
 299 The content of the overview comment file is one big documentation comment that is written in HTML\&. Make the first sentence a summary about the application or set of packages\&. Do not put a title or any other text between the \f3<body>\fR tag and the first sentence\&. All tags except inline tags, such as an {\f3@link}\fR tag, must appear after the main description\&. If you add an \f3@see\fR tag, then it must have a fully qualified name\&.
 300 .PP
 301 When you run the \f3javadoc\fR command, specify the overview comment file name with the \f3-overview\fR option\&. The file is then processed similarly to that of a package comment file\&. The \f3javadoc\fR command does the following:
 302 .TP 0.2i    
 303 \(bu
 304 Copies all content between the \f3<body>\fR and \f3</body>\fR tags for processing\&.
 305 .TP 0.2i    
 306 \(bu
 307 Processes the overview tags that are present\&. See Overview Tags\&.
 308 .TP 0.2i    
 309 \(bu
 310 Inserts the processed text at the bottom of the generated overview page\&. See Java Platform Standard Edition API Specification Overview at http://docs\&.oracle\&.com/javase/8/docs/api/overview-summary\&.html
 311 .TP 0.2i    
 312 \(bu
 313 Copies the first sentence of the overview comment to the top of the overview summary page\&.
 314 .SS UNPROCESSED\ FILES    
 315 Your source files can include any files that you want the \f3javadoc\fR command to copy to the destination directory\&. These files usually include graphic files, example Java source and class files, and self-standing HTML files with a lot of content that would overwhelm the documentation comment of a typical Java source file\&.
 316 .PP
 317 To include unprocessed files, put them in a directory called doc-files\&. The doc-files directory can be a subdirectory of any package directory that contains source files\&. You can have one doc-files subdirectory for each package\&.
 318 .PP
 319 For example, if you want to include the image of a button in the \f3java\&.awt\&.Button\fR class documentation, then place the image file in the /home/user/src/java/awt/doc-files/ directory\&. Do not place the doc-files directory at /home/user/src/java/doc-files, because java is not a package\&. It does not contain any source files\&.
 320 .PP
 321 All links to the unprocessed files must be included in the code because the \f3javadoc\fR command does not look at the files\&. The \f3javadoc\fR command copies the directory and all of its contents to the destination\&. The following example shows how the link in the Button\&.java documentation comment might look:
 322 .sp     
 323 .nf     
 324 \f3/**\fP
 325 .fi     
 326 .nf     
 327 \f3 * This button looks like this: \fP
 328 .fi     
 329 .nf     
 330 \f3 * <img src="doc\-files/Button\&.gif">\fP
 331 .fi     
 332 .nf     
 333 \f3 */\fP
 334 .fi     
 335 .nf     
 336 \f3\fP
 337 .fi     
 338 .sp     
 339 .SS TEST\ AND\ TEMPLATE\ FILES    
 340 You can store test and template files in the source tree in the same directory with or in a subdirectory of the directory where the source files reside\&. To prevent test and template files from being processed, run the \f3javadoc\fR command and explicitly pass in individual source file names\&.
 341 .PP
 342 Test files are valid, compilable source files\&. Template files are not valid, compatible source files, but they often have the \f3\&.java\fR suffix\&.
 343 .PP
 344 Test Files
 345 
 346 If you want your test files to belong to either an unnamed package or to a package other than the package that the source files are in, then put the test files in a subdirectory underneath the source files and give the directory an invalid name\&. If you put the test files in the same directory with the source and call the \f3javadoc\fR command with a command-line argument that indicates its package name, then the test files cause warnings or errors\&. If the files are in a subdirectory with an invalid name, then the test file directory is skipped and no errors or warnings are issued\&. For example, to add test files for source files in com\&.package1, put them in a subdirectory in an invalid package name\&. The following directory name is invalid because it contains a hyphen:
 347 .sp     
 348 .nf     
 349 \f3com/package1/test\-files/\fP
 350 .fi     
 351 .nf     
 352 \f3\fP
 353 .fi     
 354 .sp     
 355 If your test files contain documentation comments, then you can set up a separate run of the \f3javadoc\fR command to produce test file documentation by passing in their test source file names with wild cards, such as \f3com/package1/test-files/*\&.java\fR\&.
 356 .PP
 357 Template Files
 358 
 359 If you want a template file to be in the source directory, but not generate errors when you execute the \f3javadoc\fR command, then give it an invalid file name such as \f3Buffer-Template\&.java\fR to prevent it from being processed\&. The \f3javadoc\fR command only processes source files with names, when stripped of the \f3\&.java\fR suffix, that are valid class names\&.
 360 .SH GENERATED\ FILES    
 361 By default, the \f3javadoc\fR command uses a standard doclet that generates HTML-formatted documentation\&. The standard doclet generates basic content, cross-reference, and support pages described here\&. Each HTML page corresponds to a separate file\&. The \f3javadoc\fR command generates two types of files\&. The first type is named after classes and interfaces\&. The second type contain hyphens (such as package-summary\&.html) to prevent conflicts with the first type of file\&.
 362 .SS BASIC\ CONTENT\ PAGES    
 363 .TP 0.2i    
 364 \(bu
 365 One class or interface page (classname\&.html) for each class or interface being documented\&.
 366 .TP 0.2i    
 367 \(bu
 368 One package page (package-summary\&.html) for each package being documented\&. The \f3javadoc\fR command includes any HTML text provided in a file with the name package\&.html or package-info\&.java in the package directory of the source tree\&.
 369 .TP 0.2i    
 370 \(bu
 371 One overview page (overview-summary\&.html) for the entire set of packages\&. The overview page is the front page of the generated document\&. The \f3javadoc\fR command includes any HTML text provided in a file specified by the \f3-overview\fR option\&. The Overview page is created only when you pass two or more package names into the \f3javadoc\fR command\&. See HTML Frames and Options\&.
 372 .SS CROSS-REFERENCE\ PAGES    
 373 .TP 0.2i    
 374 \(bu
 375 One class hierarchy page for the entire set of packages (overview-tree\&.html)\&. To view the hierarchy page, click \fIOverview\fR in the navigation bar and click \fITree\fR\&.
 376 .TP 0.2i    
 377 \(bu
 378 One class hierarchy page for each package (package-tree\&.html) To view the hierarchy page, go to a particular package, class, or interface page, and click \fITree\fR to display the hierarchy for that package\&.
 379 .TP 0.2i    
 380 \(bu
 381 One use page for each package (package-use\&.html) and a separate use page for each class and interface (class-use/classname\&.html)\&. The use page describes what packages, classes, methods, constructors and fields use any part of the specified class, interface, or package\&. For example, given a class or interface A, its use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A\&. To view the use page, go to the package, class, or interface and click the \fIUse\fR link in the navigation bar\&.
 382 .TP 0.2i    
 383 \(bu
 384 A deprecated API page (deprecated-list\&.html) that lists all deprecated APIs and their suggested replacements\&. Avoid deprecated APIs because they can be removed in future implementations\&.
 385 .TP 0.2i    
 386 \(bu
 387 A constant field values page (constant-values\&.html) for the values of static fields\&.
 388 .TP 0.2i    
 389 \(bu
 390 A serialized form page (serialized-form\&.html) that provides information about serializable and externalizable classes with field and method descriptions\&. The information on this page is of interest to reimplementors, and not to developers who want to use the API\&. To access the serialized form page, go to any serialized class and click \fISerialized Form\fR in the See Also section of the class comment\&. The standard doclet generates a serialized form page that lists any class (public or non-public) that implements Serializable with its \f3readObject\fR and \f3writeObject\fR methods, the fields that are serialized, and the documentation comments from the \f3@serial\fR, \f3@serialField\fR, and \f3@serialData\fR tags\&. Public serializable classes can be excluded by marking them (or their package) with \f3@serial\fR exclude, and package-private serializable classes can be included by marking them (or their package) with an \f3@serial\fR include\&. As of Release 1\&.4, you can generate the complete serialized form for public and private classes by running the \f3javadoc\fR command without specifying the \f3-private\fR option\&. See Options\&.
 391 .TP 0.2i    
 392 \(bu
 393 An index page (\f3index-*\&.html\fR) of all class, interface, constructor, field and method names, in alphabetical order\&. The index page is internationalized for Unicode and can be generated as a single file or as a separate file for each starting character (such as A\(enZ for English)\&.
 394 .SS SUPPORT\ PAGES    
 395 .TP 0.2i    
 396 \(bu
 397 A help page (help-doc\&.html) that describes the navigation bar and the previous pages\&. Use \f3-helpfile\fR to override the default help file with your own custom help file\&.
 398 .TP 0.2i    
 399 \(bu
 400 One index\&.html file that creates the HTML frames for display\&. Load this file to display the front page with frames\&. The index\&.html file contains no text content\&.
 401 .TP 0.2i    
 402 \(bu
 403 Several frame files (\f3*-frame\&.html\fR) that contains lists of packages, classes, and interfaces\&. The frame files display the HTML frames\&.
 404 .TP 0.2i    
 405 \(bu
 406 A package list file (package-list) that is used by the \f3-link\fR and \f3-linkoffline\fR options\&. The package list file is a text file that is not reachable through links\&.
 407 .TP 0.2i    
 408 \(bu
 409 A style sheet file (stylesheet\&.css) that controls a limited amount of color, font family, font size, font style, and positioning information on the generated pages\&.
 410 .TP 0.2i    
 411 \(bu
 412 A doc-files directory that holds image, example, source code, or other files that you want copied to the destination directory\&. These files are not processed by the \f3javadoc\fR command\&. This directory is not processed unless it exists in the source tree\&.
 413 .PP
 414 See Options\&.
 415 .SS HTML\ FRAMES    
 416 The \f3javadoc\fR command generates the minimum number of frames (two or three) necessary based on the values passed to the command\&. It omits the list of packages when you pass a single package name or source files that belong to a single package as an argument to the \f3javadoc\fR command\&. Instead, the \f3javadoc\fR command creates one frame in the left-hand column that displays the list of classes\&. When you pass two or more package names, the \f3javadoc\fR command creates a third frame that lists all packages and an overview page (overview-summary\&.html)\&. To bypass frames, click the \fINo Frames\fR link or enter the page set from the overview-summary\&.html page\&.
 417 .SS GENERATED\ FILE\ STRUCTURE    
 418 The generated class and interface files are organized in the same directory hierarchy that Java source files and class files are organized\&. This structure is one directory per subpackage\&.
 419 .PP
 420 For example, the document generated for the \f3java\&.applet\&.Applet\fR class would be located at java/applet/Applet\&.html\&.
 421 .PP
 422 The file structure for the \f3java\&.applet\fR package follows, assuming that the destination directory is named \f3apidocs\fR\&. All files that contain the word \fIframe\fR appear in the upper-left or lower-left frames, as noted\&. All other HTML files appear in the right-hand frame\&.
 423 .PP
 424 Directories are bold\&. The asterisks (*) indicate the files and directories that are omitted when the arguments to the \f3javadoc\fR command are source file names rather than package names\&. When arguments are source file names, an empty package list is created\&. The doc-files directory is not created in the destination unless it exists in the source tree\&. See Generated Files\&.
 425 .TP 0.2i    
 426 \(bu
 427 \fIapidocs\fR: Top-level directory
 428 .RS     
 429 .TP 0.2i    
 430 \(bu
 431 index\&.html: Initial Page that sets up HTML frames
 432 .TP 0.2i    
 433 \(bu
 434 *overview-summary\&.html: Package list with summaries
 435 .TP 0.2i    
 436 \(bu
 437 overview-tree\&.html: Class hierarchy for all packages
 438 .TP 0.2i    
 439 \(bu
 440 deprecated-list\&.html: Deprecated APIs for all packages
 441 .TP 0.2i    
 442 \(bu
 443 constant-values\&.html: Static field values for all packages
 444 .TP 0.2i    
 445 \(bu
 446 serialized-form\&.html: Serialized forms for all packages
 447 .TP 0.2i    
 448 \(bu
 449 *overview-frame\&.html: All packages for display in upper-left frame
 450 .TP 0.2i    
 451 \(bu
 452 allclasses-frame\&.html: All classes for display in lower-left frame
 453 .TP 0.2i    
 454 \(bu
 455 help-doc\&.html: Help about Javadoc page organization
 456 .TP 0.2i    
 457 \(bu
 458 index-all\&.html: Default index created without \f3-splitindex\fR option
 459 .TP 0.2i    
 460 \(bu
 461 \fIindex-files\fR: Directory created with \f3-splitindex\fR option
 462 .RS     
 463 .TP 0.2i    
 464 \(bu
 465 index-<number>\&.html: Index files created with \f3-splitindex\fR option
 466 .RE     
 467 
 468 .TP 0.2i    
 469 \(bu
 470 package-list: Package names for resolving external references
 471 .TP 0.2i    
 472 \(bu
 473 stylesheet\&.css: Defines fonts, colors, positions, and so on
 474 .RE     
 475 
 476 .TP 0.2i    
 477 \(bu
 478 \fIjava\fR: Package directory
 479 .RS     
 480 .TP 0.2i    
 481 \(bu
 482 \fIapplet\fR: Subpackage directory
 483 .RS     
 484 .TP 0.2i    
 485 \(bu
 486 Applet\&.html: \f3Applet\fR class page
 487 .TP 0.2i    
 488 \(bu
 489 AppletContext\&.html: \f3AppletContext\fR interface
 490 .TP 0.2i    
 491 \(bu
 492 AppletStub\&.html: \f3AppletStub\fR interface
 493 .TP 0.2i    
 494 \(bu
 495 AudioClip\&.html: \f3AudioClip\fR interface
 496 .TP 0.2i    
 497 \(bu
 498 package-summary\&.html: Classes with summaries
 499 .TP 0.2i    
 500 \(bu
 501 package-frame\&.html: Package classes for display in lower-left frame
 502 .TP 0.2i    
 503 \(bu
 504 package-tree\&.html: Class hierarchy for this package
 505 .TP 0.2i    
 506 \(bu
 507 package-use\&.html: Where this package is used
 508 .TP 0.2i    
 509 \(bu
 510 \fIdoc-files\fR: Image and example files directory
 511 .TP 0.2i    
 512 \(bu
 513 \fIclass-use\fR: Image and examples file location
 514 
 515 - Applet\&.html: Uses of the Applet class
 516 
 517 - AppletContext\&.html: Uses of the \f3AppletContext\fR interface
 518 
 519 - AppletStub\&.html: Uses of the \f3AppletStub\fR interface
 520 
 521 - AudioClip\&.html: Uses of the \f3AudioClip\fR interface
 522 .RE     
 523 
 524 .RE     
 525 
 526 .TP 0.2i    
 527 \(bu
 528 \fIsrc-html\fR: Source code directory
 529 .RS     
 530 .TP 0.2i    
 531 \(bu
 532 \fIjava\fR: Package directory
 533 .RS     
 534 .TP 0.2i    
 535 \(bu
 536 \fIapplet\fR: Subpackage directory
 537 
 538 - Applet\&.html: Applet source code
 539 
 540 - AppletContext\&.html: \f3AppletContext\fR source code
 541 
 542 - AppletStub\&.html: \f3AppletStub\fR source code
 543 
 544 - AudioClip\&.html: \f3AudioClip\fR source code
 545 .RE     
 546 
 547 .RE     
 548 
 549 .SS GENERATED\ API\ DECLARATIONS    
 550 The \f3javadoc\fR command generates a declaration at the start of each class, interface, field, constructor, and method description for that API item\&. For example, the declaration for the \f3Boolean\fR class is:
 551 .sp     
 552 .nf     
 553 \f3public final class Boolean\fP
 554 .fi     
 555 .nf     
 556 \f3extends Object\fP
 557 .fi     
 558 .nf     
 559 \f3implements Serializable\fP
 560 .fi     
 561 .nf     
 562 \f3\fP
 563 .fi     
 564 .sp     
 565 The declaration for the \f3Boolean\&.valueOf\fR method is:
 566 .sp     
 567 .nf     
 568 \f3public static Boolean valueOf(String s)\fP
 569 .fi     
 570 .nf     
 571 \f3\fP
 572 .fi     
 573 .sp     
 574 The \f3javadoc\fR command can include the modifiers \f3public\fR, \f3protected\fR, \f3private\fR, \f3abstract\fR, \f3final\fR, \f3static\fR, \f3transient\fR, and \f3volatile\fR, but not \f3synchronized\fR or \f3native\fR\&. The \f3synchronized\fR and \f3native\fR modifiers are considered implementation detail and not part of the API specification\&.
 575 .PP
 576 Rather than relying on the keyword \f3synchronized\fR, APIs should document their concurrency semantics in the main description of the comment\&. For example, a description might be: A single enumeration cannot be used by multiple threads concurrently\&. The document should not describe how to achieve these semantics\&. As another example, while the \f3Hashtable\fR option should be thread-safe, there is no reason to specify that it is achieved by synchronizing all of its exported methods\&. It is better to reserve the right to synchronize internally at the bucket level for higher concurrency\&.
 577 .SH DOCUMENTATION\ COMMENTS    
 578 This section describes source code comments and comment inheritance\&.
 579 .SS SOURCE\ CODE\ COMMENTS    
 580 You can include documentation comments in the source code, ahead of declarations for any class, interface, method, constructor, or field\&. You can also create documentation comments for each package and another one for the overview, though their syntax is slightly different\&. A documentation comment consists of the characters between \f3/**\fR and \f3*/\fR that end it\&. Leading asterisks are allowed on each line and are described further in the following section\&. The text in a comment can continue onto multiple lines\&.
 581 .sp     
 582 .nf     
 583 \f3/**\fP
 584 .fi     
 585 .nf     
 586 \f3 * This is the typical format of a simple documentation comment\fP
 587 .fi     
 588 .nf     
 589 \f3 * that spans two lines\&.\fP
 590 .fi     
 591 .nf     
 592 \f3 */\fP
 593 .fi     
 594 .nf     
 595 \f3\fP
 596 .fi     
 597 .sp     
 598 To save space you can put a comment on one line:
 599 .sp     
 600 .nf     
 601 \f3/** This comment takes up only one line\&. */\fP
 602 .fi     
 603 .nf     
 604 \f3\fP
 605 .fi     
 606 .sp     
 607 
 608 .PP
 609 Placement of Comments
 610 
 611 Documentation comments are recognized only when placed immediately before class, interface, constructor, method, or field declarations\&. Documentation comments placed in the body of a method are ignored\&. The \f3javadoc\fR command recognizes only one documentation comment per declaration statement\&. See Where Tags Can Be Used\&.
 612 .PP
 613 A common mistake is to put an \f3import\fR statement between the class comment and the class declaration\&. Do not put an \f3import\fR statement at this location because the \f3javadoc\fR command ignores the class comment\&.
 614 .sp     
 615 .nf     
 616 \f3/**\fP
 617 .fi     
 618 .nf     
 619 \f3 * This is the class comment for the class Whatever\&.\fP
 620 .fi     
 621 .nf     
 622 \f3 */\fP
 623 .fi     
 624 .nf     
 625 \f3\fP
 626 .fi     
 627 .nf     
 628 \f3import com\&.example;   // MISTAKE \- Important not to put import statement here\fP
 629 .fi     
 630 .nf     
 631 \f3\fP
 632 .fi     
 633 .nf     
 634 \f3public class Whatever{ }\fP
 635 .fi     
 636 .nf     
 637 \f3\fP
 638 .fi     
 639 .sp     
 640 
 641 .PP
 642 Parts of Comments
 643 
 644 A documentation comment has a main description followed by a tag section\&. The main description begins after the starting delimiter \f3/**\fR and continues until the tag section\&. The tag section starts with the first block tag, which is defined by the first \f3@\fR character that begins a line (ignoring leading asterisks, white space, and leading separator \f3/**\fR)\&. It is possible to have a comment with only a tag section and no main description\&. The main description cannot continue after the tag section begins\&. The argument to a tag can span multiple lines\&. There can be any number of tags, and some types of tags can be repeated while others cannot\&. For example, this \f3@see\fR tag starts the tag section:
 645 .sp     
 646 .nf     
 647 \f3/**\fP
 648 .fi     
 649 .nf     
 650 \f3 * This sentence holds the main description for this documentation comment\&.\fP
 651 .fi     
 652 .nf     
 653 \f3 * @see java\&.lang\&.Object\fP
 654 .fi     
 655 .nf     
 656 \f3 */\fP
 657 .fi     
 658 .nf     
 659 \f3\fP
 660 .fi     
 661 .sp     
 662 
 663 .PP
 664 Block and inline Tags
 665 
 666 A tag is a special keyword within a documentation comment that the \f3javadoc\fR command processes\&. There are two kinds of tags: block tags, which appear as an \f3@tag\fR tag (also known as standalone tags), and inline tags, which appear within braces, as an \f3{@tag}\fR tag\&. To be interpreted, a block tag must appear at the beginning of a line, ignoring leading asterisks, white space, and the separator (\f3/**\fR)\&. This means you can use the \f3@\fR character elsewhere in the text and it will not be interpreted as the start of a tag\&. If you want to start a line with the \f3@\fR character and not have it be interpreted, then use the HTML entity \f3@\fR\&. Each block tag has associated text, which includes any text following the tag up to, but not including, either the next tag, or the end of the documentation comment\&. This associated text can span multiple lines\&. An inline tag is allowed and interpreted anywhere that text is allowed\&. The following example contains the \f3@deprecated\fR block tag and the \f3{@link}\fR inline tag\&. See Javadoc Tags\&.
 667 .sp     
 668 .nf     
 669 \f3/**\fP
 670 .fi     
 671 .nf     
 672 \f3 * @deprecated  As of JDK 1\&.1, replaced by {@link #setBounds(int,int,int,int)}\fP
 673 .fi     
 674 .nf     
 675 \f3 */\fP
 676 .fi     
 677 .nf     
 678 \f3\fP
 679 .fi     
 680 .sp     
 681 
 682 .PP
 683 Write Comments in HTML
 684 
 685 The text must be written in HTML with HTML entities and HTML tags\&. You can use whichever version of HTML your browser supports\&. The standard doclet generates HTML 3\&.2-compliant code elsewhere (outside of the documentation comments) with the inclusion of cascading style sheets and frames\&. HTML 4\&.0 is preferred for generated files because of the frame sets\&.
 686 .PP
 687 For example, entities for the less than symbol (<) and the greater than symbol (>) should be written as \f3&lt;\fR and \f3&gt;\fR\&. Similarly, the ampersand (&) should be written as \f3&amp;\fR\&. The bold HTML tag \f3<b>\fR is shown in the following example\&.
 688 .sp     
 689 .nf     
 690 \f3/**\fP
 691 .fi     
 692 .nf     
 693 \f3 * This is a <b>doc</b> comment\&.\fP
 694 .fi     
 695 .nf     
 696 \f3 * @see java\&.lang\&.Object\fP
 697 .fi     
 698 .nf     
 699 \f3 */\fP
 700 .fi     
 701 .nf     
 702 \f3\fP
 703 .fi     
 704 .sp     
 705 
 706 .PP
 707 Leading Asterisks
 708 
 709 When the \f3javadoc\fR command parses a documentation comment, leading asterisks (*) on each line are discarded, and blanks and tabs that precede the initial asterisks (*) are also discarded\&. If you omit the leading asterisk on a line, then the leading white space is no longer removed so that you can paste code examples directly into a documentation comment inside a \f3<PRE>\fR tag with its indentation preserved\&. Spaces are interpreted by browsers more uniformly than tabs\&. Indentation is relative to the left margin (rather than the separator \f3/**\fR or \f3<PRE>\fR tag)\&.
 710 .PP
 711 First Sentence
 712 
 713 The first sentence of each documentation comment should be a summary sentence that contains a concise but complete description of the declared entity\&. This sentence ends at the first period that is followed by a blank, tab, or line terminator, or at the first block tag\&. The \f3javadoc\fR command copies this first sentence to the member summary at the top of the HTML page\&.
 714 .PP
 715 Multiple-Field Declarations
 716 
 717 The Java platform lets you declare multiple fields in a single statement, but this statement can have only one documentation comment that is copied for all fields\&. If you want individual documentation comments for each field, then declare each field in a separate statement\&. For example, the following documentation comment does not make sense written as a single declaration and would be better handled as two declarations:
 718 .sp     
 719 .nf     
 720 \f3/** \fP
 721 .fi     
 722 .nf     
 723 \f3 * The horizontal and vertical distances of point (x,y)\fP
 724 .fi     
 725 .nf     
 726 \f3 */\fP
 727 .fi     
 728 .nf     
 729 \f3public int x, y;      // Avoid this \fP
 730 .fi     
 731 .nf     
 732 \f3\fP
 733 .fi     
 734 .sp     
 735 The \f3javadoc\fR command generates the following documentation from the previous code:
 736 .sp     
 737 .nf     
 738 \f3public int x\fP
 739 .fi     
 740 .nf     
 741 \f3\fP
 742 .fi     
 743 .sp     
 744 The horizontal and vertical distances of point (x, y)\&.
 745 .sp     
 746 .nf     
 747 \f3public int y\fP
 748 .fi     
 749 .nf     
 750 \f3\fP
 751 .fi     
 752 .sp     
 753 The horizontal and vertical distances of point (x, y)\&.
 754 .PP
 755 Use of Header Tags
 756 
 757 When writing documentation comments for members, it is best not to use HTML heading tags such as \f3<H1>\fR and \f3<H2>\fR, because the \f3javadoc\fR command creates an entire structured document, and these structural tags might interfere with the formatting of the generated document\&. However, you can use these headings in class and package comments to provide your own structure\&.
 758 .SS METHOD\ COMMENT\ INHERITANCE    
 759 The \f3javadoc\fR command allows method comment inheritance in classes and interfaces to fill in missing text or to explicitly inherit method comments\&. Constructors, fields, and nested classes do not inherit documentation comments\&.
 760 .PP
 761 \fINote:\fR The source file for an inherited method must be on the path specified by the \f3-sourcepath\fR option for the documentation comment to be available to copy\&. Neither the class nor its package needs to be passed in on the command line\&. This contrasts with Release 1\&.3\&.\fIn\fR and earlier releases, where the class had to be a documented class\&.
 762 .PP
 763 Fill in Missing Text
 764 
 765 When a main description, or \f3@return\fR, \f3@param\fR, or \f3@throws\fR tag is missing from a method comment, the \f3javadoc\fR command copies the corresponding main description or tag comment from the method it overrides or implements (if any)\&. See Method Comment Inheritance\&.
 766 .PP
 767 When an \f3@param\fR tag for a particular parameter is missing, the comment for that parameter is copied from the method further up the inheritance hierarchy\&. When an \f3@throws\fR tag for a particular exception is missing, the \f3@throws\fR tag is copied only when that exception is declared\&.
 768 .PP
 769 This behavior contrasts with Release 1\&.3 and earlier, where the presence of any main description or tag would prevent all comments from being inherited\&.
 770 .PP
 771 See Javadoc Tags and Options\&.
 772 .PP
 773 Explicit Inheritance
 774 
 775 Insert the \f3{@inheritDoc}\fR inline tag in a method main description or \f3@return\fR, \f3@param\fR, or \f3@throws\fR tag comment\&. The corresponding inherited main description or tag comment is copied into that spot\&.
 776 .SS CLASS\ AND\ INTERFACE\ INHERITANCE    
 777 Comment inheritance occurs in all possible cases of inheritance from classes and interfaces:
 778 .TP 0.2i    
 779 \(bu
 780 When a method in a class overrides a method in a superclass
 781 .TP 0.2i    
 782 \(bu
 783 When a method in an interface overrides a method in a superinterface
 784 .TP 0.2i    
 785 \(bu
 786 When a method in a class implements a method in an interface
 787 .PP
 788 In the first two cases, the \f3javadoc\fR command generates the subheading \fIOverrides\fR in the documentation for the overriding method\&. A link to the method being overridden is included, whether or not the comment is inherited\&.
 789 .PP
 790 In the third case, when a method in a specified class implements a method in an interface, the \f3javadoc\fR command generates the subheading \fISpecified by\fR in the documentation for the overriding method\&. A link to the method being implemented is included, whether or not the comment is inherited\&.
 791 .SS METHOD\ COMMENTS\ ALGORITHM    
 792 If a method does not have a documentation comment, or has an \f3{@inheritDoc}\fR tag, then the \f3javadoc\fR command uses the following algorithm to search for an applicable comment\&. The algorithm is designed to find the most specific applicable documentation comment, and to give preference to interfaces over superclasses:
 793 .TP 0.4i    
 794 1\&.
 795 Look in each directly implemented (or extended) interface in the order they appear following the word \f3implements\fR (or \f3extends\fR) in the method declaration\&. Use the first documentation comment found for this method\&.
 796 .TP 0.4i    
 797 2\&.
 798 If Step 1 failed to find a documentation comment, then recursively apply this entire algorithm to each directly implemented (or extended) interface in the same order they were examined in Step 1\&.
 799 .TP 0.4i    
 800 3\&.
 801 When Step 2 fails to find a documentation comment and this is a class other than the \f3Object\fR class, but not an interface:
 802 .RS     
 803 .TP 0.4i    
 804 1\&.
 805 If the superclass has a documentation comment for this method, then use it\&.
 806 .TP 0.4i    
 807 2\&.
 808 If Step 3a failed to find a documentation comment, then recursively apply this entire algorithm to the superclass\&.
 809 .RE     
 810 
 811 .SH JAVADOC\ TAGS    
 812 The \f3javadoc\fR command parses special tags when they are embedded within a Java documentation comment\&. The \f3javadoc\fR tags let you autogenerate a complete, well-formatted API from your source code\&. The tags start with an at sign (\f3@\fR) and are case-sensitive\&. They must be typed with the uppercase and lowercase letters as shown\&. A tag must start at the beginning of a line (after any leading spaces and an optional asterisk), or it is treated as text\&. By convention, tags with the same name are grouped together\&. For example, put all \f3@see\fR tags together\&. For more information, see Where Tags Can Be Used\&.
 813 .PP
 814 Tags have the following types:
 815 .TP 0.2i    
 816 \(bu
 817 Bock tags: Place block tags only in the tag section that follows the description\&. Block tags have the form: \fI@tag\fR\&.
 818 .TP 0.2i    
 819 \(bu
 820 Inline tags: Place inline tags anywhere in the main description or in the comments for block tags\&. Inline tags are enclosed within braces: \fI{@tag}\fR\&.
 821 .PP
 822 For custom tags, see -tag tagname:Xaoptcmf:"taghead"\&. See also Where Tags Can Be Used\&.
 823 .SS TAG\ DESCRIPTIONS    
 824 .TP     
 825 @author \fIname-text\fR
 826 Introduced in JDK 1\&.0
 827 
 828 Adds an Author entry with the specified name text to the generated documents when the \f3-author\fR option is used\&. A documentation comment can contain multiple \f3@author\fR tags\&. You can specify one name per \f3@author\fR tag or multiple names per tag\&. In the former case, the \f3javadoc\fR command inserts a comma (,) and space between names\&. In the latter case, the entire text is copied to the generated document without being parsed\&. Therefore, you can use multiple names per line if you want a localized name separator other than a comma\&. See @author in How to Write Doc Comments for the Javadoc Tool at http://www\&.oracle\&.com/technetwork/java/javase/documentation/index-137868\&.html#@author
 829 .TP     
 830 {@code \fItext\fR}
 831 Introduced in JDK 1\&.5
 832 
 833 Equivalent to \f3<code>{@literal}</code>\fR\&.
 834 
 835 Displays text in code font without interpreting the text as HTML markup or nested Javadoc tags\&. This enables you to use regular angle brackets (< and >) instead of the HTML entities (\f3&lt;\fR and \f3&gt;\fR) in documentation comments, such as in parameter types (\f3<Object>\fR), inequalities (\f33 < 4\fR), or arrows (\f3<-\fR)\&. For example, the documentation comment text \f3{@code A<B>C}\fR displayed in the generated HTML page unchanged as \f3A<B>C\fR\&. This means that the \f3<B>\fR is not interpreted as bold and is in code font\&. If you want the same functionality without the code font, then use the \f3{@literal}\fR tag\&.
 836 .TP     
 837 @deprecated \fIdeprecated-text\fR
 838 Introduced in JDK 1\&.0
 839 
 840 Adds a comment indicating that this API should no longer be used (even though it may continue to work)\&. The \f3javadoc\fR command moves \f3deprecated-text\fRahead of the main description, placing it in italics and preceding it with a bold warning: Deprecated\&. This tag is valid in all documentation comments: overview, package, class, interface, constructor, method and field\&.
 841 
 842 The first sentence of deprecated text should tell the user when the API was deprecated and what to use as a replacement\&. The \f3javadoc\fR command copies the first sentence to the summary section and index\&. Subsequent sentences can also explain why it was deprecated\&. You should include an \f3{@link}\fR tag (for Javadoc 1\&.2 or later) that points to the replacement API\&.
 843 
 844 Use the \fI@deprecated annotation\fR tag to deprecate a program element\&. See How and When to Deprecate APIs at http://docs\&.oracle\&.com/javase/8/docs/technotes/guides/javadoc/deprecation/deprecation\&.html
 845 
 846 See also @deprecated in How to Write Doc Comments for the Javadoc Tool at http://www\&.oracle\&.com/technetwork/java/javase/documentation/index-137868\&.html#@deprecated
 847 .TP     
 848 {@docRoot}
 849 Introduced in JDK 1\&.3
 850 
 851 Represents the relative path to the generated document\&'s (destination) root directory from any generated page\&. This tag is useful when you want to include a file, such as a copyright page or company logo, that you want to reference from all generated pages\&. Linking to the copyright page from the bottom of each page is common\&.
 852 
 853 This \f3{@docRoot}\fR tag can be used both on the command line and in a documentation comment\&. This tag is valid in all documentation comments: overview, package, class, interface, constructor, method and field, and includes the text portion of any tag (such as the \f3@return\fR, \f3@param\fR and \f3@deprecated\fR tags)\&.
 854 .RS     
 855 .TP 0.2i    
 856 \(bu
 857 On the command line, where the header, footer, or bottom are defined: \f3javadoc -bottom \&'<a href="{@docRoot}/copyright\&.html">Copyright</a>\&'\fR\&.
 858 
 859 When you use the \f3{@docRoot}\fR tag this way in a make file, some \f3makefile\fR programs require a special way to escape for the brace \f3{}\fR characters\&. For example, the Inprise MAKE version 5\&.2 running on Windows requires double braces: \f3{{@docRoot}}\fR\&. It also requires double (rather than single) quotation marks to enclose arguments to options such as the \f3-bottom\fR option (with the quotation marks around the \f3href\fR argument omitted)\&.
 860 .TP 0.2i    
 861 \(bu
 862 In a documentation comment:
 863 .sp     
 864 .nf     
 865 \f3/**\fP
 866 .fi     
 867 .nf     
 868 \f3 * See the <a href="{@docRoot}/copyright\&.html">Copyright</a>\&.\fP
 869 .fi     
 870 .nf     
 871 \f3 */\fP
 872 .fi     
 873 .nf     
 874 \f3\fP
 875 .fi     
 876 .sp     
 877 
 878 
 879 This tag is needed because the generated documents are in hierarchical directories, as deep as the number of subpackages\&. The expression: \f3<a href="{@docRoot}/copyright\&.html">\fR resolves to \f3<a href="\&.\&./\&.\&./copyright\&.html">\fR for \f3java/lang/Object\&.java\fR and \f3<a href="\&.\&./\&.\&./\&.\&./copyright\&.html">\fR for \f3java/lang/ref/Reference\&.java\fR\&.
 880 .RE     
 881 
 882 .TP     
 883 @exception \fIclass-name description\fR
 884 Introduced in JDK 1\&.0
 885 
 886 Identical to the \f3@throws\fR tag\&. See @throws class-name description\&.
 887 .TP     
 888 {@inheritDoc}
 889 Introduced in JDK 1\&.4
 890 
 891 Inherits (copies) documentation from the nearest inheritable class or implementable interface into the current documentation comment at this tag\&'s location\&. This enables you to write more general comments higher up the inheritance tree and to write around the copied text\&.
 892 
 893 This tag is valid only in these places in a documentation comment:
 894 .RS     
 895 .TP 0.2i    
 896 \(bu
 897 In the main description block of a method\&. In this case, the main description is copied from a class or interface up the hierarchy\&.
 898 .TP 0.2i    
 899 \(bu
 900 In the text arguments of the \f3@return\fR, \f3@param,\fR and \f3@throws\fR tags of a method\&. In this case, the tag text is copied from the corresponding tag up the hierarchy\&.
 901 .RE     
 902 
 903 
 904 See Method Comment Inheritance for a description of how comments are found in the inheritance hierarchy\&. Note that if this tag is missing, then the comment is or is not automatically inherited according to rules described in that section\&.
 905 .TP     
 906 {@link \fIpackage\&.class#member label\fR}
 907 Introduced in JDK 1\&.2
 908 
 909 Inserts an inline link with a visible text label that points to the documentation for the specified package, class, or member name of a referenced class\&. This tag is valid in all documentation comments: overview, package, class, interface, constructor, method and field, including the text portion of any tag, such as the \f3@return\fR, \f3@param\fR and \f3@deprecated\fR tags\&. See @link in How to Write Doc Comments for the Javadoc Tool at http://www\&.oracle\&.com/technetwork/java/javase/documentation/index-137868\&.html#{@link
 910 
 911 This tag is similar to the \f3@see\fR tag\&. Both tags require the same references and accept the same syntax for \f3package\&.class#member\fR and \f3label\fR\&. The main difference is that the \f3{@link}\fR tag generates an inline link rather than placing the link in the See Also section\&. The \f3{@link}\fR tag begins and ends with braces to separate it from the rest of the inline text\&. If you need to use the right brace (\f3}\fR) inside the label, then use the HTML entity notation \f3}\fR\&.
 912 
 913 There is no limit to the number of \f3{@link}\fR tags allowed in a sentence\&. You can use this tag in the main description part of any documentation comment or in the text portion of any tag, such as the \f3@deprecated\fR, \f3@return\fR or \f3@param\fR tags\&.
 914 
 915 For example, here is a comment that refers to the \f3getComponentAt(int, int)\fR method:
 916 .sp     
 917 .nf     
 918 \f3Use the {@link #getComponentAt(int, int) getComponentAt} method\&.\fP
 919 .fi     
 920 .nf     
 921 \f3\fP
 922 .fi     
 923 .sp     
 924 
 925 
 926 From this code, the standard doclet generates the following HTML (assuming it refers to another class in the same package):
 927 .sp     
 928 .nf     
 929 \f3Use the <a href="Component\&.html#getComponentAt(int, int)">getComponentAt</a> method\&.\fP
 930 .fi     
 931 .nf     
 932 \f3\fP
 933 .fi     
 934 .sp     
 935 
 936 
 937 The previous line appears on the web page as:
 938 .sp     
 939 .nf     
 940 \f3Use the getComponentAt method\&.\fP
 941 .fi     
 942 .nf     
 943 \f3\fP
 944 .fi     
 945 .sp     
 946 
 947 .TP     
 948 {@linkplain \fIpackage\&.class#member label\fR}
 949 Introduced in JDK 1\&.4
 950 
 951 Behaves the same as the \f3{@link}\fR tag, except the link label is displayed in plain text rather than code font\&. Useful when the label is plain text\&. For example, \f3Refer to {@linkplain add() the overridden method}\fR\&. displays as: Refer to the overridden method\&.
 952 .TP     
 953 {@literal \fItext\fR}
 954 Introduced in JDK 1\&.5
 955 
 956 Displays text without interpreting the text as HTML markup or nested Javadoc tags\&. This enables you to use angle brackets (\f3< and >\fR) instead of the HTML entities (\f3&lt;\fR and \f3&gt;\fR) in documentation comments, such as in parameter types (\f3<Object>\fR), inequalities (\f33 < 4\fR), or arrows (<-)\&. For example, the documentation comment text \f3{@literal A<B>C}\fR displays unchanged in the generated HTML page in your browser, as \f3A<B>C\fR\&. The \f3<B>\fR is not interpreted as bold (and it is not in code font)\&. If you want the same functionality with the text in code font, then use the \f3{@code}\fR tag\&.
 957 .TP     
 958 @param \fIparameter-name description\fR
 959 Introduced in JDK 1\&.0
 960 
 961 Adds a parameter with the specified \f3parameter-name\fR followed by the specified description to the Parameters section\&. When writing the documentation comment, you can continue the description onto multiple lines\&. This tag is valid only in a documentation comment for a method, constructor, or class\&. See @param in How to Write Doc Comments for the Javadoc Tool at http://www\&.oracle\&.com/technetwork/java/javase/documentation/index-137868\&.html#@param
 962 
 963 The \f3parameter-name\fR can be the name of a parameter in a method or constructor, or the name of a type parameter of a class, method, or constructor\&. Use angle brackets around this parameter name to specify the use of a type parameter\&.
 964 
 965 Example of a type parameter of a class:
 966 .sp     
 967 .nf     
 968 \f3/**\fP
 969 .fi     
 970 .nf     
 971 \f3 * @param <E> Type of element stored in a list\fP
 972 .fi     
 973 .nf     
 974 \f3 */\fP
 975 .fi     
 976 .nf     
 977 \f3public interface List<E> extends Collection<E> {\fP
 978 .fi     
 979 .nf     
 980 \f3}\fP
 981 .fi     
 982 .nf     
 983 \f3\fP
 984 .fi     
 985 .sp     
 986 
 987 
 988 Example of a type parameter of a method:
 989 .sp     
 990 .nf     
 991 \f3/**\fP
 992 .fi     
 993 .nf     
 994 \f3 * @param string  the string to be converted\fP
 995 .fi     
 996 .nf     
 997 \f3 * @param type    the type to convert the string to\fP
 998 .fi     
 999 .nf     
1000 \f3 * @param <T>     the type of the element\fP
1001 .fi     
1002 .nf     
1003 \f3 * @param <V>     the value of the element\fP
1004 .fi     
1005 .nf     
1006 \f3 */\fP
1007 .fi     
1008 .nf     
1009 \f3<T, V extends T> V convert(String string, Class<T> type) {\fP
1010 .fi     
1011 .nf     
1012 \f3}\fP
1013 .fi     
1014 .nf     
1015 \f3\fP
1016 .fi     
1017 .sp     
1018 
1019 .TP     
1020 @return \fIdescription\fR
1021 Introduced in JDK 1\&.0
1022 
1023 Adds a Returns section with the description text\&. This text should describe the return type and permissible range of values\&. This tag is valid only in a documentation comment for a method\&. See @return in How to Write Doc Comments for the Javadoc Tool at http://www\&.oracle\&.com/technetwork/java/javase/documentation/index-137868\&.html#@return
1024 .TP     
1025 @see \fIreference\fR
1026 Introduced in JDK 1\&.0
1027 
1028 Adds a \fISee Also\fR heading with a link or text entry that points to a reference\&. A documentation comment can contain any number of \f3@see\fR tags, which are all grouped under the same heading\&. The \f3@see\fR tag has three variations\&. The form is the most common\&. This tag is valid in any documentation comment: overview, package, class, interface, constructor, method, or field\&. For inserting an inline link within a sentence to a package, class, or member, see \f3{@link}\fR\&.
1029 
1030 \fIForm 1\fR\&. The @see \f3string\fR tag form adds a text entry for \fIstring\fR\&. No link is generated\&. The string is a book or other reference to information not available by URL\&. The \f3javadoc\fR command distinguishes this from the previous cases by searching for a double quotation mark (") as the first character\&. For example, \f3@see "The Java Programming Language"\fR that generates the following text:
1031 
1032 \fISee Also\fR:
1033 
1034 "The Java Programming Language"
1035 
1036 \fIForm 2\fR\&. The \f3@see <a href="URL#value">label</a>\fR form adds a link as defined by \f3URL#value\fR\&. The \f3URL#value\fR parameter is a relative or absolute URL\&. The \f3javadoc\fR command distinguishes this from other cases by searching for a less-than symbol (\f3<\fR) as the first character\&. For example, \f3@see <a href="spec\&.html#section">Java Spec</a>\fR generates the following link:
1037 
1038 \fISee Also\fR:
1039 
1040 Java Spec
1041 
1042 \fIForm 3\fR\&. The \f3@see package\&.class#member label\fR form adds a link with a visible text label that points to the documentation for the specified name in the Java Language that is referenced\&. The label is optional\&. If the label is omitted, then the name appears instead as visible text, suitably shortened\&. Use the \f3-noqualifier\fR option to globally remove the package name from this visible text\&. Use the label when you want the visible text to be different from the autogenerated visible text\&. See How a Name Appears\&.
1043 
1044 In Java SE 1\&.2 only, the name but not the label automatically appears in \f3<code>\fR HTML tags\&. Starting with Java SE 1\&.2\&.2, the \f3<code>\fR tag is always included around the visible text, whether or not a label is used\&.
1045 .RS     
1046 .TP 0.2i    
1047 \(bu
1048 \f3package\&.class#member\fR is any valid program element name that is referenced, such as a package, class, interface, constructor, method or field name, except that the character ahead of the member name should be a number sign (\f3#\fR)\&. The class represents any top-level or nested class or interface\&. The member represents any constructor, method, or field (not a nested class or interface)\&. If this name is in the documented classes, then the \f3javadoc\fR command create a link to it\&. To create links to external referenced classes, use the \f3-link\fR option\&. Use either of the other two \f3@see\fR tag forms to refer to the documentation of a name that does not belong to a referenced class\&. See Specify a Name\&.
1049 
1050 \fINote:\fR External referenced classes are classes that are not passed into the \f3javadoc\fR command on the command line\&. Links in the generated documentation to external referenced classes are called external references or external links\&. For example, if you run the \f3javadoc\fR command on only the \f3java\&.awt package\fR, then any class in \f3java\&.lang\fR, such as \f3Object\fR, is an external referenced class\&. Use the \f3-link\fR and \f3-linkoffline\fR options to link to external referenced classes\&. The source comments of external referenced classes are not available to the \f3javadoc\fR command run\&.
1051 .TP 0.2i    
1052 \(bu
1053 \f3label\fR is optional text that is visible as the link label\&. The label can contain white space\&. If \f3label\fR is omitted, then \f3package\&.class\&.member\fR appears, suitably shortened relative to the current class and package\&. See How a Name Appears\&.
1054 .TP 0.2i    
1055 \(bu
1056 A space is the delimiter between \f3package\&.class#member\fR and \f3label\fR\&. A space inside parentheses does not indicate the start of a label, so spaces can be used between parameters in a method\&.
1057 .RE     
1058 
1059 
1060 \fI\fRIn the following example, an \f3@see\fR tag (in the \f3Character\fR class) refers to the equals method in the \f3String\fR class\&. The tag includes both arguments: the name \f3String#equals(Object)\fR and the label \f3equals\fR\&.
1061 .sp     
1062 .nf     
1063 \f3/**\fP
1064 .fi     
1065 .nf     
1066 \f3 * @see String#equals(Object) equals\fP
1067 .fi     
1068 .nf     
1069 \f3 */\fP
1070 .fi     
1071 .nf     
1072 \f3\fP
1073 .fi     
1074 .sp     
1075 
1076 
1077 The standard doclet produces HTML that is similar to:
1078 .sp     
1079 .nf     
1080 \f3<dl>\fP
1081 .fi     
1082 .nf     
1083 \f3<dt><b>See Also:</b>\fP
1084 .fi     
1085 .nf     
1086 \f3<dd><a href="\&.\&./\&.\&./java/lang/String#equals(java\&.lang\&.Object)"><code>equals<code></a>\fP
1087 .fi     
1088 .nf     
1089 \f3</dl>\fP
1090 .fi     
1091 .nf     
1092 \f3\fP
1093 .fi     
1094 .sp     
1095 
1096 
1097 The previous code looks similar to the following in a browser, where the label is the visible link text:
1098 
1099 \fISee Also\fR:
1100 
1101 equals
1102 .PP
1103 Specify a Name
1104 
1105 \fI\fRThis \f3package\&.class#member\fR name can be either fully qualified, such as \f3java\&.lang\&.String#toUpperCase()\fR or not, such as \f3String#toUpperCase()\fR or \f3#toUpperCase()\fR\&. If the name is less than fully qualified, then the \f3javadoc\fR command uses the standard Java compiler search order to find it\&. See Search Order for the @see Tag\&. The name can contain white space within parentheses, such as between method arguments\&.The advantage to providing shorter, partially qualified names is that they are shorter to type and there is less clutter in the source code\&. The following listing shows the different forms of the name, where \f3Class\fR can be a class or interface; Type can be a class, interface, array, or primitive; and method can be a method or constructor\&.
1106 .sp     
1107 .nf     
1108 \f3\fITypical forms for\fR\fI @see package\&.class#member\fR\fP
1109 .fi     
1110 .nf     
1111 \f3\fIReferencing a member of the current class\fR\fP
1112 .fi     
1113 .nf     
1114 \f3@see #field\fP
1115 .fi     
1116 .nf     
1117 \f3@see #method(Type, Type,\&.\&.\&.)\fP
1118 .fi     
1119 .nf     
1120 \f3@see #method(Type argname, Type argname,\&.\&.\&.)\fP
1121 .fi     
1122 .nf     
1123 \f3@see #constructor(Type, Type,\&.\&.\&.)\fP
1124 .fi     
1125 .nf     
1126 \f3@see #constructor(Type argname, Type argname,\&.\&.\&.) \fP
1127 .fi     
1128 .nf     
1129 \f3\fP
1130 .fi     
1131 .nf     
1132 \f3\fIReferencing another class in the current or imported packages\fR\fP
1133 .fi     
1134 .nf     
1135 \f3@see Class#field\fP
1136 .fi     
1137 .nf     
1138 \f3@see Class#method(Type, Type,\&.\&.\&.)\fP
1139 .fi     
1140 .nf     
1141 \f3@see Class#method(Type argname, Type argname,\&.\&.\&.)\fP
1142 .fi     
1143 .nf     
1144 \f3@see Class#constructor(Type, Type,\&.\&.\&.)\fP
1145 .fi     
1146 .nf     
1147 \f3@see Class#constructor(Type argname, Type argname,\&.\&.\&.)\fP
1148 .fi     
1149 .nf     
1150 \f3@see Class\&.NestedClass\fP
1151 .fi     
1152 .nf     
1153 \f3@see Class \fP
1154 .fi     
1155 .nf     
1156 \f3\fP
1157 .fi     
1158 .nf     
1159 \f3\fIReferencing an element in another package (fully qualified)\fR\fP
1160 .fi     
1161 .nf     
1162 \f3@see package\&.Class#field\fP
1163 .fi     
1164 .nf     
1165 \f3@see package\&.Class#method(Type, Type,\&.\&.\&.)\fP
1166 .fi     
1167 .nf     
1168 \f3@see package\&.Class#method(Type argname, Type argname,\&.\&.\&.)\fP
1169 .fi     
1170 .nf     
1171 \f3@see package\&.Class#constructor(Type, Type,\&.\&.\&.)\fP
1172 .fi     
1173 .nf     
1174 \f3@see package\&.Class#constructor(Type argname, Type argname,\&.\&.\&.)\fP
1175 .fi     
1176 .nf     
1177 \f3@see package\&.Class\&.NestedClass\fP
1178 .fi     
1179 .nf     
1180 \f3@see package\&.Class\fP
1181 .fi     
1182 .nf     
1183 \f3@see package\fP
1184 .fi     
1185 .nf     
1186 \f3\fP
1187 .fi     
1188 .sp     
1189 \f3\fRNotes about the previous listing:
1190 .TP 0.2i    
1191 \(bu
1192 The first set of forms with no class or package causes the \f3javadoc\fR command to search only through the current class hierarchy\&. It finds a member of the current class or interface, one of its superclasses or superinterfaces, or one of its enclosing classes or interfaces (search Items 1\(en3)\&. It does not search the rest of the current package or other packages (search Items 4\(en5)\&. See Search Order for the @see Tag\&.
1193 .TP 0.2i    
1194 \(bu
1195 If any method or constructor is entered as a name with no parentheses, such as \f3getValue\fR, and if there is no field with the same name, then the \f3javadoc\fR command still creates a link to the method\&. If this method is overloaded, then the \f3javadoc\fR command links to the first method its search encounters, which is unspecified\&.
1196 .TP 0.2i    
1197 \(bu
1198 Nested classes must be specified as \f3outer\&.inner\fR, not simply \f3inner\fR, for all forms\&.
1199 .TP 0.2i    
1200 \(bu
1201 As stated, the number sign (\f3#\fR), rather than a dot (\f3\&.\fR) separates a member from its class\&. This enables the \f3javadoc\fR command to resolve ambiguities, because the dot also separates classes, nested classes, packages, and subpackages\&. However, the \f3javadoc\fR command properly parses a dot when there is no ambiguity, but prints a warning to alert you\&.
1202 .PP
1203 Search Order for the @see Tag
1204 
1205 \fI\fRThe \f3javadoc\fR command processes an \f3@see\fR tag that appears in a source file, package file, or overview file\&. In the latter two files, you must fully qualify the name you supply with the \f3@see\fR tag\&. In a source file, you can specify a name that is fully qualified or partially qualified\&.
1206 .PP
1207 The following is the search order for the \f3@see\fR tag\&.
1208 .TP 0.4i    
1209 1\&.
1210 The current class or interface\&.
1211 .TP 0.4i    
1212 2\&.
1213 Any enclosing classes and interfaces searching the closest first\&.
1214 .TP 0.4i    
1215 3\&.
1216 Any superclasses and superinterfaces, searching the closest first\&.
1217 .TP 0.4i    
1218 4\&.
1219 The current package\&.
1220 .TP 0.4i    
1221 5\&.
1222 Any imported packages, classes, and interfaces, searching in the order of the \f3import\fR statement\&.
1223 .PP
1224 The \f3javadoc\fR command continues to search recursively through Items 1-3 for each class it encounters until it finds a match\&. That is, after it searches through the current class and its enclosing class E, it searches through the superclasses of E before the enclosing classes of E\&. In Items 4 and 5, the \f3javadoc\fR command does not search classes or interfaces within a package in any specified order (that order depends on the particular compiler)\&. In Item 5, the \f3javadoc\fR command searches in \fIjava\&.lang\fR because that is imported by all programs\&.
1225 .PP
1226 When the \f3javadoc\fR command encounters an \f3@see\fR tag in a source file that is not fully qualified, it searches for the specified name in the same order as the Java compiler would, except the \f3javadoc\fR command does not detect certain name space ambiguities because it assumes the source code is free of these errors\&. This search order is formally defined in the Java Language Specification\&. The \f3javadoc\fR command searches for that name through all related and imported classes and packages\&. In particular, it searches in this order:
1227 .TP 0.4i    
1228 1\&.
1229 The current class or interface\&.
1230 .TP 0.4i    
1231 2\&.
1232 Any enclosing classes and interfaces, searching the closest first\&.
1233 .TP 0.4i    
1234 3\&.
1235 Any superclasses and superinterfaces, searching the closest first\&.
1236 .TP 0.4i    
1237 4\&.
1238 The current package\&.
1239 .TP 0.4i    
1240 5\&.
1241 Any imported packages, classes, and interfaces, searching in the order of the \f3import\fR statements\&.
1242 .PP
1243 The \f3javadoc\fR command does not necessarily look in subclasses, nor will it look in other packages even when their documentation is being generated in the same run\&. For example, if the \f3@see\fR tag is in the \f3java\&.awt\&.event\&.KeyEvent\fR class and refers to a name in the \f3java\&.awt package\fR, then the \f3javadoc\fR command does not look in that package unless that class imports it\&.
1244 .PP
1245 How a Name Appears
1246 
1247 \fI\fRIf \f3label\fR is omitted, then \f3package\&.class\&.member\fR appears\&. In general, it is suitably shortened relative to the current class and package\&. Shortened means the \f3javadoc\fR command displays only the minimum name necessary\&. For example, if the \f3String\&.toUpperCase()\fR method contains references to a member of the same class and to a member of a different class, then the class name is displayed only in the latter case, as shown in the following listing\&. Use the \f3-noqualifier\fR option to globally remove the package names\&.
1248 .PP
1249 \fIType of reference\fR: The \f3@see\fR tag refers to a member of the same class, same package
1250 .br     
1251 \fIExample in\fR: \f3@see String#toLowerCase()\fR
1252 .br     
1253 \fIAppears as\fR: \f3toLowerCase()\fR - omits the package and class names
1254 .br     
1255 
1256 .PP
1257 \fIType of reference\fR: The \f3@see\fR tag refers to a member of a different class, same package
1258 .br     
1259 \fIExample in\fR: \f3@see Character#toLowerCase(char)\fR
1260 .br     
1261 \fIAppears as\fR: \f3Character\&.toLowerCase(char)\fR - omits the package name, includes the class name
1262 .br     
1263 
1264 .PP
1265 \fIType of reference\fR: The \f3@see\fR tag refers to a member of a different class, different package
1266 .br     
1267 \fIExample in\fR: \f3@see java\&.io\&.File#exists()\fR
1268 .br     
1269 \fIAppears as\fR: \f3java\&.io\&.File\&.exists()\fR - includes the package and class names
1270 .br     
1271 
1272 .PP
1273 Examples of the @see Tag
1274 
1275 The comment to the right shows how the name appears when the \f3@see\fR tag is in a class in another package, such as \f3java\&.applet\&.Applet\fR\&. See @see in How to Write Doc Comments for the Javadoc Tool at http://www\&.oracle\&.com/technetwork/java/javase/documentation/index-137868\&.html#@see
1276 .sp     
1277 .nf     
1278 \f3                                            See also:\fP
1279 .fi     
1280 .nf     
1281 \f3@see java\&.lang\&.String                   //  String                           \fP
1282 .fi     
1283 .nf     
1284 \f3@see java\&.lang\&.String The String class  //  The String class                 \fP
1285 .fi     
1286 .nf     
1287 \f3@see String                             //  String                           \fP
1288 .fi     
1289 .nf     
1290 \f3@see String#equals(Object)              //  String\&.equals(Object)            \fP
1291 .fi     
1292 .nf     
1293 \f3@see String#equals                      //  String\&.equals(java\&.lang\&.Object)   \fP
1294 .fi     
1295 .nf     
1296 \f3@see java\&.lang\&.Object#wait(long)        //  java\&.lang\&.Object\&.wait(long)      \fP
1297 .fi     
1298 .nf     
1299 \f3@see Character#MAX_RADIX                //  Character\&.MAX_RADIX              \fP
1300 .fi     
1301 .nf     
1302 \f3@see <a href="spec\&.html">Java Spec</a>  //  Java Spec            \fP
1303 .fi     
1304 .nf     
1305 \f3@see "The Java Programming Language"    //  "The Java Programming Language" \fP
1306 .fi     
1307 .nf     
1308 \f3\fP
1309 .fi     
1310 .sp     
1311 \fINote:\fR You can extend the \f3@se\fR\f3e\fR tag to link to classes not being documented with the \f3-link\fR option\&.
1312 .TP     
1313 @serial \fIfield-description\fR | include | exclude
1314 Introduced in JDK 1\&.2
1315 
1316 Used in the documentation comment for a default serializable field\&. See Documenting Serializable Fields and Data for a Class at http://docs\&.oracle\&.com/javase/8/docs/platform/serialization/spec/serial-arch\&.html#5251
1317 
1318 See also Oracle\(cqs Criteria for Including Classes in the Serialized Form Specification at http://www\&.oracle\&.com/technetwork/java/javase/documentation/serialized-criteria-137781\&.html
1319 
1320 An optional \f3field-description\fR should explain the meaning of the field and list the acceptable values\&. When needed, the description can span multiple lines\&. The standard doclet adds this information to the serialized form page\&. See Cross-Reference Pages\&.
1321 
1322 If a serializable field was added to a class after the class was made serializable, then a statement should be added to its main description to identify at which version it was added\&.
1323 
1324 The \f3include\fR and \f3exclude\fR arguments identify whether a class or package should be included or excluded from the serialized form page\&. They work as follows:
1325 .RS     
1326 .TP 0.2i    
1327 \(bu
1328 A public or protected class that implements \f3Serializable\fR is included unless that class (or its package) is marked with the \f3@serial exclude\fR tag\&.
1329 .TP 0.2i    
1330 \(bu
1331 A private or package-private class that implements \f3Serializable\fR is excluded unless that class (or its package) is marked with the \f3@serial include\fR tag\&.
1332 .RE     
1333 
1334 
1335 For example, the \f3javax\&.swing\fR package is marked with the \f3@serial\fR\f3exclude\fR tag in package\&.html or package-info\&.java\&. The public class \f3java\&.security\&.BasicPermission\fR is marked with the \f3@serial exclude\fR tag\&. The package-private class \f3java\&.util\&.PropertyPermissionCollection\fR is marked with the \f3@serial include\fR tag\&.
1336 
1337 The \f3@serial\fR tag at the class level overrides the \f3@serial\fR tag at the package level\&.
1338 .TP     
1339 @serialData \fIdata-description\fR
1340 Introduced in JDK 1\&.2
1341 
1342 Uses the data description value to document the types and order of data in the serialized form\&. This data includes the optional data written by the \f3writeObject\fR method and all data (including base classes) written by the \f3Externalizable\&.writeExternal\fR method\&.
1343 
1344 The \f3@serialData\fR tag can be used in the documentation comment for the \f3writeObject\fR, \f3readObject\fR, \f3writeExternal\fR, \f3readExternal\fR, \f3writeReplace\fR, and \f3readResolve\fR methods\&.
1345 .TP     
1346 @serialField \fIfield-name\fR\fIfield-type\fR\fIfield-description\fR
1347 Introduced in JDK 1\&.2
1348 
1349 Documents an \f3ObjectStreamField\fR component of the \f3serialPersistentFields\fR member of a \f3Serializable\fR class\&. Use one \f3@serialField\fR tag for each \f3ObjectStreamField\fR component\&.
1350 .TP     
1351 @since \fIsince-text\fR
1352 Introduced in JDK 1\&.1
1353 
1354 Adds a \fISince\fR heading with the specified \f3since-text\fR value to the generated documentation\&. The text has no special internal structure\&. This tag is valid in any documentation comment: overview, package, class, interface, constructor, method, or field\&. This tag means that this change or feature has existed since the software release specified by the \f3since-text\fR value, for example: \f3@since 1\&.5\fR\&.
1355 
1356 For Java platform source code, the \f3@since\fR tag indicates the version of the Java platform API specification, which is not necessarily when the source code was added to the reference implementation\&. Multiple \f3@since\fR tags are allowed and are treated like multiple \f3@author\fR tags\&. You could use multiple tags when the program element is used by more than one API\&.
1357 .TP     
1358 @throws \fIclass-name\fR\fIdescription\fR
1359 Introduced in JDK 1\&.2
1360 
1361 Behaves the same as the \f3@exception\fR tag\&. See @throws in How to Write Doc Comments for the Javadoc Tool at http://www\&.oracle\&.com/technetwork/java/javase/documentation/index-137868\&.html#@exception
1362 
1363 The \f3@throws\fR tag adds a \fIThrows\fR subheading to the generated documentation, with the \f3class-name\fR and \f3description\fR text\&. The \fIclass-name\fR is the name of the exception that might be thrown by the method\&. This tag is valid only in the documentation comment for a method or constructor\&. If this class is not fully specified, then the \f3javadoc\fR command uses the search order to look up this class\&. Multiple \f3@throws\fR tags can be used in a specified documentation comment for the same or different exceptions\&. See Search Order for the @see Tag\&.
1364 
1365 To ensure that all checked exceptions are documented, when an \f3@throws\fR tag does not exist for an exception in the throws clause, the \f3javadoc\fR command adds that exception to the HTML output (with no description) as though it were documented with the \f3@throws\fR tag\&.
1366 
1367 The \f3@throws\fR documentation is copied from an overridden method to a subclass only when the exception is explicitly declared in the overridden method\&. The same is true for copying from an interface method to an implementing method\&. You can use the \f3{@inheritDoc}\fR tag to force the \f3@throws\fR tag to inherit documentation\&.
1368 .TP     
1369 {@value \fIpackage\&.class#field\fR}
1370 Introduced in JDK 1\&.4
1371 
1372 Displays constant values\&. When the \f3{@value}\fR tag is used without an argument in the documentation comment of a static field, it displays the value of that constant:
1373 .sp     
1374 .nf     
1375 \f3/**\fP
1376 .fi     
1377 .nf     
1378 \f3 * The value of this constant is {@value}\&.\fP
1379 .fi     
1380 .nf     
1381 \f3 */\fP
1382 .fi     
1383 .nf     
1384 \f3public static final String SCRIPT_START = "<script>"\fP
1385 .fi     
1386 .nf     
1387 \f3\fP
1388 .fi     
1389 .sp     
1390 
1391 
1392 When used with the argument \f3package\&.class#field\fR in any documentation comment, he \f3{@value}\fR tag displays the value of the specified constant:
1393 .sp     
1394 .nf     
1395 \f3/**\fP
1396 .fi     
1397 .nf     
1398 \f3 * Evaluates the script starting with {@value #SCRIPT_START}\&.\fP
1399 .fi     
1400 .nf     
1401 \f3 */\fP
1402 .fi     
1403 .nf     
1404 \f3public String evalScript(String script) {}\fP
1405 .fi     
1406 .nf     
1407 \f3\fP
1408 .fi     
1409 .sp     
1410 
1411 
1412 The argument \f3package\&.class#field\fR takes a form similar to that of the \f3@see\fR tag argument, except that the member must be a static field\&.
1413 
1414 The values of these constants are also displayed in Constant Field Values at http://docs\&.oracle\&.com/javase/8/docs/api/constant-values\&.html
1415 .TP     
1416 @version \fIversion-text\fR
1417 Introduced in JDK 1\&.0
1418 
1419 Adds a \fIVersion\fR subheading with the specified \f3version-text\fR value to the generated documents when the \f3-version\fR option is used\&. This tag is intended to hold the current release number of the software that this code is part of, as opposed to the\f3@since\fR tag, which holds the release number where this code was introduced\&. The \f3version-text\fR value has no special internal structure\&. See @version in How to Write Doc Comments for the Javadoc Tool at http://www\&.oracle\&.com/technetwork/java/javase/documentation/index-137868\&.html#@version
1420 
1421 A documentation comment can contain multiple \f3@version\fR tags\&. When it makes sense, you can specify one release number per \f3@version\fR tag or multiple release numbers per tag\&. In the former case, the \f3javadoc\fR command inserts a comma (,) and a space between the names\&. In the latter case, the entire text is copied to the generated document without being parsed\&. Therefore, you can use multiple names per line when you want a localized name separator other than a comma\&.
1422 .SH WHERE\ TAGS\ CAN\ BE\ USED    
1423 The following sections describe where tags can be used\&. Note that the following tags can be used in all documentation comments: \f3@see\fR, \f3@since\fR, \f3@deprecated\fR, \f3{@link}\fR, \f3{@linkplain}\fR, and \f3{@docroot}\fR\&.
1424 .SS OVERVIEW\ TAGS    
1425 Overview tags are tags that can appear in the documentation comment for the overview page (which resides in the source file typically named overview\&.html)\&. Similar to any other documentation comments, these tags must appear after the main description
1426 .PP
1427 \fINote:\fR The \f3{@link}\fR tag has a bug in overview documents in Java SE 1\&.2\&. The text appears correctly but has no link\&. The \f3{@docRoot}\fR tag does not currently work in overview documents\&.
1428 .PP
1429 The overview tags are the following:
1430 .PP
1431 @see reference || @since since-text || @serialField field-name field-type field-description || @author name-text || @version version-text || {@link package\&.class#member label} || {@linkplain package\&.class#member label} || {@docRoot} ||
1432 .SS PACKAGE\ TAGS    
1433 Package tags are tags that can appear in the documentation comment for a package, that resides in the source file named package\&.html or package-info\&.java\&. The \f3@serial\fR tag can only be used here with the \f3include\fR or \f3exclude\fR argument\&.
1434 .PP
1435 The package tags are the following:
1436 .PP
1437 @see reference || @since since-text || @serial field-description | include | exclude || @author name-text || @version version-text || {@linkplain package\&.class#member label} || {@linkplain package\&.class#member label} || {@docRoot} ||
1438 .SS CLASS\ AND\ INTERFACE\ TAGS    
1439 The following are tags that can appear in the documentation comment for a class or interface\&. The \f3@serial\fR tag can only be used within the documentation for a class or interface with an \f3include\fR or \f3exclude\fR argument\&.
1440 .PP
1441 @see reference || @since since-text || @deprecated deprecated-text || @serial field-description | include | exclude || @author name-text || @version version-text || {@link package\&.class#member label} || {@linkplain package\&.class#member label} || {@docRoot} ||
1442 .PP
1443 Class comment example:
1444 .sp     
1445 .nf     
1446 \f3/**\fP
1447 .fi     
1448 .nf     
1449 \f3 * A class representing a window on the screen\&.\fP
1450 .fi     
1451 .nf     
1452 \f3 * For example:\fP
1453 .fi     
1454 .nf     
1455 \f3 * <pre>\fP
1456 .fi     
1457 .nf     
1458 \f3 *    Window win = new Window(parent);\fP
1459 .fi     
1460 .nf     
1461 \f3 *    win\&.show();\fP
1462 .fi     
1463 .nf     
1464 \f3 * </pre>\fP
1465 .fi     
1466 .nf     
1467 \f3 *\fP
1468 .fi     
1469 .nf     
1470 \f3 * @author  Sami Shaio\fP
1471 .fi     
1472 .nf     
1473 \f3 * @version 1\&.13, 06/08/06\fP
1474 .fi     
1475 .nf     
1476 \f3 * @see     java\&.awt\&.BaseWindow\fP
1477 .fi     
1478 .nf     
1479 \f3 * @see     java\&.awt\&.Button\fP
1480 .fi     
1481 .nf     
1482 \f3 */\fP
1483 .fi     
1484 .nf     
1485 \f3class Window extends BaseWindow {\fP
1486 .fi     
1487 .nf     
1488 \f3   \&.\&.\&.\fP
1489 .fi     
1490 .nf     
1491 \f3}\fP
1492 .fi     
1493 .nf     
1494 \f3\fP
1495 .fi     
1496 .sp     
1497 .SS FIELD\ TAGS    
1498 These tags can appear in fields:
1499 .PP
1500 @see reference || @since since-text || @deprecated deprecated-text || @serial field-description | include | exclude || @serialField field-name field-type field-description || {@link package\&.class#member label} || {@linkplain package\&.class#member label} || {@docRoot} || {@value package\&.class#field}
1501 .PP
1502 Field comment example:
1503 .sp     
1504 .nf     
1505 \f3    /**\fP
1506 .fi     
1507 .nf     
1508 \f3     * The X\-coordinate of the component\&.\fP
1509 .fi     
1510 .nf     
1511 \f3     *\fP
1512 .fi     
1513 .nf     
1514 \f3     * @see #getLocation()\fP
1515 .fi     
1516 .nf     
1517 \f3     */\fP
1518 .fi     
1519 .nf     
1520 \f3    int x = 1263732;\fP
1521 .fi     
1522 .nf     
1523 \f3\fP
1524 .fi     
1525 .sp     
1526 .SS CONSTRUCTOR\ AND\ METHOD\ TAGS    
1527 The following tags can appear in the documentation comment for a constructor or a method, except for the \f3@return\fR tag, which cannot appear in a constructor, and the \f3{@inheritDoc}\fR tag, which has restrictions\&.
1528 .PP
1529 @see reference || @since since-text || @deprecated deprecated-text || @param parameter-name description || @return description || @throws class-name description || @exception class-name description || @serialData data-description || {@link package\&.class#member label} || {@linkplain package\&.class#member label} || {@inheritDoc} || {@docRoot}
1530 .PP
1531 \fINote:\fR The \f3@serialData\fR tag can only be used in the documentation comment for the \f3writeObject\fR, \f3readObject\fR, \f3writeExternal\fR, \f3readExternal\fR, \f3writeReplace\fR, and \f3readResolve\fR methods\&.
1532 .PP
1533 Method comment example:
1534 .sp     
1535 .nf     
1536 \f3/**\fP
1537 .fi     
1538 .nf     
1539 \f3     * Returns the character at the specified index\&. An index \fP
1540 .fi     
1541 .nf     
1542 \f3     * ranges from <code>0</code> to <code>length() \- 1</code>\fP
1543 .fi     
1544 .nf     
1545 \f3     *\fP
1546 .fi     
1547 .nf     
1548 \f3     * @param     index the index of the desired character\&.\fP
1549 .fi     
1550 .nf     
1551 \f3     * @return    the desired character\&.\fP
1552 .fi     
1553 .nf     
1554 \f3     * @exception StringIndexOutOfRangeException \fP
1555 .fi     
1556 .nf     
1557 \f3     *              if the index is not in the range <code>0</code> \fP
1558 .fi     
1559 .nf     
1560 \f3     *              to <code>length()\-1</code>\fP
1561 .fi     
1562 .nf     
1563 \f3     * @see       java\&.lang\&.Character#charValue()\fP
1564 .fi     
1565 .nf     
1566 \f3     */\fP
1567 .fi     
1568 .nf     
1569 \f3    public char charAt(int index) {\fP
1570 .fi     
1571 .nf     
1572 \f3       \&.\&.\&.\fP
1573 .fi     
1574 .nf     
1575 \f3    }\fP
1576 .fi     
1577 .nf     
1578 \f3\fP
1579 .fi     
1580 .sp     
1581 .SH OPTIONS    
1582 The \f3javadoc\fR command uses doclets to determine its output\&. The \f3javadoc\fR command uses the default standard doclet unless a custom doclet is specified with the \f3-doclet\fR option\&. The \f3javadoc\fR command provides a set of command-line options that can be used with any doclet\&. These options are described in Javadoc Options\&. The standard doclet provides an additional set of command-line options that are described in Standard Doclet Options\&. All option names are not case-sensitive, but their arguments are case-sensitive\&.
1583 .TP 0.2i    
1584 \(bu
1585 See also Javadoc Options
1586 .TP 0.2i    
1587 \(bu
1588 See also Standard Doclet Options
1589 .PP
1590 The options are:
1591 .PP
1592 -1\&.1 || -author || -bootclasspath classpathlist || -bottom text || -breakiterator || -charset name || -classpath classpathlist || -d directory || -docencoding name || -docfilesubdirs || -doclet class || -docletpath classpathlist || -doctitle title || -encoding || -exclude packagename1:packagename2:\&.\&.\&. || -excludedocfilessubdir name1:name2 || -extdirs dirist || -footer footer || -group groupheading packagepattern:packagepattern || -header header || -help || -helpfile path\efilename || -Jflag || -javafx ||-keywords || -link extdocURL || -linkoffline extdocURL packagelistLoc || -linksource || -locale language_country_variant || -nocomment || -nodeprecated || -nodeprecatedlist || -nohelp || -noindex || -nonavbar || -noqualifier all | packagename1:packagename2\&.\&.\&. || -nosince || -notimestamp || -notree || -overview path/filename || -package || -private || -protected || -public || -quiet || -serialwarn || -source release || -sourcepath sourcepathlist || -sourcetab tablength || -splitindex || -stylesheet path/filename || -subpackages package1:package2:\&.\&.\&. || -tag tagname:Xaoptcmf:"taghead" || -taglet class || -tagletpath tagletpathlist || -title title || -top || -use || -verbose || -version || -windowtitle title
1593 .PP
1594 The following options are the core Javadoc options that are available to all doclets\&. The standard doclet provides the rest of the doclets: \f3-bootclasspath\fR, \f3-breakiterator\fR, \f3-classpath\fR, \f3-doclet\fR, \f3-docletpath\fR, \f3-encoding\fR, -\f3exclude\fR, \f3-extdirs\fR, \f3-help\fR, \f3-locale\fR, \f3-\fR\f3overview\fR, \f3-package\fR, \f3-private\fR, \f3-protected\fR, \f3-public\fR, \f3-quiet\fR, \f3-source\fR, \f3-sourcepath\fR, \f3-subpackages\fR, and \f3-verbose\fR\&.
1595 .SS JAVADOC\ OPTIONS    
1596 .TP
1597 -overview \fIpath/filename\fR
1598 .br
1599 Specifies that the \f3javadoc\fR command should retrieve the text for the overview documentation from the source file specified by the \fIpath/filename\fRand place it on the Overview page (overview-summary\&.html)\&. The \fIpath/filename\fRis relative to the current directory\&.
1600 
1601 While you can use any name you want for the \f3filename\fR value and place it anywhere you want for the path, it is typical to name it overview\&.html and place it in the source tree at the directory that contains the topmost package directories\&. In this location, no path is needed when documenting packages, because the \f3-sourcepath\fR option points to this file\&.
1602 
1603 For example, if the source tree for the \f3java\&.lang\fR package is /src/classes/java/lang/, then you could place the overview file at /src/classes/overview\&.html
1604 
1605 See Real-World Examples\&.
1606 
1607 For information about the file specified by \fIpath/filename,\fRsee Overview Comment Files\&.
1608 
1609 The overview page is created only when you pass two or more package names to the \f3javadoc\fR command\&. For a further explanation, see HTML Frames\&. The title on the overview page is set by \f3-doctitle\fR\&.
1610 .TP
1611 -Xdoclint:(all|none|[-]\fI<group>\fR)
1612 .br
1613 Reports warnings for bad references, lack of accessibility and missing Javadoc comments, and reports errors for invalid Javadoc syntax and missing HTML tags\&.
1614 
1615 This option enables the \f3javadoc\fR command to check for all documentation comments included in the generated output\&. As always, you can select which items to include in the generated output with the standard options \f3-public\fR, \f3-protected\fR, \f3-package\fR and \f3-private\fR\&.
1616 
1617 When the \f3-Xdoclint\fR is enabled, it reports issues with messages similar to the \f3javac\fR command\&. The \f3javadoc\fR command prints a message, a copy of the source line, and a caret pointing at the exact position where the error was detected\&. Messages may be either warnings or errors, depending on their severity and the likelihood to cause an error if the generated documentation were run through a validator\&. For example, bad references or missing Javadoc comments do not cause the \f3javadoc\fR command to generate invalid HTML, so these issues are reported as warnings\&. Syntax errors or missing HTML end tags cause the \f3javadoc\fR command to generate invalid output, so these issues are reported as errors\&.
1618 
1619 By default, the \f3-Xdoclint\fR option is enabled\&. Disable it with the option \f3-Xdoclint:none\fR\&.
1620 
1621 Change what the \f3-Xdoclint\fR option reports with the following options:
1622 .RS     
1623 .TP 0.2i    
1624 \(bu
1625 \f3-Xdoclint none\fR : disable the \f3-Xdoclint\fR option
1626 .TP 0.2i    
1627 \(bu
1628 \f3-Xdoclint\fR\fIgroup\fR : enable \fIgroup\fR checks
1629 .TP 0.2i    
1630 \(bu
1631 \f3-Xdoclint all\fR : enable all groups of checks
1632 .TP 0.2i    
1633 \(bu
1634 \f3-Xdoclint all,\fR\fI-group\fR : enable all except \fIgroup\fR checks
1635 .RE     
1636 
1637 
1638 The variable \fIgroup\fR has one of the following values:
1639 .RS     
1640 .TP 0.2i    
1641 \(bu
1642 \f3accessibility\fR : Checks for the issues to be detected by an accessibility checker (for example, no caption or summary attributes specified in a \f3<table>\fR tag)\&.
1643 .TP 0.2i    
1644 \(bu
1645 \f3html\fR : Detects high-level HTML issues, like putting block elements inside inline elements, or not closing elements that require an end tag\&. The rules are derived from theHTML 4\&.01 Specification\&. This type of check enables the \f3javadoc\fR command to detect HTML issues that many browsers might accept\&.
1646 .TP 0.2i    
1647 \(bu
1648 \f3missing\fR : Checks for missing Javadoc comments or tags (for example, a missing comment or class, or a missing \f3@return\fR tag or similar tag on a method)\&.
1649 .TP 0.2i    
1650 \(bu
1651 \f3reference\fR : Checks for issues relating to the references to Java API elements from Javadoc tags (for example, item not found in \f3@see\fR , or a bad name after \f3@param)\fR\&.
1652 .TP 0.2i    
1653 \(bu
1654 \f3syntax\fR : Checks for low level issues like unescaped angle brackets (\f3<\fR and \f3>\fR) and ampersands (\f3&\fR) and invalid Javadoc tags\&.
1655 .RE     
1656 
1657 
1658 You can specify the \f3-Xdoclint\fR option multiple times to enable the option to check errors and warnings in multiple categories\&. Alternatively, you can specify multiple error and warning categories by using the preceding options\&. For example, use either of the following commands to check for the HTML, syntax, and accessibility issues in the file \fIfilename\fR\&.
1659 .sp     
1660 .nf     
1661 \f3javadoc \-Xdoclint:html \-Xdoclint:syntax \-Xdoclint:accessibility \fIfilename\fR\fP
1662 .fi     
1663 .nf     
1664 \f3javadoc \-Xdoclint:html,syntax,accessibility \fIfilename\fR\fP
1665 .fi     
1666 .nf     
1667 \f3\fP
1668 .fi     
1669 .sp     
1670 
1671 
1672 \fINote:\fR The \f3javadoc\fR command does not guarantee the completeness of these checks\&. In particular, it is not a full HTML compliance checker\&. The goal of the -\f3Xdoclint\fR option is to enable the \f3javadoc\fR command to report majority of common errors\&.
1673 
1674 The \f3javadoc\fR command does not attempt to fix invalid input, it just reports it\&.
1675 .TP
1676 -public
1677 .br
1678 Shows only public classes and members\&.
1679 .TP
1680 -protected
1681 .br
1682 Shows only protected and public classes and members\&. This is the default\&.
1683 .TP
1684 -package
1685 .br
1686 Shows only package, protected, and public classes and members\&.
1687 .TP
1688 -private
1689 .br
1690 Shows all classes and members\&.
1691 .TP
1692 -help
1693 .br
1694 Displays the online help, which lists all of the \f3javadoc\fR and \f3doclet\fR command-line options\&.
1695 .TP
1696 -doclet \fIclass\fR
1697 .br
1698 Specifies the class file that starts the doclet used in generating the documentation\&. Use the fully qualified name\&. This doclet defines the content and formats the output\&. If the \f3-doclet\fR option is not used, then the \f3javadoc\fR command uses the standard doclet for generating the default HTML format\&. This class must contain the \f3start(Root)\fR method\&. The path to this starting class is defined by the \f3-docletpath\fR option\&. See Doclet Overview at http://docs\&.oracle\&.com/javase/8/docs/technotes/guides/javadoc/doclet/overview\&.html
1699 .TP
1700 -docletpath \fIclasspathlist\fR
1701 .br
1702 Specifies the path to the doclet starting class file (specified with the \f3-doclet\fR option) and any JAR files it depends on\&. If the starting class file is in a JAR file, then this option specifies the path to that JAR file\&. You can specify an absolute path or a path relative to the current directory\&. If \f3classpathlist\fR contains multiple paths or JAR files, then they should be separated with a colon (:) on Oracle Solaris and a semi-colon (;) on Windows\&. This option is not necessary when the doclet starting class is already in the search path\&. See Doclet Overview at http://docs\&.oracle\&.com/javase/8/docs/technotes/guides/javadoc/doclet/overview\&.html
1703 .TP
1704 -1\&.1
1705 .br
1706 Removed from Javadoc 1\&.4 with no replacement\&. This option created documentation with the appearance and functionality of documentation generated by Javadoc 1\&.1 (it never supported nested classes)\&. If you need this option, then use Javadoc 1\&.2 or 1\&.3 instead\&.
1707 .TP
1708 -source \fIrelease\fR
1709 .br
1710 Specifies the release of source code accepted\&. The following values for the \f3release\fR parameter are allowed\&. Use the value of \f3release\fR that corresponds to the value used when you compile code with the \f3javac\fR command\&.
1711 .RS     
1712 .TP 0.2i    
1713 \(bu
1714 \fIRelease Value: 1\&.5\fR\&. The \f3javadoc\fR command accepts code containing generics and other language features introduced in JDK 1\&.5\&. The compiler defaults to the 1\&.5 behavior when the \f3-source\fR option is not used\&.
1715 .TP 0.2i    
1716 \(bu
1717 \fIRelease Value: 1\&.4\fR\&. The \f3javadoc\fR command accepts code containing assertions, which were introduced in JDK 1\&.4\&.
1718 .TP 0.2i    
1719 \(bu
1720 \fIRelease Value: 1\&.3\fR\&. The \f3javadoc\fR command does not support assertions, generics, or other language features introduced after JDK 1\&.3\&.
1721 .RE     
1722 
1723 .TP
1724 -sourcepath \fIsourcepathlist\fR
1725 .br
1726 Specifies the search paths for finding source files when passing package names or the \f3-subpackages\fR option into the \f3javadoc\fR command\&. Separate multiple paths with a colon (:)\&. The \f3javadoc\fR command searches all subdirectories of the specified paths\&. Note that this option is not only used to locate the source files being documented, but also to find source files that are not being documented, but whose comments are inherited by the source files being documented\&.
1727 
1728 You can use the \f3-sourcepath\fR option only when passing package names into the \f3javadoc\fR command\&. This will not locate source files passed into the \f3javadoc\fR command\&. To locate source files, \f3\fRchange to that directory or include the path ahead of each file, as shown at Document One or More Classes\&. If you omit \f3-sourcepath\fR, then the \f3javadoc\fR command uses the class path to find the source files (see \f3-classpath\fR)\&. The default \f3-sourcepath\fR is the value of class path\&. If \f3-classpath\fR is omitted and you pass package names into the \f3javadoc\fR command, then the \f3javadoc\fR command searches in the current directory and subdirectories for the source files\&.
1729 
1730 Set \f3sourcepathlist\fR to the root directory of the source tree for the package you are documenting\&.
1731 
1732 For example, suppose you want to document a package called \f3com\&.mypackage\fR, whose source files are located at:/home/user/src/com/mypackage/*\&.java\&. Specify the sourcepath to /home/user/src, the directory that contains com\emypackage, and then supply the package name, as follows:
1733 .sp     
1734 .nf     
1735 \f3javadoc \-sourcepath /home/user/src/ com\&.mypackage\fP
1736 .fi     
1737 .nf     
1738 \f3\fP
1739 .fi     
1740 .sp     
1741 
1742 
1743 Notice that if you concatenate the value of sourcepath and the package name together and change the dot to a slash (/), then you have the full path to the package:
1744 
1745 /home/user/src/com/mypackage
1746 
1747 To point to two source paths:
1748 .sp     
1749 .nf     
1750 \f3javadoc \-sourcepath /home/user1/src:/home/user2/src com\&.mypackage\fP
1751 .fi     
1752 .nf     
1753 \f3\fP
1754 .fi     
1755 .sp     
1756 
1757 .TP
1758 -classpath \fIclasspathlist\fR
1759 .br
1760 Specifies the paths where the \f3javadoc\fR command searches for referenced classes These are the documented classes plus any classes referenced by those classes\&. Separate multiple paths with a colon (:)\&. The \f3javadoc\fR command searches all subdirectories of the specified paths\&. Follow the instructions in the class path documentation for specifying the \f3classpathlist\fR value\&.
1761 
1762 If you omit \f3-sourcepath\fR, then the \f3javadoc\fR command uses \f3-classpath\fR to find the source files and class files (for backward compatibility)\&. If you want to search for source and class files in separate paths, then use both \f3-sourcepath\fR and \f3-classpath\fR\&.
1763 
1764 For example, if you want to document \f3com\&.mypackage\fR, whose source files reside in the directory /home/user/src/com/mypackage, and if this package relies on a library in /home/user/lib, then you would use the following command:
1765 .sp     
1766 .nf     
1767 \f3javadoc \-sourcepath /home/user/lib \-classpath /home/user/src com\&.mypackage\fP
1768 .fi     
1769 .nf     
1770 \f3\fP
1771 .fi     
1772 .sp     
1773 
1774 
1775 Similar to other tools, if you do not specify \f3-classpath\fR, then the \f3javadoc\fR command uses the \f3CLASSPATH\fR environment variable when it is set\&. If both are not set, then the \f3javadoc\fR command searches for classes from the current directory\&.
1776 
1777 For an in-depth description of how the \f3javadoc\fR command uses \f3-classpath\fR to find user classes as it relates to extension classes and bootstrap classes, see How Classes Are Found at http://docs\&.oracle\&.com/javase/8/docs/technotes/tools/findingclasses\&.html
1778 
1779 A class path element that contains a base name of * is considered equivalent to specifying a list of all the files in the directory with the extension \f3\&.jar\fR or \f3\&.JAR\fR\&.
1780 
1781 For example, if directory \f3mydir\fR contains \f3a\&.jar\fR and \f3b\&.JA\fRR, then the class path element \f3foo/*\fR is expanded to a \f3A\&.jar:b\&.JAR\fR, except that the order of JAR files is unspecified\&. All JAR files in the specified directory including hidden files are included in the list\&. A class path entry that consists of * expands to a list of all the jar files in the current directory\&. The \f3CLASSPATH\fR environment variable is similarly expanded\&. Any class path wildcard expansion occurs before the Java Virtual Machine (JVM) starts\&. No Java program ever sees unexpanded wild cards except by querying the environment, for example, by calling System\&.getenv(\f3"CLASSPATH"\fR)\&.
1782 .TP
1783 -subpackages \fIpackage1:package2:\&.\&.\&.\fR
1784 .br
1785 Generates documentation from source files in the specified packages and recursively in their subpackages\&. This option is useful when adding new subpackages to the source code because they are automatically included\&. Each package argument is any top-level subpackage (such as \f3java\fR) or fully qualified package (such as \f3javax\&.swing\fR) that does not need to contain source files\&. Arguments are separated by colons on all operating systems\&. Wild cards are not allowed\&. Use \f3-sourcepath\fR to specify where to find the packages\&. This option does not process source files that are in the source tree but do not belong to the packages\&. See Process Source Files\&.
1786 
1787 For example, the following command generates documentation for packages named \f3java\fR and \f3javax\&.swing\fR and all of their subpackages\&.
1788 .sp     
1789 .nf     
1790 \f3javadoc \-d docs \-sourcepath /home/user/src  \-subpackages java:javax\&.swing \fP
1791 .fi     
1792 .nf     
1793 \f3\fP
1794 .fi     
1795 .sp     
1796 
1797 .TP
1798 -exclude \fIpackagename1:packagename2:\&.\&.\&.\fR
1799 .br
1800 Unconditionally excludes the specified packages and their subpackages from the list formed by \f3-subpackages\fR\&. It excludes those packages even when they would otherwise be included by some earlier or later \f3-subpackages\fR option\&.
1801 
1802 The following example would include \f3java\&.io\fR, \f3java\&.util\fR, and \f3java\&.math\fR (among others), but would exclude packages rooted at \f3java\&.net\fR and \f3java\&.lang\fR\&. Notice that this example excludes \f3java\&.lang\&.ref\fR, which is a subpackage of \f3java\&.lang\fR\&.
1803 .sp     
1804 .nf     
1805 \f3javadoc \-sourcepath /home/user/src \-subpackages java \-exclude \fP
1806 .fi     
1807 .nf     
1808 \f3    java\&.net:java\&.lang\fP
1809 .fi     
1810 .nf     
1811 \f3\fP
1812 .fi     
1813 .sp     
1814 
1815 .TP
1816 -bootclasspath \fIclasspathlist\fR
1817 .br
1818 Specifies the paths where the boot classes reside\&. These are typically the Java platform classes\&. The \f3bootclasspath\fR is part of the search path the \f3javadoc\fR command uses to look up source and class files\&. For more information, see How Classes Are Found at http://docs\&.oracle\&.com/javase/8/docs/technotes/tools/findingclasses\&.html
1819 
1820 Separate directories in the \f3classpathlist\fR parameters with semicolons (;) for Windows and colons (:) for Oracle Solaris\&.
1821 .TP
1822 -extdirs \fIdirist\fR
1823 .br
1824 Specifies the directories where extension classes reside\&. These are any classes that use the Java Extension mechanism\&. The \f3extdirs\fR option is part of the search path the \f3javadoc\fR command uses to look up source and class files\&. See the \f3-classpath\fR option for more information\&. Separate directories in \f3dirlist\fR with semicolons (;) for Windows and colons (:) for Oracle Solaris\&.
1825 .TP
1826 -verbose
1827 .br
1828 Provides more detailed messages while the \f3javadoc\fR command runs\&. Without the \f3verbose\fR option, messages appear for loading the source files, generating the documentation (one message per source file), and sorting\&. The verbose option causes the printing of additional messages that specify the number of milliseconds to parse each Java source file\&.
1829 .TP
1830 -quiet
1831 .br
1832 Shuts off messages so that only the warnings and errors appear to make them easier to view\&. It also suppresses the \f3version\fR string\&.
1833 .TP
1834 -breakiterator
1835 .br
1836 Uses the internationalized sentence boundary of \f3java\&.text\&.BreakIterator\fR to determine the end of the first sentence in the main description of a package, class, or member for English\&. All other locales already use the \f3BreakIterator\fR class, rather than an English language, locale-specific algorithm\&. The first sentence is copied to the package, class, or member summary and to the alphabetic index\&. From JDK 1\&.2 and later, the \f3BreakIterator\fR class is used to determine the end of a sentence for all languages except for English\&. Therefore, the \f3-breakiterator\fR option has no effect except for English from 1\&.2 and later\&. English has its own default algorithm:
1837 .RS     
1838 .TP 0.2i    
1839 \(bu
1840 English default sentence-break algorithm\&. Stops at a period followed by a space or an HTML block tag, such as \f3<P>\fR\&.
1841 .TP 0.2i    
1842 \(bu
1843 Breakiterator sentence-break algorithm\&. Stops at a period, question mark, or exclamation point followed by a space when the next word starts with a capital letter\&. This is meant to handle most abbreviations (such as "The serial no\&. is valid", but will not handle "Mr\&. Smith")\&. The \f3-breakiterator\fR option does not stop at HTML tags or sentences that begin with numbers or symbols\&. The algorithm stops at the last period in \&.\&./filename, even when embedded in an HTML tag\&.
1844 .RE     
1845 
1846 
1847 In Java SE 1\&.5 the \f3-breakiterator\fR option warning messages are removed, and the default sentence-break algorithm is unchanged\&. If you have not modified your source code to eliminate the \f3-breakiterator\fR option warnings in Java SE 1\&.4\&.x, then you do not have to do anything\&. The warnings go away starting with Java SE 1\&.5\&.0\&.
1848 .TP
1849 -locale \fIlanguage_country_variant\fR
1850 .br
1851 Specifies the locale that the \f3javadoc\fR command uses when it generates documentation\&. The argument is the name of the locale, as described in \f3j\fR\f3ava\&.util\&.Locale\fR documentation, such as \f3en_US\fR (English, United States) or \f3en_US_WIN\fR (Windows variant)\&.
1852 
1853 \fINote:\fR The \f3-locale\fR option must be placed ahead (to the left) of any options provided by the standard doclet or any other doclet\&. Otherwise, the navigation bars appear in English\&. This is the only command-line option that depends on order\&. See Standard Doclet Options\&.
1854 
1855 Specifying a locale causes the \f3javadoc\fR command to choose the resource files of that locale for messages such as strings in the navigation bar, headings for lists and tables, help file contents, comments in the stylesheet\&.css file, and so on\&. It also specifies the sorting order for lists sorted alphabetically, and the sentence separator to determine the end of the first sentence\&. The \f3-locale\fR option does not determine the locale of the documentation comment text specified in the source files of the documented classes\&.
1856 .TP
1857 -encoding
1858 .br
1859 Specifies the encoding name of the source files, such as \f3EUCJIS/SJIS\fR\&. If this option is not specified, then the platform default converter is used\&. See also the\f3-docencoding name\fR and \f3-charset name\fR options\&.
1860 .TP
1861 -J\fIflag\fR
1862 .br
1863 Passes \f3flag\fR directly to the Java Runtime Environment (JRE) that runs the \f3javadoc\fR command\&. For example, if you must ensure that the system sets aside 32 MB of memory in which to process the generated documentation, then you would call the \f3-Xmx\fR option as follows: \f3javadoc -J-Xmx32m -J-Xms32m com\&.mypackage\fR\&. Be aware that \f3-Xms\fR is optional because it only sets the size of initial memory, which is useful when you know the minimum amount of memory required\&.
1864 
1865 There is no space between the \f3J\fR and the \f3flag\fR\&.
1866 
1867 Use the \f3-version\fR option to find out what version of the \f3javadoc\fR command you are using\&. The version number of the standard doclet appears in its output stream\&. See Running the Javadoc Command\&.
1868 .sp     
1869 .nf     
1870 \f3javadoc \-J\-version\fP
1871 .fi     
1872 .nf     
1873 \f3java version "1\&.7\&.0_09"\fP
1874 .fi     
1875 .nf     
1876 \f3Java(TM) SE Runtime Environment (build 1\&.7\&.0_09\-b05)\fP
1877 .fi     
1878 .nf     
1879 \f3Java HotSpot(TM) 64\-Bit Server VM (build 23\&.5\-b02, mixed mode)\fP
1880 .fi     
1881 .nf     
1882 \f3\fP
1883 .fi     
1884 .sp     
1885 
1886 .TP
1887 -javafx
1888 .br
1889 Generates HTML documentation using the JavaFX extensions to the standard doclet\&. The generated documentation includes a Property Summary section in addition to the other summary sections generated by the standard Java doclet\&. The listed properties are linked to the sections for the getter and setter methods of each property\&.
1890 
1891 If there are no documentation comments written explicitly for getter and setter methods, the documentation comments from the property method are automatically copied to the generated documentation for these methods\&. This option also adds a new \f3@defaultValue\fR tag that allows documenting the default value for a property\&.
1892 
1893 Example:
1894 .sp     
1895 .nf     
1896 \f3javadoc \-javafx MyClass\&.java \-d testdir\fP
1897 .fi     
1898 .sp     
1899 
1900 .SS STANDARD\ DOCLET\ OPTIONS    
1901 .TP
1902 -d \fIdirectory\fR
1903 .br
1904 Specifies the destination directory where the \f3javadoc\fR command saves the generated HTML files\&. If you omit the \f3-d\fR option, then the files are saved to the current directory\&. The \f3directory\fR value can be absolute or relative to the current working directory\&. As of Java SE 1\&.4, the destination directory is automatically created when the \f3javadoc\fR command runs\&.
1905 
1906 For example, the following command generates the documentation for the package \f3com\&.mypackage\fR and saves the results in the /user/doc/ directory: \f3javadoc -d\fR\f3/user/doc/\fR\f3com\&.mypackage\fR\&.
1907 .TP
1908 -use
1909 .br
1910 Includes one Use page for each documented class and package\&. The page describes what packages, classes, methods, constructors and fields use any API of the specified class or package\&. Given class C, things that use class C would include subclasses of C, fields declared as C, methods that return C, and methods and constructors with parameters of type C\&. For example, you can look at the Use page for the \f3String\fR type\&. Because the \f3getName\fR method in the \f3java\&.awt\&.Font\fR class returns type \f3String\fR, the \f3getName\fR method uses \f3String\fR and so the \f3getName\fR method appears on the Use page for \f3String\fR\&.This documents only uses of the API, not the implementation\&. When a method uses \f3String\fR in its implementation, but does not take a string as an argument or return a string, that is not considered a use of \f3String\fR\&.To access the generated Use page, go to the class or package and click the \fIUse link\fR in the navigation bar\&.
1911 .TP
1912 -version
1913 .br
1914 Includes the @version text in the generated docs\&. This text is omitted by default\&. To find out what version of the \f3javadoc\fR command you are using, use the \f3-J-version\fR option\&.
1915 .TP
1916 -author
1917 .br
1918 Includes the \f3@author\fR text in the generated docs\&.
1919 .TP
1920 -splitindex
1921 .br
1922 Splits the index file into multiple files, alphabetically, one file per letter, plus a file for any index entries that start with non-alphabetical symbols\&.
1923 .TP
1924 -windowtitle \fItitle\fR
1925 .br
1926 Specifies the title to be placed in the HTML \f3<title>\fR tag\&. The text specified in the \f3title\fR tag appears in the window title and in any browser bookmarks (favorite places) that someone creates for this page\&. This title should not contain any HTML tags because the browser does not interpret them correctly\&. Use escape characters on any internal quotation marks within the \f3title\fR tag\&. If the \f3-windowtitle\fR option is omitted, then the \f3javadoc\fR command uses the value of the \f3-doctitle\fR option for the \f3-windowtitle\fR option\&. For example, \f3javadoc -windowtitle "Java SE Platform" com\&.mypackage\fR\&.
1927 .TP
1928 -doctitle \fItitle\fR
1929 .br
1930 Specifies the title to place near the top of the overview summary file\&. The text specified in the \f3title\fR tag is placed as a centered, level-one heading directly beneath the top navigation bar\&. The \f3title\fR tag can contain HTML tags and white space, but when it does, you must enclose the title in quotation marks\&. Internal quotation marks within the \f3title\fR tag must be escaped\&. For example, \f3javadoc -header "<b>Java Platform </b><br>v1\&.4" com\&.mypackage\&.\fR
1931 .TP
1932 -title \fItitle\fR
1933 .br
1934 No longer exists\&. It existed only in Beta releases of Javadoc 1\&.2\&. It was renamed to \f3-doctitle\fR\&. This option was renamed to make it clear that it defines the document title, rather than the window title\&.
1935 .TP
1936 -header \fIheader\fR
1937 .br
1938 Specifies the header text to be placed at the top of each output file\&. The header is placed to the right of the upper navigation bar\&. The \f3header\fR can contain HTML tags and white space, but when it does, the \f3header\fR must be enclosed in quotation marks\&. Use escape characters for internal quotation marks within a header\&. For example, \f3javadoc -header "<b>Java Platform </b><br>v1\&.4" com\&.mypackage\&.\fR
1939 .TP
1940 -footer \fIfooter\fR
1941 .br
1942 Specifies the footer text to be placed at the bottom of each output file\&. The \fIfooter\fR value is placed to the right of the lower navigation bar\&. The \f3footer\fR value can contain HTML tags and white space, but when it does, the \f3footer\fR value must be enclosed in quotation marks\&. Use escape characters for any internal quotation marks within a footer\&.
1943 .TP
1944 -top
1945 .br
1946 Specifies the text to be placed at the top of each output file\&.
1947 .TP
1948 -bottom \fItext\fR
1949 .br
1950 Specifies the text to be placed at the bottom of each output file\&. The text is placed at the bottom of the page, underneath the lower navigation bar\&. The text can contain HTML tags and white space, but when it does, the text must be enclosed in quotation marks\&. Use escape characters for any internal quotation marks within text\&.
1951 .TP
1952 -link \fIextdocURL\fR
1953 .br
1954 Creates links to existing Javadoc-generated documentation of externally referenced classes\&. The \fIextdocURL\fR argument is the absolute or relative URL of the directory that contains the external Javadoc-generated documentation you want to link to\&. You can specify multiple \f3-link\fR options in a specified \f3javadoc\fR command run to link to multiple documents\&.
1955 
1956 The package-list file must be found in this directory (otherwise, use the \f3-linkoffline\fR option)\&. The \f3javadoc\fR command reads the package names from the package-list file and links to those packages at that URL\&. When the \f3javadoc\fR command runs, the \f3extdocURL\fR value is copied into the \f3<A HREF>\fR links that are created\&. Therefore, \f3extdocURL\fR must be the URL to the directory, and not to a file\&. You can use an absolute link for \fIextdocURL\fR to enable your documents to link to a document on any web site, or you can use a relative link to link only to a relative location\&. If you use a relative link, then the value you pass in should be the relative path from the destination directory (specified with the \f3-d\fR option) to the directory containing the packages being linked to\&.When you specify an absolute link, you usually use an HTTP link\&. However, if you want to link to a file system that has no web server, then you can use a file link\&. Use a file link only when everyone who wants to access the generated documentation shares the same file system\&.In all cases, and on all operating systems, use a slash as the separator, whether the URL is absolute or relative, and \f3h\fR\f3ttp:\fR or \f3f\fR\f3ile:\fR as specified in the URL Memo: Uniform Resource Locators at http://www\&.ietf\&.org/rfc/rfc1738\&.txt
1957 .sp     
1958 .nf     
1959 \f3\-link  http://<host>/<directory>/<directory>/\&.\&.\&./<name>\fP
1960 .fi     
1961 .nf     
1962 \f3\-link file://<host>/<directory>/<directory>/\&.\&.\&./<name>\fP
1963 .fi     
1964 .nf     
1965 \f3\-link <directory>/<directory>/\&.\&.\&./<name>\fP
1966 .fi     
1967 .nf     
1968 \f3\fP
1969 .fi     
1970 .sp     
1971 
1972 .PP
1973 Differences between the -linkoffline and -link options
1974 
1975 Use the \f3-link\fR option in the following cases:
1976 .TP 0.2i    
1977 \(bu
1978 When you use a relative path to the external API document\&.
1979 .TP 0.2i    
1980 \(bu
1981 When you use an absolute URL to the external API document if your shell lets you open a connection to that URL for reading\&.
1982 .PP
1983 Use the \f3-linkoffline\fR option when you use an absolute URL to the external API document, if your shell does not allow a program to open a connection to that URL for reading\&. This can occur when you are behind a firewall and the document you want to link to is on the other side\&.
1984 .PP
1985 \f3Example 1 Absolute Link to External Documents\fR
1986 .PP
1987 Use the following command if you want to link to the \f3java\&.lang\fR, \f3java\&.io\fR and other Java platform packages, shown at http://docs\&.oracle\&.com/javase/8/docs/api/index\&.html
1988 .sp     
1989 .nf     
1990 \f3javadoc \-link http://docs\&.oracle\&.com/javase/8/docs/api/ com\&.mypackage\fP
1991 .fi     
1992 .nf     
1993 \f3\fP
1994 .fi     
1995 .sp     
1996 The command generates documentation for the package \f3com\&.mypackage\fR with links to the Java SE packages\&. The generated documentation contains links to the \f3Object\fR class, for example, in the class \f3trees\fR\&. Other options, such as the \f3-sourcepath\fR and \f3-d\fR options, are not shown\&.
1997 .PP
1998 \f3Example 2 Relative Link to External Documents\fR
1999 .PP
2000 In this example, there are two packages with documents that are generated in different runs of the \f3javadoc\fR command, and those documents are separated by a relative path\&. The packages are \f3com\&.apipackage\fR, an API, and c\f3om\&.spipackage\fR, an Service Provide Interface (SPI)\&. You want the documentation to reside in docs/api/com/apipackage and docs/spi/com/spipackage\&. Assuming that the API package documentation is already generated, and that docs is the current directory, you document the SPI package with links to the API documentation by running: \f3javadoc -d \&./spi -link \&.\&./api com\&.spipackage\fR\&.
2001 .PP
2002 Notice the \f3-link\fR option is relative to the destination directory (docs/spi)\&.
2003 .PP
2004 Notes
2005 
2006 The \f3-link\fR option lets you link to classes referenced to by your code, but not documented in the current \f3javadoc\fR command run\&. For these links to go to valid pages, you must know where those HTML pages are located and specify that location with \f3extdocURL\fR\&. This allows third-party documentation to link to java\&.* documentation at http://docs\&.oracle\&.com\&.Omit the \f3-link\fR option when you want the \f3javadoc\fR command to create links only to APIs within the documentation it is generating in the current run\&. Without the \f3-link\fR option, the \f3javadoc\fR command does not create links to documentation for external references because it does not know whether or where that documentation exists\&.The \f3-link\fR option can create links in several places in the generated documentation\&. See Process Source Files\&. Another use is for cross-links between sets of packages: Execute the \f3javadoc\fR command on one set of packages, then run the \f3javadoc\fR command again on another set of packages, creating links both ways between both sets\&.
2007 .PP
2008 How to Reference a Class
2009 
2010 For a link to an externally referenced class to appear (and not just its text label), the class must be referenced in the following way\&. It is not sufficient for it to be referenced in the body of a method\&. It must be referenced in either an \f3import\fR statement or in a declaration\&. Here are examples of how the class \f3java\&.io\&.File\fR can be referenced:
2011 .PP
2012 \fI\fRIn any kind of import statement\&. By wildcard import, import explicitly by name, or automatically import for \f3java\&.lang\&.*\fR\&.
2013 .PP
2014 In Java SE 1\&.3\&.\fIn\fR and 1\&.2\&.\fIn\fR, only an explicit import by name works\&. A wildcard \f3import\fR statement does not work, nor does the automatic \f3import java\&.lang\&.*\fR\&.
2015 .PP
2016 \fI\fRIn a declaration: \f3void mymethod(File f) {}\fR
2017 .PP
2018 The reference can be in the return type or parameter type of a method, constructor, field, class, or interface, or in an implements, extends, or throws statement\&.
2019 .PP
2020 An important corollary is that when you use the \f3-link\fR option, there can be many links that unintentionally do not appear due to this constraint\&. The text would appear without being a link\&. You can detect these by the warnings they emit\&. The simplest way to properly reference a class and add the link would be to import that class\&.
2021 .PP
2022 Package List
2023 
2024 The \f3-link\fR option requires that a file named package-list, which is generated by the \f3javadoc\fR command, exists at the URL you specify with the \f3-link\fR option\&. The package-list file is a simple text file that lists the names of packages documented at that location\&. In the earlier example, the \f3javadoc\fR command searches for a file named package-list at the specified URL, reads in the package names, and links to those packages at that URL\&.
2025 .PP
2026 For example, the package list for the Java SE API is located at http://docs\&.oracle\&.com/javase/8/docs/api/package-list
2027 .PP
2028 The package list starts as follows:
2029 .sp     
2030 .nf     
2031 \f3java\&.applet\fP
2032 .fi     
2033 .nf     
2034 \f3java\&.awt\fP
2035 .fi     
2036 .nf     
2037 \f3java\&.awt\&.color\fP
2038 .fi     
2039 .nf     
2040 \f3java\&.awt\&.datatransfer\fP
2041 .fi     
2042 .nf     
2043 \f3java\&.awt\&.dnd\fP
2044 .fi     
2045 .nf     
2046 \f3java\&.awt\&.event\fP
2047 .fi     
2048 .nf     
2049 \f3java\&.awt\&.font\fP
2050 .fi     
2051 .nf     
2052 \f3and so on \&.\&.\&.\&.\fP
2053 .fi     
2054 .nf     
2055 \f3\fP
2056 .fi     
2057 .sp     
2058 When \f3javadoc\fR is run without the \f3-link\fR option and encounters a name that belongs to an externally referenced class, it prints the name with no link\&. However, when the \f3-link\fR option is used, the \f3javadoc\fR command searches the package-list file at the specified \fIextdocURL\fR location for that package name\&. When it finds the package name, it prefixes the name with \fIextdocURL\fR\&.
2059 .PP
2060 For there to be no broken links, all of the documentation for the external references must exist at the specified URLs\&. The \f3javadoc\fR command does not check that these pages exist, but only that the package-list exists\&.
2061 .PP
2062 Multiple Links
2063 
2064 You can supply multiple \f3-link\fR options to link to any number of externally generated documents\&. Javadoc 1\&.2 has a known bug that prevents you from supplying more than one \f3-link\fR options\&. This was fixed in Javadoc 1\&.2\&.2\&. Specify a different link option for each external document to link to \f3javadoc -link extdocURL1 -link extdocURL2 \&.\&.\&. -link extdocURLn com\&.mypackage\fR where \fIextdocURL1\fR, \fIextdocURL2\fR, \&.\f3\&.\&. extdocURLn\fR point respectively to the roots of external documents, each of which contains a file named package-list\&.
2065 .PP
2066 Cross Links
2067 
2068 Note that bootstrapping might be required when cross-linking two or more documents that were previously generated\&. If package-list does not exist for either document when you run the \f3javadoc\fR command on the first document, then the package-list does not yet exist for the second document\&. Therefore, to create the external links, you must regenerate the first document after you generate the second document\&.
2069 .PP
2070 In this case, the purpose of first generating a document is to create its package-list (or you can create it by hand if you are certain of the package names)\&. Then, generate the second document with its external links\&. The \f3javadoc\fR command prints a warning when a needed external package-list file does not exist\&.
2071 .TP
2072 -linkoffline \fIextdocURL packagelistLoc\fR
2073 .br
2074 This option is a variation of the \f3-link\fR option\&. They both create links to Javadoc-generated documentation for externally referenced classes\&. Use the \f3-link\fRo\f3ffline\fR option when linking to a document on the web when the \f3javadoc\fR command cannot access the document through a web connection\&. Use the \f3-linkoffline\fR option when package-list file of the external document is not accessible or does not exist at the \f3extdocURL\fR location, but does exist at a different location that can be specified by \f3packageListLoc\fR (typically local)\&. If \f3extdocURL\fR is accessible only on the World Wide Web, then the \f3-linkoffline\fR option removes the constraint that the \f3javadoc\fR command must have a web connection to generate documentation\&. Another use is as a work-around to update documents: After you have run the \f3javadoc\fR command on a full set of packages, you can run the \f3javadoc\fR command again on a smaller set of changed packages, so that the updated files can be inserted back into the original set\&. Examples follow\&. The \f3-linkoffline\fR option takes two arguments\&. The first is for the string to be embedded in the \f3<a href>\fR links, and the second tells the \f3-linkoffline\fR option where to find package-list:
2075 .RS     
2076 .TP 0.2i    
2077 \(bu
2078 The \f3extdocURL\fR value is the absolute or relative URL of the directory that contains the external Javadoc-generated documentation you want to link to\&. When relative, the value should be the relative path from the destination directory (specified with the \f3-d\fR option) to the root of the packages being linked to\&. For more information, see \fIextdocURL\fR in the \f3-link\fR option\&.
2079 .TP 0.2i    
2080 \(bu
2081 The \f3packagelistLoc\fR value is the path or URL to the directory that contains the package-list file for the external documentation\&. This can be a URL (http: or file:) or file path, and can be absolute or relative\&. When relative, make it relative to the current directory from where the \f3javadoc\fR command was run\&. Do not include the package-list file name\&.
2082 
2083 You can specify multiple \f3-linkoffline\fR options in a specified \f3javadoc\fR command run\&. Before Javadoc 1\&.2\&.2, the \f3-linkfile\fR options could be specified once\&.
2084 .RE     
2085 
2086 .PP
2087 Absolute Links to External Documents
2088 
2089 You might have a situation where you want to link to the \f3java\&.lang\fR, \f3java\&.io\fR and other Java SE packages at http://docs\&.oracle\&.com/javase/8/docs/api/index\&.html
2090 .PP
2091 However, your shell does not have web access\&. In this case, do the following:
2092 .TP 0.4i    
2093 1\&.
2094 Open the package-list file in a browser at http://docs\&.oracle\&.com/javase/8/docs/api/package-list
2095 .TP 0.4i    
2096 2\&.
2097 Save the file to a local directory, and point to this local copy with the second argument, \f3packagelistLoc\fR\&. In this example, the package list file was saved to the current directory (\&.)\&.
2098 .PP
2099 The following command generates documentation for the package c\f3om\&.mypackage\fR with links to the Java SE packages\&. The generated documentation will contain links to the \f3Object\fR class, for example, in the class \f3trees\fR\&. Other necessary options, such as \f3-sourcepath\fR, are not shown\&.
2100 .sp     
2101 .nf     
2102 \f3javadoc \-linkoffline http://docs\&.oracle\&.com/javase/8/docs/api/ \&.  com\&.mypackage \fP
2103 .fi     
2104 .nf     
2105 \f3\fP
2106 .fi     
2107 .sp     
2108 
2109 .PP
2110 Relative Links to External Documents
2111 
2112 It is not very common to use \f3-linkoffline\fR with relative paths, for the simple reason that the \f3-link\fR option is usually enough\&. When you use the \f3-linkoffline\fR option, the package-list file is usually local, and when you use relative links, the file you are linking to is also local, so it is usually unnecessary to give a different path for the two arguments to the \f3-linkoffline\fR option When the two arguments are identical, you can use the \f3-link\fR option\&.
2113 .PP
2114 Create a package-list File Manually
2115 
2116 If a package-list file does not exist yet, but you know what package names your document will link to, then you can manually create your own copy of this file and specify its path with \f3packagelistLoc\fR\&. An example would be the previous case where the package list for \f3com\&.spipackage\fR did not exist when \f3com\&.apipackage\fR was first generated\&. This technique is useful when you need to generate documentation that links to new external documentation whose package names you know, but which is not yet published\&. This is also a way of creating package-list files for packages generated with Javadoc 1\&.0 or 1\&.1, where package-list files were not generated\&. Similarly, two companies can share their unpublished package-list files so they can release their cross-linked documentation simultaneously\&.
2117 .PP
2118 Link to Multiple Documents
2119 
2120 You can include the \f3-linkoffline\fR option once for each generated document you want to refer to:
2121 .sp     
2122 .nf     
2123 \f3javadoc \-linkoffline extdocURL1 packagelistLoc1 \-linkoffline extdocURL2\fP
2124 .fi     
2125 .nf     
2126 \f3packagelistLoc2 \&.\&.\&.\fP
2127 .fi     
2128 .nf     
2129 \f3\fP
2130 .fi     
2131 .sp     
2132 
2133 .PP
2134 Update Documents
2135 
2136 You can also use the \f3-linkoffline\fR option when your project has dozens or hundreds of packages\&. If you have already run the \f3javadoc\fR command on the entire source tree, then you can quickly make small changes to documentation comments and rerun the \f3javadoc\fR command on a portion of the source tree\&. Be aware that the second run works properly only when your changes are to documentation comments and not to declarations\&. If you were to add, remove, or change any declarations from the source code, then broken links could show up in the index, package tree, inherited member lists, Use page, and other places\&.
2137 .PP
2138 First, create a new destination directory, such as update, for this new small run\&. In this example, the original destination directory is named html\&. In the simplest example, change directory to the parent of html\&. Set the first argument of the \f3-linkoffline\fR option to the current directory (\&.) and set the second argument to the relative path to html, where it can find package-list and pass in only the package names of the packages you want to update:
2139 .sp     
2140 .nf     
2141 \f3javadoc \-d update \-linkoffline \&. html com\&.mypackage\fP
2142 .fi     
2143 .nf     
2144 \f3\fP
2145 .fi     
2146 .sp     
2147 When the \f3javadoc\fR command completes, copy these generated class pages in update/com/package (not the overview or index) to the original files in html/com/package\&.
2148 .TP
2149 -linksource
2150 .br
2151 Creates an HTML version of each source file (with line numbers) and adds links to them from the standard HTML documentation\&. Links are created for classes, interfaces, constructors, methods, and fields whose declarations are in a source file\&. Otherwise, links are not created, such as for default constructors and generated classes\&.
2152 
2153 This option exposes all private implementation details in the included source files, including private classes, private fields, and the bodies of private methods, regardless of the \f3-public\fR, \f3-package\fR, \f3-protected\fR, and \f3-private\fR options\&. Unless you also use the \f3-private\fR option, not all private classes or interfaces are accessible through links\&.
2154 
2155 Each link appears on the name of the identifier in its declaration\&. For example, the link to the source code of the \f3Button\fR class would be on the word \f3Button\fR:
2156 .sp     
2157 .nf     
2158 \f3public class Button extends Component implements Accessible\fP
2159 .fi     
2160 .nf     
2161 \f3\fP
2162 .fi     
2163 .sp     
2164 
2165 
2166 The link to the source code of the \f3getLabel\fR method in the \f3Button\fR class is on the word \f3getLabel\fR:
2167 .sp     
2168 .nf     
2169 \f3public String getLabel()\fP
2170 .fi     
2171 .nf     
2172 \f3\fP
2173 .fi     
2174 .sp     
2175 
2176 .TP
2177 -group groupheading \fIpackagepattern:packagepattern\fR
2178 .br
2179 Separates packages on the overview page into whatever groups you specify, one group per table\&. You specify each group with a different \f3-group\fR option\&. The groups appear on the page in the order specified on the command line\&. Packages are alphabetized within a group\&. For a specified \f3-group\fR option, the packages matching the list of \f3packagepattern\fR expressions appear in a table with the heading \fIgroupheading\fR\&.
2180 .RS     
2181 .TP 0.2i    
2182 \(bu
2183 The \f3groupheading\fR can be any text and can include white space\&. This text is placed in the table heading for the group\&.
2184 .TP 0.2i    
2185 \(bu
2186 The \f3packagepattern\fR value can be any package name at the start of any package name followed by an asterisk (*)\&. The asterisk is the only wildcard allowed and means match any characters\&. Multiple patterns can be included in a group by separating them with colons (:)\&. If you use an asterisk in a pattern or pattern list, then the pattern list must be inside quotation marks, such as \f3"java\&.lang*:java\&.util"\fR\&.
2187 .RE     
2188 
2189 
2190 When you do not supply a \f3-group\fR option, all packages are placed in one group with the heading \fIPackages\fR and appropriate subheadings\&. If the subheadings do not include all documented packages (all groups), then the remaining packages appear in a separate group with the subheading Other Packages\&.
2191 
2192 For example, the following \f3javadoc\fR command separates the three documented packages into \fICore\fR, \fIExtension\fR, and \fIOther Packages\fR\&. The trailing dot (\&.) does not appear in \f3java\&.lang*\fR\&. Including the dot, such as \f3java\&.lang\&.*\fR omits the\f3java\&.lang\fR package\&.
2193 .sp     
2194 .nf     
2195 \f3javadoc \-group "Core Packages" "java\&.lang*:java\&.util"\fP
2196 .fi     
2197 .nf     
2198 \f3        \-group "Extension Packages" "javax\&.*"\fP
2199 .fi     
2200 .nf     
2201 \f3        java\&.lang java\&.lang\&.reflect java\&.util javax\&.servlet java\&.new\fP
2202 .fi     
2203 .nf     
2204 \f3\fP
2205 .fi     
2206 .sp     
2207 
2208 
2209 \fICore Packages\fR
2210 
2211 \f3java\&.lang\fR
2212 
2213 \f3java\&.lang\&.reflect\fR
2214 
2215 \f3java\&.util\fR
2216 
2217 \fIExtension Packages\fR
2218 
2219 \f3javax\&.servlet\fR
2220 
2221 \fIOther Packages\fR
2222 
2223 \f3java\&.new\fR
2224 .TP
2225 -nodeprecated
2226 .br
2227 Prevents the generation of any deprecated API in the documentation\&. This does what the \f3-nodeprecatedlist\fR option does, and it does not generate any deprecated API throughout the rest of the documentation\&. This is useful when writing code when you do not want to be distracted by the deprecated code\&.
2228 .TP
2229 -nodeprecatedlist
2230 .br
2231 Prevents the generation of the file that contains the list of deprecated APIs (deprecated-list\&.html) and the link in the navigation bar to that page\&. The \f3javadoc\fR command continues to generate the deprecated API throughout the rest of the document\&. This is useful when your source code contains no deprecated APIs, and you want to make the navigation bar cleaner\&.
2232 .TP
2233 -nosince
2234 .br
2235 Omits from the generated documents the \f3Since\fR sections associated with the \f3@since\fR tags\&.
2236 .TP
2237 -notree
2238 .br
2239 Omits the class/interface hierarchy pages from the generated documents\&. These are the pages you reach using the Tree button in the navigation bar\&. The hierarchy is produced by default\&.
2240 .TP
2241 -noindex
2242 .br
2243 Omits the index from the generated documents\&. The index is produced by default\&.
2244 .TP
2245 -nohelp
2246 .br
2247 Omits the HELP link in the navigation bars at the top and bottom of each page of output\&.
2248 .TP
2249 -nonavbar
2250 .br
2251 Prevents the generation of the navigation bar, header, and footer, that are usually found at the top and bottom of the generated pages\&. The \f3-nonavbar\fR option has no affect on the \f3-bottom\fR option\&. The \f3-nonavbar\fR option is useful when you are interested only in the content and have no need for navigation, such as when you are converting the files to PostScript or PDF for printing only\&.
2252 .TP
2253 -helpfile \fIpath\efilename\fR
2254 .br
2255 Specifies the path of an alternate help file path\efilename that the HELP link in the top and bottom navigation bars link to\&. Without this option, the \f3javadoc\fR command creates a help file help-doc\&.html that is hard-coded in the \f3javadoc\fR command\&. This option lets you override the default\&. The file name can be any name and is not restricted to help-doc\&.html\&. The \f3javadoc\fR command adjusts the links in the navigation bar accordingly, for example:
2256 .sp     
2257 .nf     
2258 \f3javadoc \-helpfile /home/user/myhelp\&.html java\&.awt\&.\fP
2259 .fi     
2260 .nf     
2261 \f3\fP
2262 .fi     
2263 .sp     
2264 
2265 .TP
2266 -stylesheet \fIpath/filename\fR
2267 .br
2268 Specifies the path of an alternate HTML stylesheet file\&. Without this option, the \f3javadoc\fR command automatically creates a stylesheet file stylesheet\&.css that is hard-coded in the \f3javadoc\fR command\&. This option lets you override the default\&. The file name can be any name and is not restricted to stylesheet\&.css, for example:
2269 .sp     
2270 .nf     
2271 \f3javadoc \-stylesheet file /home/user/mystylesheet\&.css com\&.mypackage\fP
2272 .fi     
2273 .nf     
2274 \f3\fP
2275 .fi     
2276 .sp     
2277 
2278 .TP
2279 -serialwarn
2280 .br
2281 Generates compile-time warnings for missing \f3@serial\fR tags\&. By default, Javadoc 1\&.2\&.2 and later versions generate no serial warnings\&. This is a reversal from earlier releases\&. Use this option to display the serial warnings, which helps to properly document default serializable fields and \f3writeExternal\fR methods\&.
2282 .TP
2283 -charset \fIname\fR
2284 .br
2285 Specifies the HTML character set for this document\&. The name should be a preferred MIME name as specified in the IANA Registry, Character Sets at http://www\&.iana\&.org/assignments/character-sets
2286 
2287 For example, \f3javadoc -charset "iso-8859-1" mypackage\fR inserts the following line in the head of every generated page:
2288 .sp     
2289 .nf     
2290 \f3<META http\-equiv="Content\-Type" content="text/html; charset=ISO\-8859\-1">\fP
2291 .fi     
2292 .nf     
2293 \f3\fP
2294 .fi     
2295 .sp     
2296 
2297 
2298 This \f3META\fR tag is described in the HTML standard (4197265 and 4137321), HTML Document Representation, at http://www\&.w3\&.org/TR/REC-html40/charset\&.html#h-5\&.2\&.2
2299 
2300 See also the \f3-encoding\fR and \f3-docencoding name\fR options\&.
2301 .TP
2302 -docencoding \fIname\fR
2303 .br
2304 Specifies the encoding of the generated HTML files\&. The name should be a preferred MIME name as specified in the IANA Registry, Character Sets at http://www\&.iana\&.org/assignments/character-sets
2305 
2306 If you omit the \f3-docencoding\fR option but use the \f3-encoding\fR option, then the encoding of the generated HTML files is determined by the \f3-encoding\fR option, for example: \f3javadoc -docencoding "iso-8859-1" mypackage\fR\&. See also the \f3-encoding\fR and \f3-docencoding name\fR options\&.
2307 .TP
2308 -keywords
2309 .br
2310 Adds HTML keyword <META> tags to the generated file for each class\&. These tags can help search engines that look for <META> tags find the pages\&. Most search engines that search the entire Internet do not look at <META> tags, because pages can misuse them\&. Search engines offered by companies that confine their searches to their own website can benefit by looking at <META> tags\&. The <META> tags include the fully qualified name of the class and the unqualified names of the fields and methods\&. Constructors are not included because they are identical to the class name\&. For example, the class \f3String\fR starts with these keywords:
2311 .sp     
2312 .nf     
2313 \f3<META NAME="keywords" CONTENT="java\&.lang\&.String class">\fP
2314 .fi     
2315 .nf     
2316 \f3<META NAME="keywords" CONTENT="CASE_INSENSITIVE_ORDER">\fP
2317 .fi     
2318 .nf     
2319 \f3<META NAME="keywords" CONTENT="length()">\fP
2320 .fi     
2321 .nf     
2322 \f3<META NAME="keywords" CONTENT="charAt()">\fP
2323 .fi     
2324 .nf     
2325 \f3\fP
2326 .fi     
2327 .sp     
2328 
2329 .TP
2330 -tag \fItagname\fR:Xaoptcmf:"\fItaghead\fR"
2331 .br
2332 Enables the \f3javadoc\fR command to interpret a simple, one-argument \f3@tagname\fR custom block tag in documentation comments\&. For the \f3javadoc\fR command to spell-check tag names, it is important to include a \f3-tag\fR option for every custom tag that is present in the source code, disabling (with \f3X\fR) those that are not being output in the current run\&.The colon (:) is always the separator\&. The \f3-tag\fR option outputs the tag heading \fItaghead\fR in bold, followed on the next line by the text from its single argument\&. Similar to any block tag, the argument text can contain inline tags, which are also interpreted\&. The output is similar to standard one-argument tags, such as the \f3@return\fR and \f3@author\fR tags\&. Omitting a value for \fItaghead\fR causes \f3tagname\fR to be the heading\&.
2333 
2334 \fIPlacement of tags\fR: The \f3Xaoptcmf\fR arguments determine where in the source code the tag is allowed to be placed, and whether the tag can be disabled (using \f3X\fR)\&. You can supply either \f3a\fR, to allow the tag in all places, or any combination of the other letters:
2335 
2336 \f3X\fR (disable tag)
2337 
2338 \f3a\fR (all)
2339 
2340 \f3o\fR (overview)
2341 
2342 \f3p\fR (packages)
2343 
2344 \f3t\fR (types, that is classes and interfaces)
2345 
2346 \f3c\fR (constructors)
2347 
2348 \f3m\fR (methods)
2349 
2350 \f3f\fR (fields)
2351 
2352 \fIExamples of single tags\fR: An example of a tag option for a tag that can be used anywhere in the source code is: \f3-tag todo:a:"To Do:"\fR\&.
2353 
2354 If you want the \f3@todo\fR tag to be used only with constructors, methods, and fields, then you use: \f3-tag todo:cmf:"To Do:"\fR\&.
2355 
2356 Notice the last colon (:) is not a parameter separator, but is part of the heading text\&. You would use either tag option for source code that contains the \f3@todo\fR tag, such as: \f3@todo The documentation for this method needs work\fR\&.
2357 
2358 \fIColons in tag names\fR: Use a backslash to escape a colon that you want to use in a tag name\&. Use the \f3-tag ejb\e\e:bean:a:"EJB Bean:"\fR option for the following documentation comment:
2359 .sp     
2360 .nf     
2361 \f3/**\fP
2362 .fi     
2363 .nf     
2364 \f3 * @ejb:bean\fP
2365 .fi     
2366 .nf     
2367 \f3 */\fP
2368 .fi     
2369 .nf     
2370 \f3\fP
2371 .fi     
2372 .sp     
2373 
2374 
2375 \fISpell-checking tag names\fR: Some developers put custom tags in the source code that they do not always want to output\&. In these cases, it is important to list all tags that are in the source code, enabling the ones you want to output and disabling the ones you do not want to output\&. The presence of \f3X\fR disables the tag, while its absence enables the tag\&. This gives the \f3javadoc\fR command enough information to know whether a tag it encounters is unknown, which is probably the results of a typographical error or a misspelling\&. The \f3javadoc\fR command prints a warning in these cases\&. You can add \f3X\fR to the placement values already present, so that when you want to enable the tag, you can simply delete the \f3X\fR\&. For example, if the \f3@todo\fR tag is a tag that you want to suppress on output, then you would use: \f3-tag todo:Xcmf:"To Do:"\fR\&. If you would rather keep it simple, then use this: \f3-tag todo:X\fR\&. The syntax \f3-tag todo:X\fR works even when the \f3@todo\fR tag is defined by a taglet\&.
2376 
2377 \fIOrder of tags\fR: The order of the \f3-ta\fR\f3g\fR and \f3-taglet\fR options determines the order the tags are output\&. You can mix the custom tags with the standard tags to intersperse them\&. The tag options for standard tags are placeholders only for determining the order\&. They take only the standard tag\&'s name\&. Subheadings for standard tags cannot be altered\&. This is illustrated in the following example\&.If the \f3-tag\fR option is missing, then the position of the \f3-tagle\fR\f3t\fR option determines its order\&. If they are both present, then whichever appears last on the command line determines its order\&. This happens because the tags and taglets are processed in the order that they appear on the command line\&. For example, if the \f3-taglet\fR and \f3-tag\fR options have the name \f3todo\fR value, then the one that appears last on the command line determines the order\&.
2378 
2379 \fIExample of a complete set of tags\fR: This example inserts To Do after Parameters and before Throws in the output\&. By using \f3X\fR, it also specifies that the \f3@example\fR tag might be encountered in the source code that should not be output during this run\&. If you use the \f3@argfile\fR tag, then you can put the tags on separate lines in an argument file similar to this (no line continuation characters needed):
2380 .sp     
2381 .nf     
2382 \f3\-tag param\fP
2383 .fi     
2384 .nf     
2385 \f3\-tag return\fP
2386 .fi     
2387 .nf     
2388 \f3\-tag todo:a:"To Do:"\fP
2389 .fi     
2390 .nf     
2391 \f3\-tag throws\fP
2392 .fi     
2393 .nf     
2394 \f3\-tag see\fP
2395 .fi     
2396 .nf     
2397 \f3\-tag example:X\fP
2398 .fi     
2399 .nf     
2400 \f3\fP
2401 .fi     
2402 .sp     
2403 
2404 
2405 When the \f3javadoc\fR command parses the documentation comments, any tag encountered that is neither a standard tag nor passed in with the \f3-tag\fR or \f3-taglet\fR options is considered unknown, and a warning is thrown\&.
2406 
2407 The standard tags are initially stored internally in a list in their default order\&. Whenever the \f3-tag\fR options are used, those tags get appended to this list\&. Standard tags are moved from their default position\&. Therefore, if a \f3-tag\fR option is omitted for a standard tag, then it remains in its default position\&.
2408 
2409 \fIAvoiding conflicts\fR: If you want to create your own namespace, then you can use a dot-separated naming convention similar to that used for packages: \f3com\&.mycompany\&.todo\fR\&. Oracle will continue to create standard tags whose names do not contain dots\&. Any tag you create will override the behavior of a tag by the same name defined by Oracle\&. If you create a \f3@todo\fR tag or taglet, then it always has the same behavior you define, even when Oracle later creates a standard tag of the same name\&.
2410 
2411 \fIAnnotations vs\&. Javadoc tags\fR: In general, if the markup you want to add is intended to affect or produce documentation, then it should be a Javadoc tag\&. Otherwise, it should be an annotation\&. See Custom Tags and Annotations in How to Write Doc Comments for the Javadoc Tool at http://www\&.oracle\&.com/technetwork/java/javase/documentation/index-137868\&.html#annotations
2412 
2413 You can also create more complex block tags or custom inline tags with the \f3-taglet\fR option\&.
2414 .TP
2415 -taglet \fIclass\fR
2416 .br
2417 Specifies the class file that starts the taglet used in generating the documentation for that tag\&. Use the fully qualified name for the \f3class\fR value\&. This taglet also defines the number of text arguments that the custom tag has\&. The taglet accepts those arguments, processes them, and generates the output\&. For extensive documentation with example taglets, see: Taglet Overview at http://docs\&.oracle\&.com/javase/8/docs/technotes/guides/javadoc/taglet/overview\&.html
2418 
2419 Taglets are useful for block or inline tags\&. They can have any number of arguments and implement custom behavior, such as making text bold, formatting bullets, writing out the text to a file, or starting other processes\&. Taglets can only determine where a tag should appear and in what form\&. All other decisions are made by the doclet\&. A taglet cannot do things such as remove a class name from the list of included classes\&. However, it can execute side effects, such as printing the tag\&'s text to a file or triggering another process\&. Use the \f3-tagletpath\fR option to specify the path to the taglet\&. The following example inserts the To Do taglet after Parameters and ahead of Throws in the generated pages\&. Alternately, you can use the \f3-taglet\fR option in place of its \f3-tag\fR option, but that might be difficult to read\&.
2420 .sp     
2421 .nf     
2422 \f3\-taglet com\&.sun\&.tools\&.doclets\&.ToDoTaglet\fP
2423 .fi     
2424 .nf     
2425 \f3\-tagletpath /home/taglets \fP
2426 .fi     
2427 .nf     
2428 \f3\-tag return\fP
2429 .fi     
2430 .nf     
2431 \f3\-tag param\fP
2432 .fi     
2433 .nf     
2434 \f3\-tag todo\fP
2435 .fi     
2436 .nf     
2437 \f3\-tag throws\fP
2438 .fi     
2439 .nf     
2440 \f3\-tag see\fP
2441 .fi     
2442 .nf     
2443 \f3\fP
2444 .fi     
2445 .sp     
2446 
2447 .TP
2448 -tagletpath \fItagletpathlist\fR
2449 .br
2450 Specifies the search paths for finding taglet class files\&. The \f3tagletpathlist\fR can contain multiple paths by separating them with a colon (:)\&. The \f3javadoc\fR command searches all subdirectories of the specified paths\&.
2451 .TP
2452 -docfilesubdirs
2453 .br
2454 Enables deep copying of doc-files directories\&. Subdirectories and all contents are recursively copied to the destination\&. For example, the directory doc-files/example/images and all of its contents would be copied\&. There is also an option to exclude subdirectories\&.
2455 .TP
2456 -excludedocfilessubdir \fIname1:name2\fR
2457 .br
2458 Excludes any doc-files subdirectories with the specified names\&. This prevents the copying of SCCS and other source-code-control subdirectories\&.
2459 .TP
2460 -noqualifier all | \fIpackagename1\fR:\fIpackagename2\&.\&.\&.\fR
2461 .br
2462 Omits qualifying package names from class names in output\&. The argument to the \f3-noqualifier\fR option is either \f3all\fR (all package qualifiers are omitted) or a colon-separate list of packages, with wild cards, to be removed as qualifiers\&. The package name is removed from places where class or interface names appear\&. See Process Source Files\&.
2463 
2464 The following example omits all package qualifiers: \f3-noqualifier all\fR\&.
2465 
2466 The following example omits \f3java\&.lang\fR and \f3java\&.io\fR package qualifiers: \f3-noqualifier java\&.lang:java\&.io\fR\&.
2467 
2468 The following example omits package qualifiers starting with \f3java\fR, and \f3com\&.sun\fR subpackages, but not \f3javax\fR: \f3-noqualifier java\&.*:com\&.sun\&.*\fR\&.
2469 
2470 Where a package qualifier would appear due to the previous behavior, the name can be suitably shortened\&. See How a Name Appears\&. This rule is in effect whether or not the \f3-noqualifier\fR option is used\&.
2471 .TP
2472 -notimestamp
2473 .br
2474 Suppresses the time stamp, which is hidden in an HTML comment in the generated HTML near the top of each page\&. The \f3-notimestamp\fR option is useful when you want to run the \f3javadoc\fR command on two source bases and get the differences between \f3diff\fR them, because it prevents time stamps from causing a \f3diff\fR (which would otherwise be a \f3diff\fR on every page)\&. The time stamp includes the \f3javadoc\fR command release number, and currently appears similar to this: \f3<!-- Generated by javadoc (build 1\&.5\&.0_01) on Thu Apr 02 14:04:52 IST 2009 -->\fR\&.
2475 .TP
2476 -nocomment
2477 .br
2478 Suppresses the entire comment body, including the main description and all tags, and generate only declarations\&. This option lets you reuse source files that were originally intended for a different purpose so that you can produce skeleton HTML documentation at the early stages of a new project\&.
2479 .TP
2480 -sourcetab \fItablength\fR
2481 .br
2482 Specifies the number of spaces each tab uses in the source\&.
2483 .SH COMMAND-LINE\ ARGUMENT\ FILES    
2484 To shorten or simplify the \f3javadoc\fR command, you can specify one or more files that contain arguments to the \f3javadoc\fR command (except \f3-J\fR options)\&. This enables you to create \f3javadoc\fR commands of any length on any operating system\&.
2485 .PP
2486 An argument file can include \f3javac\fR options and source file names in any combination\&. The arguments within a file can be space-separated or newline-separated\&. If a file name contains embedded spaces, then put the whole file name in double quotation marks\&.
2487 .PP
2488 File Names within an argument file are relative to the current directory, not the location of the argument file\&. Wild cards (\f3*\fR) are not allowed in these lists (such as for specifying *\&.java)\&. Using the at sign (@) to recursively interpret files is not supported\&. The \f3-J\fR options are not supported because they are passed to the launcher, which does not support argument files\&.
2489 .PP
2490 When you run the \f3javadoc\fR command, pass in the path and name of each argument file with the @ leading character\&. When the \f3javadoc\fR command encounters an argument beginning with the at sign (@), it expands the contents of that file into the argument list\&.
2491 .PP
2492 \f3Example 1 Single Argument File\fR
2493 .PP
2494 You could use a single argument file named \f3argfile\fR to hold all \f3javadoc\fR command arguments: \f3javadoc @argfile\fR\&. The argument file \f3\fRcontains the contents of both files, as shown in the next example\&.
2495 .PP
2496 \f3Example 2 Two Argument Files\fR
2497 .PP
2498 You can create two argument files: One for the \f3javadoc\fR command options and the other for the package names or source file names\&. Notice the following lists have no line-continuation characters\&.
2499 .PP
2500 Create a file named options that contains:
2501 .sp     
2502 .nf     
2503 \f3\-d docs\-filelist \fP
2504 .fi     
2505 .nf     
2506 \f3\-use \fP
2507 .fi     
2508 .nf     
2509 \f3\-splitindex\fP
2510 .fi     
2511 .nf     
2512 \f3\-windowtitle \&'Java SE 7 API Specification\&'\fP
2513 .fi     
2514 .nf     
2515 \f3\-doctitle \&'Java SE 7 API Specification\&'\fP
2516 .fi     
2517 .nf     
2518 \f3\-header \&'<b>Java\(tm SE 7</b>\&'\fP
2519 .fi     
2520 .nf     
2521 \f3\-bottom \&'Copyright &copy; 1993\-2011 Oracle and/or its affiliates\&. All rights reserved\&.\&'\fP
2522 .fi     
2523 .nf     
2524 \f3\-group "Core Packages" "java\&.*"\fP
2525 .fi     
2526 .nf     
2527 \f3\-overview /java/pubs/ws/1\&.7\&.0/src/share/classes/overview\-core\&.html\fP
2528 .fi     
2529 .nf     
2530 \f3\-sourcepath /java/pubs/ws/1\&.7\&.0/src/share/classes\fP
2531 .fi     
2532 .nf     
2533 \f3\fP
2534 .fi     
2535 .sp     
2536 Create a file named packages that contains:
2537 .sp     
2538 .nf     
2539 \f3com\&.mypackage1\fP
2540 .fi     
2541 .nf     
2542 \f3com\&.mypackage2\fP
2543 .fi     
2544 .nf     
2545 \f3com\&.mypackage3\fP
2546 .fi     
2547 .nf     
2548 \f3\fP
2549 .fi     
2550 .sp     
2551 Run the \f3javadoc\fR command as follows:
2552 .sp     
2553 .nf     
2554 \f3javadoc @options @packages\fP
2555 .fi     
2556 .nf     
2557 \f3\fP
2558 .fi     
2559 .sp     
2560 \f3Example 3 Argument Files with Paths\fR
2561 .PP
2562 The argument files can have paths, but any file names inside the files are relative to the current working directory (not \f3path1\fR or \f3path2\fR):
2563 .sp     
2564 .nf     
2565 \f3javadoc @path1/options @path2/packages\fP
2566 .fi     
2567 .nf     
2568 \f3\fP
2569 .fi     
2570 .sp     
2571 \f3Example 4 Option Arguments\fR
2572 .PP
2573 The following example saves an argument to a \f3javadoc\fR command option in an argument file\&. The \f3-bottom\fR option is used because it can have a lengthy argument\&. You could create a file named bottom to contain the text argument:
2574 .sp     
2575 .nf     
2576 \f3<font size="\-1">\fP
2577 .fi     
2578 .nf     
2579 \f3    <a href="http://bugreport\&.sun\&.com/bugreport/">Submit a bug or feature</a><br/>\fP
2580 .fi     
2581 .nf     
2582 \f3    Copyright &copy; 1993, 2011, Oracle and/or its affiliates\&. All rights reserved\&. <br/>\fP
2583 .fi     
2584 .nf     
2585 \f3    Oracle is a registered trademark of Oracle Corporation and/or its affiliates\&.\fP
2586 .fi     
2587 .nf     
2588 \f3    Other names may be trademarks of their respective owners\&.</font>\fP
2589 .fi     
2590 .nf     
2591 \f3\fP
2592 .fi     
2593 .sp     
2594 Run the \f3javadoc\fR command as follows:\f3javadoc -bottom @bottom @packages\fR\&.
2595 .PP
2596 You can also include the \f3-bottom\fR option at the start of the argument file and run the \f3javadoc\fR command as follows: \f3javadoc @bottom @packages\fR\&.
2597 .SH RUNNING\ THE\ JAVADOC\ COMMAND    
2598 The release number of the \f3javadoc\fR command can be determined with the \f3javadoc -J-version\fR option\&. The release number of the standard doclet appears in the output stream\&. It can be turned off with the \f3-quiet\fR option\&.
2599 .PP
2600 Use the public programmatic interface to call the \f3javadoc\fR command from within programs written in the Java language\&. This interface is in \f3com\&.sun\&.tools\&.javadoc\&.Main\fR (and the \f3javadoc\fR command is reentrant)\&. For more information, see The Standard Doclet at http://docs\&.oracle\&.com/javase/8/docs/technotes/guides/javadoc/standard-doclet\&.html#runningprogrammatically
2601 .PP
2602 The following instructions call the standard HTML doclet\&. To call a custom doclet, use the \f3-doclet\fR and \f3-docletpath\fR options\&. See Doclet Overview at http://docs\&.oracle\&.com/javase/8/docs/technotes/guides/javadoc/doclet/overview\&.html
2603 .SS SIMPLE\ EXAMPLES    
2604 You can run the \f3javadoc\fR command on entire packages or individual source files\&. Each package name has a corresponding directory name\&.
2605 .PP
2606 In the following examples, the source files are located at /home/src/java/awt/*\&.java\&. The destination directory is /home/html\&.
2607 .PP
2608 Document One or More Packages
2609 
2610 To document a package, the source files for that package must be located in a directory that has the same name as the package\&.
2611 .PP
2612 If a package name has several identifiers (separated by dots, such as \f3java\&.awt\&.color\fR), then each subsequent identifier must correspond to a deeper subdirectory (such as java/awt/color)\&.
2613 .PP
2614 You can split the source files for a single package among two such directory trees located at different places, as long as \f3-sourcepath\fR points to them both\&. For example, src1/java/awt/color and src2/java/awt/color\&.
2615 .PP
2616 You can run the \f3javadoc\fR command either by changing directories (with the \f3cd\fR command) or by using the \f3-sourcepath\fR option\&. The following examples illustrate both alternatives\&.
2617 .PP
2618 \f3Example 1 Recursive Run from One or More Packages\fR
2619 .PP
2620 This example uses \f3-sourcepath\fR so the \f3javadoc\fR command can be run from any directory and \f3-subpackages\fR (a new 1\&.4 option) for recursion\&. It traverses the subpackages of the java directory excluding packages rooted at \f3java\&.net\fR and \f3java\&.lang\fR\&. Notice this excludes \f3java\&.lang\&.ref\fR, a subpackage of \f3java\&.lang\fR\&. To also traverse down other package trees, append their names to the \f3-subpackages\fR argument, such as \f3java:javax:org\&.xml\&.sax\fR\&.
2621 .sp     
2622 .nf     
2623 \f3javadoc \-d /home/html \-sourcepath /home/src \-subpackages java \-exclude\fP
2624 .fi     
2625 .nf     
2626 \f3\fP
2627 .fi     
2628 .sp     
2629 \f3Example 2 Change to Root and Run Explicit Packages\fR
2630 .PP
2631 Change to the parent directory of the fully qualified package\&. Then, run the \f3javadoc\fR command with the names of one or more packages that you want to document:
2632 .sp     
2633 .nf     
2634 \f3cd /home/src/\fP
2635 .fi     
2636 .nf     
2637 \f3javadoc \-d /home/html java\&.awt java\&.awt\&.event\fP
2638 .fi     
2639 .nf     
2640 \f3\fP
2641 .fi     
2642 .sp     
2643 To also traverse down other package trees, append their names to the \f3-subpackages\fR argument, such as j\f3ava:javax:org\&.xml\&.sax\fR\&.
2644 .PP
2645 \f3Example 3 Run from Any Directory on Explicit Packages in One Tree\fR
2646 .PP
2647 In this case, it does not matter what the current directory is\&. Run the \f3javadoc\fR command and use the \f3-sourcepath\fR option with the parent directory of the top-level package\&. Provide the names of one or more packages that you want to document:
2648 .sp     
2649 .nf     
2650 \f3javadoc \-d /home/html \-sourcepath /home/src java\&.awt java\&.awt\&.event\fP
2651 .fi     
2652 .nf     
2653 \f3\fP
2654 .fi     
2655 .sp     
2656 \f3Example 4 Run from Any Directory on Explicit Packages in Multiple Trees\fR
2657 .PP
2658 Run the \f3javadoc\fR command and use the \f3-sourcepath\fR option with a colon-separated list of the paths to each tree\&'s root\&. Provide the names of one or more packages that you want to document\&. All source files for a specified package do not need to be located under a single root directory, but they must be found somewhere along the source path\&.
2659 .sp     
2660 .nf     
2661 \f3javadoc \-d /home/html \-sourcepath /home/src1:/home/src2 java\&.awt java\&.awt\&.event\fP
2662 .fi     
2663 .nf     
2664 \f3\fP
2665 .fi     
2666 .sp     
2667 The result is that all cases generate HTML-formatted documentation for the \f3public\fR and \f3protected\fR classes and interfaces in packages j\f3ava\&.awt\fR and \f3java\&.awt\&.even\fRt and save the HTML files in the specified destination directory\&. Because two or more packages are being generated, the document has three HTML frames: one for the list of packages, another for the list of classes, and the third for the main class pages\&.
2668 .PP
2669 Document One or More Classes
2670 
2671 The second way to run the \f3javadoc\fR command is to pass one or more source files\&. You can run \f3javadoc\fR either of the following two ways: by changing directories (with the \f3cd\fR command) or by fully specifying the path to the source files\&. Relative paths are relative to the current directory\&. The \f3-sourcepath\fR option is ignored when passing source files\&. You can use command-line wild cards, such as an asterisk (*), to specify groups of classes\&.
2672 .PP
2673 \f3Example 1 Change to the Source Directory\fR
2674 .PP
2675 Change to the directory that holds the source files\&. Then run the \f3javadoc\fR command with the names of one or more source files you want to document\&.
2676 .PP
2677 This example generates HTML-formatted documentation for the classes \f3Button\fR, \f3Canvas,\fR and classes that begin with \f3Graphics\fR\&. Because source files rather than package names were passed in as arguments to the \f3javadoc\fR command, the document has two frames: one for the list of classes and the other for the main page\&.
2678 .sp     
2679 .nf     
2680 \f3cd /home/src/java/awt\fP
2681 .fi     
2682 .nf     
2683 \f3javadoc \-d /home/html Button\&.java Canvas\&.java Graphics*\&.java\fP
2684 .fi     
2685 .nf     
2686 \f3\fP
2687 .fi     
2688 .sp     
2689 \f3Example 2 Change to the Root Directory of the Package\fR
2690 .PP
2691 This is useful for documenting individual source files from different subpackages off of the same root\&. Change to the package root directory, and supply the source files with paths from the root\&.
2692 .sp     
2693 .nf     
2694 \f3cd /home/src/\fP
2695 .fi     
2696 .nf     
2697 \f3javadoc \-d /home/html java/awt/Button\&.java java/applet/Applet\&.java\fP
2698 .fi     
2699 .nf     
2700 \f3\fP
2701 .fi     
2702 .sp     
2703 \f3Example 3 Document Files from Any Directory\fR
2704 .PP
2705 In this case, it does not matter what the current directory is\&. Run the \f3javadoc\fR command with the absolute path (or path relative to the current directory) to the source files you want to document\&.
2706 .sp     
2707 .nf     
2708 \f3javadoc \-d /home/html /home/src/java/awt/Button\&.java\fP
2709 .fi     
2710 .nf     
2711 \f3/home/src/java/awt/Graphics*\&.java\fP
2712 .fi     
2713 .nf     
2714 \f3\fP
2715 .fi     
2716 .sp     
2717 
2718 .PP
2719 Document Packages and Classes
2720 
2721 You can document entire packages and individual classes at the same time\&. Here is an example that mixes two of the previous examples\&. You can use the \f3-sourcepath\fR option for the path to the packages but not for the path to the individual classes\&.
2722 .sp     
2723 .nf     
2724 \f3javadoc \-d /home/html \-sourcepath /home/src java\&.awt\fP
2725 .fi     
2726 .nf     
2727 \f3/home/src/java/applet/Applet\&.java\fP
2728 .fi     
2729 .nf     
2730 \f3\fP
2731 .fi     
2732 .sp     
2733 .SS REAL-WORLD\ EXAMPLES    
2734 The following command-line and \f3makefile\fR versions of the \f3javadoc\fR command run on the Java platform APIs\&. It uses 180 MB of memory to generate the documentation for the 1500 (approximately) public and protected classes in the Java SE 1\&.2\&. Both examples use absolute paths in the option arguments, so that the same \f3javadoc\fR command can be run from any directory\&.
2735 .PP
2736 Command-Line Example
2737 
2738 The following command might be too long for some shells\&. You can use a command-line argument file (or write a shell script) to overcome this limitation\&.
2739 .PP
2740 In the example, \f3packages\fR is the name of a file that contains the packages to process, such as \f3java\&.applet\fR\f3java\&.lang\fR\&. None of the options should contain any newline characters between the single quotation marks\&. For example, if you copy and paste this example, then delete the newline characters from the \f3-bottom\fR option\&.
2741 .sp     
2742 .nf     
2743 \f3javadoc \-sourcepath /java/jdk/src/share/classes \e\fP
2744 .fi     
2745 .nf     
2746 \f3\-overview /java/jdk/src/share/classes/overview\&.html \e\fP
2747 .fi     
2748 .nf     
2749 \f3\-d /java/jdk/build/api \e\fP
2750 .fi     
2751 .nf     
2752 \f3\-use \e\fP
2753 .fi     
2754 .nf     
2755 \f3\-splitIndex \e\fP
2756 .fi     
2757 .nf     
2758 \f3\-windowtitle \&'Java Platform, Standard Edition 7 API Specification\&' \e\fP
2759 .fi     
2760 .nf     
2761 \f3\-doctitle \&'Java Platform, Standard Edition 7 API Specification\&' \e\fP
2762 .fi     
2763 .nf     
2764 \f3\-header \&'<b>Java\(tm SE 7</b>\&' \e\fP
2765 .fi     
2766 .nf     
2767 \f3\-bottom \&'<font size="\-1">\fP
2768 .fi     
2769 .nf     
2770 \f3<a href="http://bugreport\&.sun\&.com/bugreport/">Submit a bug or feature</a><br/>\fP
2771 .fi     
2772 .nf     
2773 \f3Copyright &copy; 1993, 2011, Oracle and/or its affiliates\&. All rights reserved\&.<br/>\fP
2774 .fi     
2775 .nf     
2776 \f3Oracle is a registered trademark of Oracle Corporation and/or its affiliates\&.\fP
2777 .fi     
2778 .nf     
2779 \f3Other names may be trademarks of their respective owners\&.</font>\&' \e\fP
2780 .fi     
2781 .nf     
2782 \f3\-group "Core Packages" "java\&.*:com\&.sun\&.java\&.*:org\&.omg\&.*" \e\fP
2783 .fi     
2784 .nf     
2785 \f3\-group "Extension Packages" "javax\&.*" \e\fP
2786 .fi     
2787 .nf     
2788 \f3\-J\-Xmx180m \e  \fP
2789 .fi     
2790 .nf     
2791 \f3@packages\fP
2792 .fi     
2793 .nf     
2794 \f3\fP
2795 .fi     
2796 .sp     
2797 
2798 .PP
2799 Programmatic Interface
2800 
2801 The Javadoc Access API enables the user to invoke the Javadoc tool directly from a Java application without executing a new process\&.
2802 .PP
2803 For example, the following statements are equivalent to the command \f3javadoc -d /home/html -sourcepath /home/src -subpackages java -exclude java\&.net:java\&.lang com\&.example\fR:
2804 .sp     
2805 .nf     
2806 \f3import javax\&.tools\&.DocumentationTool;\fP
2807 .fi     
2808 .nf     
2809 \f3import javax\&.tools\&.ToolProvider;\fP
2810 .fi     
2811 .nf     
2812 \f3\fP
2813 .fi     
2814 .nf     
2815 \f3public class JavaAccessSample{\fP
2816 .fi     
2817 .nf     
2818 \f3    public static void main(String[] args){\fP
2819 .fi     
2820 .nf     
2821 \f3        DocumentationTool javadoc = ToolProvider\&.getSystemDocumentationTool();\fP
2822 .fi     
2823 .nf     
2824 \f3        int rc = javadoc\&.run( null, null, null,\fP
2825 .fi     
2826 .nf     
2827 \f3                 "\-d", "/home/html",\fP
2828 .fi     
2829 .nf     
2830 \f3                 "\-sourcepath", "home/src",\fP
2831 .fi     
2832 .nf     
2833 \f3                 "\-subpackages", "java",\fP
2834 .fi     
2835 .nf     
2836 \f3                 "\-exclude", "java\&.net:java\&.lang",\fP
2837 .fi     
2838 .nf     
2839 \f3                 "com\&.example");\fP
2840 .fi     
2841 .nf     
2842 \f3     }\fP
2843 .fi     
2844 .nf     
2845 \f3 }\fP
2846 .fi     
2847 .nf     
2848 \f3\fP
2849 .fi     
2850 .sp     
2851 The first three arguments of the \f3run\fR method specify input, standard output, and standard error streams\&. \f3Null\fR is the default value for \f3System\&.in\fR, \f3System\&.out\fR, and \f3System\&.err\fR, respectively\&.
2852 .SS THE\ MAKEFILE\ EXAMPLE    
2853 This is an example of a GNU \f3makefile\fR\&. Single quotation marks surround \f3makefile\fR arguments\&. For an example of a Windows \f3makefile\fR, see the \f3makefiles\fR section of the Javadoc FAQ at http://www\&.oracle\&.com/technetwork/java/javase/documentation/index-137483\&.html#makefiles
2854 .sp     
2855 .nf     
2856 \f3javadoc \-sourcepath $(SRCDIR)              \e   /* Sets path for source files   */\fP
2857 .fi     
2858 .nf     
2859 \f3        \-overview $(SRCDIR)/overview\&.html  \e   /* Sets file for overview text  */\fP
2860 .fi     
2861 .nf     
2862 \f3        \-d /java/jdk/build/api             \e   /* Sets destination directory   */\fP
2863 .fi     
2864 .nf     
2865 \f3        \-use                               \e   /* Adds "Use" files             */\fP
2866 .fi     
2867 .nf     
2868 \f3        \-splitIndex                        \e   /* Splits index A\-Z             */\fP
2869 .fi     
2870 .nf     
2871 \f3        \-windowtitle $(WINDOWTITLE)        \e   /* Adds a window title          */\fP
2872 .fi     
2873 .nf     
2874 \f3        \-doctitle $(DOCTITLE)              \e   /* Adds a doc title             */\fP
2875 .fi     
2876 .nf     
2877 \f3        \-header $(HEADER)                  \e   /* Adds running header text     */\fP
2878 .fi     
2879 .nf     
2880 \f3        \-bottom $(BOTTOM)                  \e   /* Adds text at bottom          */\fP
2881 .fi     
2882 .nf     
2883 \f3        \-group $(GROUPCORE)                \e   /* 1st subhead on overview page */\fP
2884 .fi     
2885 .nf     
2886 \f3        \-group $(GROUPEXT)                 \e   /* 2nd subhead on overview page */\fP
2887 .fi     
2888 .nf     
2889 \f3        \-J\-Xmx180m                         \e   /* Sets memory to 180MB         */\fP
2890 .fi     
2891 .nf     
2892 \f3        java\&.lang java\&.lang\&.reflect        \e   /* Sets packages to document    */\fP
2893 .fi     
2894 .nf     
2895 \f3        java\&.util java\&.io java\&.net         \e\fP
2896 .fi     
2897 .nf     
2898 \f3        java\&.applet\fP
2899 .fi     
2900 .nf     
2901 \f3\fP
2902 .fi     
2903 .nf     
2904 \f3WINDOWTITLE = \&'Java\(tm SE 7 API Specification\&'\fP
2905 .fi     
2906 .nf     
2907 \f3DOCTITLE = \&'Java\(tm Platform Standard Edition 7 API Specification\&'\fP
2908 .fi     
2909 .nf     
2910 \f3HEADER = \&'<b>Java\(tm SE 7</font>\&'\fP
2911 .fi     
2912 .nf     
2913 \f3BOTTOM = \&'<font size="\-1">\fP
2914 .fi     
2915 .nf     
2916 \f3      <a href="http://bugreport\&.sun\&.com/bugreport/">Submit a bug or feature</a><br/>\fP
2917 .fi     
2918 .nf     
2919 \f3      Copyright &copy; 1993, 2011, Oracle and/or its affiliates\&. All rights reserved\&.<br/>\fP
2920 .fi     
2921 .nf     
2922 \f3      Oracle is a registered trademark of Oracle Corporation and/or its affiliates\&.\fP
2923 .fi     
2924 .nf     
2925 \f3      Other names may be trademarks of their respective owners\&.</font>\&'\fP
2926 .fi     
2927 .nf     
2928 \f3GROUPCORE = \&'"Core Packages" "java\&.*:com\&.sun\&.java\&.*:org\&.omg\&.*"\&'\fP
2929 .fi     
2930 .nf     
2931 \f3GROUPEXT  = \&'"Extension Packages" "javax\&.*"\&'\fP
2932 .fi     
2933 .nf     
2934 \f3SRCDIR = \&'/java/jdk/1\&.7\&.0/src/share/classes\&'\fP
2935 .fi     
2936 .nf     
2937 \f3\fP
2938 .fi     
2939 .sp     
2940 .SS NOTES    
2941 .TP 0.2i    
2942 \(bu
2943 If you omit the \f3-windowtitle\fR option, then the \f3javadoc\fR command copies the document title to the window title\&. The \f3-windowtitle\fR option text is similar to the the \f3-doctitle\fR option, but without HTML tags to prevent those tags from appearing as raw text in the window title\&.
2944 .TP 0.2i    
2945 \(bu
2946 If you omit the \f3-footer\fR option, then the \f3javadoc\fR command copies the header text to the footer\&.
2947 .TP 0.2i    
2948 \(bu
2949 Other important options you might want to use, but were not needed in the previous example, are the \f3-classpath\fR and \f3-link\fR options\&.
2950 .SH GENERAL\ TROUBLESHOOTING    
2951 .TP 0.2i    
2952 \(bu
2953 The \f3javadoc\fR command reads only files that contain valid class names\&. If the \f3javadoc\fR command is not correctly reading the contents of a file, then verify that the class names are valid\&. See Process Source Files\&.
2954 .TP 0.2i    
2955 \(bu
2956 See the Javadoc FAQ for information about common bugs and for troubleshooting tips at http://www\&.oracle\&.com/technetwork/java/javase/documentation/index-137483\&.html
2957 .SH ERRORS\ AND\ WARNINGS    
2958 Error and warning messages contain the file name and line number to the declaration line rather than to the particular line in the documentation comment\&.
2959 .PP
2960 For example, this message \f3error: cannot read: Class1\&.java\fR means that the \f3javadoc\fR command is trying to load \f3Class1\&.jav\fR\f3a\fR in the current directory\&. The class name is shown with its path (absolute or relative)\&.
2961 .SH ENVIRONMENT    
2962 .TP     
2963 CLASSPATH
2964 \f3CLASSPATH\fR is the environment variable that provides the path that the \f3javadoc\fR command uses to find user class files\&. This environment variable is overridden by the \f3-classpath\fR option\&. Separate directories with a semicolon for Windows or a colon for Oracle Solaris\&.
2965 
2966 \fIWindows example\fR: \f3\&.;C:\eclasses;C:\ehome\ejava\eclasses\fR
2967 
2968 \fIOracle Solaris example\fR: \f3\&.:/home/classes:/usr/local/java/classes\fR\&.
2969 .SH SEE\ ALSO    
2970 .TP 0.2i    
2971 \(bu
2972 javac(1)
2973 .TP 0.2i    
2974 \(bu
2975 java(1)
2976 .TP 0.2i    
2977 \(bu
2978 jdb(1)
2979 .TP 0.2i    
2980 \(bu
2981 javap(1)
2982 .SH RELATED\ DOCUMENTS    
2983 .TP 0.2i    
2984 \(bu
2985 Javadoc Technology at http://docs\&.oracle\&.com/javase/8/docs/technotes/guides/javadoc/index\&.html
2986 .TP 0.2i    
2987 \(bu
2988 How Classes Are Found http://docs\&.oracle\&.com/javase/8/docs/technotes/tools/findingclasses\&.html
2989 .TP 0.2i    
2990 \(bu
2991 How to Write Doc Comments for the Javadoc Tool http://www\&.oracle\&.com/technetwork/java/javase/documentation/index-137868\&.html
2992 .TP 0.2i    
2993 \(bu
2994 URL Memo, Uniform Resource Locators http://www\&.ietf\&.org/rfc/rfc1738\&.txt
2995 .TP 0.2i    
2996 \(bu
2997 HTML standard, HTML Document Representation (4197265 and 4137321) http://www\&.w3\&.org/TR/REC-html40/charset\&.html#h-5\&.2\&.2
2998 .RE
2999 .br
3000 'pl 8.5i
3001 'bp
< prev index next >