jdk/src/linux/doc/man/javadoc.1
author michaelm
Thu, 13 Jan 2011 11:01:30 +0000
changeset 7980 3af394bb6f59
parent 5865 47da38a8c0f0
child 9573 c02ff5a7c67b
permissions -rw-r--r--
6896088: URLClassLoader.close() apparently not working for JAR URLs on Windows Reviewed-by: chegar
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
     1
." Copyright (c) 1994, 2010, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
." DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
." This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
." under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
." published by the Free Software Foundation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
." This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
." ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
." FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
." version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
." accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
." You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
." 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
." Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
."
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2692
diff changeset
    18
." Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2692
diff changeset
    19
." or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2692
diff changeset
    20
." questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
."
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
    22
.TH javadoc 1 "02 Jun 2010"
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
    23
.SH "Name"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
javadoc \- The Java API Documentation Generator
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
Generates HTML pages of API documentation from Java source files. This document contains Javadoc examples for Sun Solaris.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
.SH "SYNOPSIS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
\f4javadoc\fP\f2\ [\ \fP\f2options\fP\f2\ ]\ [\ packagenames\ ]\ [\ sourcefilenames\ ]\ [\ \-subpackages\fP\ \f2pkg1:pkg2:...\fP\f2\ ]\ [\ \fP\f2@argfiles\fP\f2\ ]\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
Arguments can be in any order. See processing of Source Files for details on how the Javadoc tool determines which "\f2.java\fP" files to process.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
options 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
Command\-line options, as specified in this document. To see a typical use of javadoc options, see Real\-World Example. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
packagenames 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
A series of names of packages, separated by spaces, such as \f2java.lang\ java.lang.reflect\ java.awt\fP. You must separately specify each package you want to document. Wildcards are not allowed; use \-subpackages for recursion. The Javadoc tool uses \f2\-sourcepath\fP to look for these package names. See Example \- Documenting One or More Packages 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
sourcefilenames 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
A series of source file names, separated by spaces, each of which can begin with a path and contain a wildcard such as asterisk (*). The Javadoc tool will process every file whose name ends with ".java", and whose name, when stripped of that suffix, is actually a legal class name (see 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
\f2Identifiers\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#40625). Therefore, you can name files with dashes (such as \f2X\-Buffer\fP), or other illegal characters, to prevent them from being documented. This is useful for test files and template files The path that precedes the source file name determines where javadoc will look for the file. (The Javadoc tool does \f2not\fP use \f2\-sourcepath\fP to look for these source file names.) Relative paths are relative to the current directory, so passing in \f2Button.java\fP is identical to \f2./Button.java\fP. A source file name with an absolute path and a wildcard, for example, is \f2/home/src/java/awt/Graphics*.java\fP. See Example\ \-\ Documenting One or More Classes. You can also mix packagenames and sourcefilenames, as in Example\ \-\ Documenting Both Packages and Classes 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
\-subpackages pkg1:pkg2:... 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
Generates documentation from source files in the specified packages and recursively in their subpackages. An alternative to supplying packagenames or sourcefilenames. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
@argfiles 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
One or more files that contain a list of Javadoc options, packagenames and sourcefilenames in any order. Wildcards (*) and \f2\-J\fP options are not allowed in these files.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
.SH "DESCRIPTION"
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
The \f3Javadoc\fP tool parses the declarations and documentation comments in a set of Java source files and produces a corresponding set of HTML pages describing (by default) the public and protected classes, nested classes (but not anonymous inner classes), interfaces, constructors, methods, and fields. You can use it to generate the API (Application Programming Interface) documentation or the implementation documentation for a set of source files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
You can run the Javadoc tool on entire packages, individual source files, or both. When documenting entire packages, you can either use \f2\-subpackages\fP for traversing recursively down from a top\-level directory, or pass in an explicit list of package names. When documenting individual source files, you pass in a list of source (\f2.java\fP) filenames. Examples are given at the end of this document. How Javadoc processes source files is covered next.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
Processing of source files
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
The Javadoc tool processes files that end in "\f2.java\fP" plus other files described under Source Files. If you run the Javadoc tool by explicitly passing in individual source filenames, you can determine exactly which "\f2.java\fP" files are processed. However, that is not how most developers want to work, as it is simpler to pass in package names. The Javadoc tool can be run three ways without explicitly specifying the source filenames. You can (1) pass in package names, (2) use \f2\-subpackages\fP, and (3) use wildcards with source filenames (\f2*.java\fP). In these cases, the Javadoc tool processes a "\f2.java\fP" file only if it fulfills all of the following requirements:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
Its name, after stripping off the "\f2.java\fP" suffix, is actually a legal class name (see 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
\f2Identifiers\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#40625 for legal characters) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
Its directory path relative to the root of the source tree is actually a legal package name (after converting its separators to dots) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
Its package statement contains the legal package name (specified in the previous bullet) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
\f3Processing of links\fP \- During a run, the Javadoc tool automatically adds cross\-reference links to package, class and member names that are being documented as part of that run. Links appear in several places:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
Declarations (return types, argument types, field types) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
"See Also" sections generated from \f2@see\fP tags 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
In\-line text generated from \f2{@link}\fP tags 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
Exception names generated from \f2@throws\fP tags 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
"Specified by" links to members in interfaces and "Overrides" links to members in classes 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
Summary tables listing packages, classes and members 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
Package and class inheritance trees 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
The index 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
You can add hyperlinks to existing text for classes not included on the command line (but generated separately) by way of the \f2\-link\fP and \f2\-linkoffline\fP options.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
\f3Other processing details\fP \- The Javadoc tool produces one complete document each time it is run; it cannot do incremental builds \-\- that is, it cannot modify or \f2directly\fP incorporate results from previous runs of the Javadoc tool. However, it can link to results from other runs, as just mentioned.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
As implemented, the Javadoc tool requires and relies on the java compiler to do its job. The Javadoc tool calls part of \f2javac\fP to compile the declarations, ignoring the member implementation. It builds a rich internal representation of the classes, including the class hierarchy, and "use" relationships, then generates the HTML from that. The Javadoc tool also picks up user\-supplied documentation from documentation comments in the source code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
In fact, the Javadoc tool will run on \f2.java\fP source files that are pure stub files with no method bodies. This means you can write documentation comments and run the Javadoc tool in the earliest stages of design while creating the API, before writing the implementation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
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 Javadoc tool documents 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
\f2default constructors\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
http://java.sun.com/docs/books/jls/second_edition/html/names.doc.html#36154 (section 8.6.7 of \f2Java Language Specification\fP) that are present in the \f2.class\fP files but not in the source code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
In many cases, the Javadoc tool allows you to generate documentation for source files whose code is incomplete or erroneous. This is a benefit that enables you to generate documentation before all debugging and troubleshooting is done. For example, according to the \f2Java Language Specification\fP, a class that contains an abstract method should itself be declared abstract. The Javadoc tool does not check for this, and would proceed without a warning, whereas the javac compiler stops on this error. The Javadoc tool does do some primitive checking of doc comments. Use the DocCheck doclet to check the doc comments more thoroughly.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   152
When the Javadoc tool builds its internal structure for the documentation, it loads all referenced classes. Because of this, the Javadoc tool must be able to find all referenced classes, whether bootstrap classes, extensions, or user classes. For more about this, see 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   153
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   154
\f2How Classes Are Found\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   155
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   156
http://java.sun.com/javase/6/docs/technotes/tools/findingclasses.html. Generally speaking, classes you create must either be loaded as an extension or in the Javadoc tool's class path.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
Javadoc Doclets
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
You can customize the content and format of the Javadoc tool's output by using doclets. The Javadoc tool has a default "built\-in" doclet, called the standard doclet, that generates HTML\-formatted API documentation. You can modify or subclass the standard doclet, or write your own doclet to generate HTML, XML, MIF, RTF or whatever output format you'd like. Information about doclets and their use is at the following locations:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   167
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   168
\f2Javadoc Doclets\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   169
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   170
http://java.sun.com/javase/6/docs/technotes/guides/javadoc/index.html 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
The \f2\-doclet\fP command\-line option 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
When a custom doclet is not specified with the \f2\-doclet\fP command line option, the Javadoc tool will use the default standard doclet. The javadoc tool has several command line options that are available regardless of which doclet is being used. The standard doclet adds a supplementary set of command line options. Both sets of options are described below in the options section.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
Related Documentation and Doclets
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   186
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   187
\f2Javadoc Enhancements\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   188
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   189
http://java.sun.com/javase/6/docs/technotes/guides/javadoc/index.html for details about improvements added in Javadoc. 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
\f2Javadoc FAQ\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
http://java.sun.com/j2se/javadoc/faq/index.html for answers to common questions, information about Javadoc\-related tools, and workarounds for bugs. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
\f2How to Write Doc Comments for Javadoc\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html for more information about Sun conventions for writing documentation comments. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
\f2Requirements for Writing API Specifications\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   207
http://java.sun.com/j2se/javadoc/writingapispecs/index.html \- Standard requirements used when writing the Java SE Platform Specification. It can be useful whether you are writing API specifications in source file documentation comments or in other formats. It covers requirements for packages, classes, interfaces, fields and methods to satisfy testable assertions. 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
\f2Documentation Comment Specification\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
http://java.sun.com/docs/books/jls/first_edition/html/18.doc.html \- The original specification on documentation comments, Chapter 18, Documentation Comments, in the \f2Java Language Specification\fP, First Edition, by James Gosling, Bill Joy, and Guy Steele. (This chapter was removed from the second edition.)  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
\f2DocCheck Doclet\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
http://java.sun.com/javadoc/doccheck \- Checks doc comments in source files and generates a report listing the errors and irregularities it finds. It is part of the Sun Doc Check Utilities. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
\f2MIF Doclet\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
http://java.sun.com/javadoc/mifdoclet \- Can automate the generation of API documentation in MIF, FrameMaker and PDF formats. MIF is Adobe FrameMaker's interchange format. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
Terminology
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
The terms \f2documentation comment\fP, \f2doc comment\fP, \f2main description\fP, \f2tag\fP, \f2block tag\fP, and \f2in\-line tag\fP are described at Documentation Comments. These other terms have specific meanings within the context of the Javadoc tool:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
generated document 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
The document generated by the javadoc tool from the doc comments in Java source code. The default generated document is in HTML and is created by the standard doclet. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
name 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
A name of a program element written in the Java Language \-\- that is, the name of a package, class, interface, field, constructor or method. A name can be fully\-qualified, such as \f2java.lang.String.equals(java.lang.Object)\fP, or partially\-qualified, such as \f2equals(Object)\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
documented classes 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
The classes and interfaces for which detailed documentation is generated during a javadoc run. To be documented, the source files must be available, their source filenames or package names must be passed into the javadoc command, and they must not be filtered out by their access modifier (public, protected, package\-private or private). We also refer to these as the classes included in the javadoc output, or the \f2included classes\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
included classes 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
Classes and interfaces whose details are documented during a run of the Javadoc tool. Same as \f2documented classes\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
excluded classes 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
Classes and interfaces whose details are \f2not\fP documented during a run of the Javadoc tool. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
referenced classes 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
The classes and interfaces that are explicitly referred to in the definition (implementation) or doc comments of the documented classes and interfaces. Examples of references include return type, parameter type, cast type, extended class, implemented interface, imported classes, classes used in method bodies, @see, {@link}, {@linkplain}, and {@inheritDoc} tags. (Notice this definition has changed since 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
\f21.3\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
http://java.sun.com/j2se/1.3/docs/tooldocs/solaris/javadoc.html#referencedclasses.) When the Javadoc tool is run, it should load into memory all of the referenced classes in javadoc's bootclasspath and classpath. (The Javadoc tool prints a "Class not found" warning for referenced classes not found.) The Javadoc tool can derive enough information from the .class files to determine their existence and the fully\-qualified names of their members. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   263
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   264
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   265
external referenced classes 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   266
The referenced classes whose documentation is not being generated during a javadoc run. In other words, these classes are not passed into the Javadoc tool on the command line. Links in the generated documentation to those classes are said to be \f2external references\fP or \f2external links\fP. For example, if you run the Javadoc tool on only the \f2java.awt\fP package, then any class in \f2java.lang\fP, such as \f2Object\fP, is an external referenced class. External referenced classes can be linked to using the \f2\-link\fP and \f2\-linkoffline\fP options. An important property of an external referenced class is that its source comments are normally not available to the Javadoc run. In this case, these comments cannot be inherited. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   267
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   268
90ce3da70b43 Initial load
duke
parents:
diff changeset
   269
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   270
.SH "SOURCE FILES"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   271
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   272
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
The Javadoc tool will generate output originating from four different types of "source" files: Java language source files for classes (\f2.java\fP), package comment files, overview comment files, and miscellaneous unprocessed files. This section also covers test files and template files that can also be in the source tree, but which you want to be sure not to document.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   274
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   275
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
Class Source Code Files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   277
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   278
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   279
Each class or interface and its members can have their own documentation comments, contained in a \f2.java\fP file. For more details about these doc comments, see Documentation Comments.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   281
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   282
Package Comment Files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   284
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   285
Each package can have its own documentation comment, contained in its own "source" file, that the Javadoc tool will merge into the package summary page that it generates. You typically include in this comment any documentation that applies to the entire package.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   286
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   287
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   288
To create a package comment file, you have a choice of two files to place your comments:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   289
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   291
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   292
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   293
\f2package\-info.java\fP \- Can contain a package declaration, package annotations, package comments and Javadoc tags. This file is generally preferred over package.html. 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   294
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   295
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   296
\f2package.html\fP \- Can contain only package comments and Javadoc tags, no package annotations. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   297
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   298
90ce3da70b43 Initial load
duke
parents:
diff changeset
   299
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   301
A package may have a single \f2package.html\fP file or a single \f2package\-info.java\fP file but not both. Place either file in the package directory in the source tree along with your \f2.java\fP files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   302
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   303
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   304
\f4package\-info.java\fP \- This file can contain a package comment of the following structure \-\- the comment is placed before the package declaration:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   305
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   306
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
File: \f2java/applet/package\-info.java\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   308
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   309
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
.TS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   311
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   312
.de 35
90ce3da70b43 Initial load
duke
parents:
diff changeset
   313
.ps \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
.vs \n(.vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
.in \n(.iu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   316
.if \n(.u .fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   317
.if \n(.j .ad
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
.if \n(.j=0 .na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   319
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
   320
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
.nr #~ 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
.if n .nr #~ 0.6n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   323
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
   324
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   325
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   326
.nr 33 \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   327
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
   328
.nr 34 \n(.lu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   329
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
   330
.am 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
   331
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   332
.di a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
   333
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
.ll \n(34u*1u/2u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
.if \n(.l<\n(80 .ll \n(80u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   339
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   343
 * Provides the classes necessary to create an
90ce3da70b43 Initial load
duke
parents:
diff changeset
   344
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   345
 * applet and the classes an applet uses 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   346
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   347
 * to communicate with its applet context.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   348
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
 * <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   350
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   351
 * The applet framework involves two entities:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   353
 * the applet and the applet context.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   354
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   355
 * An applet is an embeddable window (see the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   356
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   357
 * {@link java.awt.Panel} class) with a few extra
90ce3da70b43 Initial load
duke
parents:
diff changeset
   358
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   359
 * methods that the applet context can use to 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   360
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   361
 * initialize, start, and stop the applet.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   362
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   364
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   365
 * @since 1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   366
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   367
 * @see java.awt
90ce3da70b43 Initial load
duke
parents:
diff changeset
   368
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   369
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   370
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
package java.lang.applet;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   372
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   373
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   374
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   375
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   376
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
   377
.nr a| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
   378
.nr a- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
   380
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   381
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
   382
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   383
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   384
.nr 80 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   385
.80
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
   387
.nr 38 \n(a-
90ce3da70b43 Initial load
duke
parents:
diff changeset
   388
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
   389
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
   390
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   391
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   392
.nr 38 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   393
.nr 79 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   394
.nr 40 \n(79+(0*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   395
.nr 80 +\n(40
90ce3da70b43 Initial load
duke
parents:
diff changeset
   396
.nr TW \n(80
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
   397
.if t .if \n(TW>\n(.li .tm Table at line 352 file Input is too wide - \n(TW units
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   398
.fc  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   399
.nr #T 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
.nr #a 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   401
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
   402
.de T#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   403
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
   404
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
   406
.nr ## -1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
   407
.ls 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   408
.ls
90ce3da70b43 Initial load
duke
parents:
diff changeset
   409
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
   410
.ec
90ce3da70b43 Initial load
duke
parents:
diff changeset
   411
.ne \n(a|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   412
.if (\n(a|+\n(#^-1v)>\n(#- .nr #- +(\n(a|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   413
.ta \n(80u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
   415
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
   416
\&\h'|\n(40u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
   417
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
   418
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
   420
.nr 37 \n(40u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   421
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   422
.a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
   423
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   424
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   425
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   426
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   427
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   428
.nr T. 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   429
.T# 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   430
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
   431
.rm a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
   432
.TE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   433
.if \n-(b.=0 .nr c. \n(.c-\n(d.-42
90ce3da70b43 Initial load
duke
parents:
diff changeset
   434
90ce3da70b43 Initial load
duke
parents:
diff changeset
   435
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   436
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   437
Note that while the comment separators \f2/**\fP and \f2/*\fP must be present, the leading asterisks on the intermediate lines can be omitted.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   438
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   439
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   440
\f4package.html\fP \- This file can contain a package comment of the following structure \-\- the comment is placed in the \f2<body>\fP element:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   441
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   442
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   443
File: \f2java/applet/package.html\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   444
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   445
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   446
.TS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   448
.de 35
90ce3da70b43 Initial load
duke
parents:
diff changeset
   449
.ps \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   450
.vs \n(.vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
.in \n(.iu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
.if \n(.u .fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   453
.if \n(.j .ad
90ce3da70b43 Initial load
duke
parents:
diff changeset
   454
.if \n(.j=0 .na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   455
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
   456
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   457
.nr #~ 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   458
.if n .nr #~ 0.6n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   459
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
   460
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   461
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   462
.nr 33 \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
   463
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
   464
.nr 34 \n(.lu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   465
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
   466
.am 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
   467
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   468
.di a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
   469
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
   470
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
   471
.ll \n(34u*1u/2u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   472
.if \n(.l<\n(80 .ll \n(80u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   473
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   474
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   475
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   476
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   477
<HTML>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   478
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   479
<BODY>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   480
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   481
Provides the classes necessary to create an applet and the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   482
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   483
classes an applet uses to communicate with its applet context.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   484
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   485
<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   486
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   487
The applet framework involves two entities: the applet
90ce3da70b43 Initial load
duke
parents:
diff changeset
   488
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   489
and the applet context. An applet is an embeddable
90ce3da70b43 Initial load
duke
parents:
diff changeset
   490
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   491
window (see the {@link java.awt.Panel} class) with a
90ce3da70b43 Initial load
duke
parents:
diff changeset
   492
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   493
few extra methods that the applet context can use to
90ce3da70b43 Initial load
duke
parents:
diff changeset
   494
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   495
initialize, start, and stop the applet. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   496
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   497
90ce3da70b43 Initial load
duke
parents:
diff changeset
   498
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   499
@since 1.0 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   500
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   501
@see java.awt
90ce3da70b43 Initial load
duke
parents:
diff changeset
   502
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   503
</BODY>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   504
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   505
</HTML>
90ce3da70b43 Initial load
duke
parents:
diff changeset
   506
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   507
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   508
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   509
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   510
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
   511
.nr a| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
   512
.nr a- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   513
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
   514
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
   515
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
   516
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   517
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   518
.nr 80 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   519
.80
90ce3da70b43 Initial load
duke
parents:
diff changeset
   520
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
   521
.nr 38 \n(a-
90ce3da70b43 Initial load
duke
parents:
diff changeset
   522
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
   523
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
   524
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   525
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   526
.nr 38 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
   527
.nr 79 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
   528
.nr 40 \n(79+(0*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   529
.nr 80 +\n(40
90ce3da70b43 Initial load
duke
parents:
diff changeset
   530
.nr TW \n(80
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
   531
.if t .if \n(TW>\n(.li .tm Table at line 405 file Input is too wide - \n(TW units
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   532
.fc  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   533
.nr #T 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   534
.nr #a 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   535
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
   536
.de T#
90ce3da70b43 Initial load
duke
parents:
diff changeset
   537
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
   538
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   539
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
   540
.nr ## -1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
   541
.ls 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   542
.ls
90ce3da70b43 Initial load
duke
parents:
diff changeset
   543
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
   544
.ec
90ce3da70b43 Initial load
duke
parents:
diff changeset
   545
.ne \n(a|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
   546
.if (\n(a|+\n(#^-1v)>\n(#- .nr #- +(\n(a|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   547
.ta \n(80u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   548
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
   549
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
   550
\&\h'|\n(40u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
   551
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
   552
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
   553
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
   554
.nr 37 \n(40u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   555
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   556
.a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
   557
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   558
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   559
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
   560
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
   561
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
   562
.nr T. 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   563
.T# 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   564
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
   565
.rm a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
   566
.TE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   567
.if \n-(b.=0 .nr c. \n(.c-\n(d.-40
90ce3da70b43 Initial load
duke
parents:
diff changeset
   568
90ce3da70b43 Initial load
duke
parents:
diff changeset
   569
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   570
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   571
Notice this is just a normal HTML file and does not include a package declaration. The content of the package comment file is written in HTML, like all other comments, with one exception: The documentation comment should not include the comment separators \f2/**\fP and \f2*/\fP or leading asterisks. When writing the comment, you should make the first sentence a summary about the package, and not put a title or any other text between \f2<body>\fP and the first sentence. You can include package tags; as with any documentation comment, all block tags must appear after the main description. If you add a \f2@see\fP tag in a package comment file, it must have a fully\-qualified name. For more details, see the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   572
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   573
\f2example of \fP\f2package.html\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   574
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   575
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html#packagecomments.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   576
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   577
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   578
\f3Processing of package comment file\fP \- When the Javadoc tool runs, it will automatically look for the package comment file; if found, the Javadoc tool does the following:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   579
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   580
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   581
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   582
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   583
Copies the comment for processing. (For \f2package.html\fP, copies all content between \f2<body>\fP and \f2</body>\fP HTML tags. You can include a \f2<head>\fP section to put a \f2<title>\fP, source file copyright statement, or other information, but none of these will appear in the generated documentation.) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   584
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   585
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   586
Processes any package tags that are present. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   587
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   588
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   589
Inserts the processed text at the bottom of the package summary page it generates, as shown in 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   590
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   591
\f2Package Summary\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   592
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   593
http://java.sun.com/javase/6/docs/api/java/applet/package\-summary.html. 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   594
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   595
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   596
Copies the first sentence of the package comment to the top of the package summary page. It also adds the package name and this first sentence to the list of packages on the overview page, as shown in 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   597
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   598
\f2Overview Summary\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   599
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   600
http://java.sun.com/javase/6/docs/api/overview\-summary.html. The end\-of\-sentence is determined by the same rules used for the end of the first sentence of class and member main descriptions. 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   601
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   602
90ce3da70b43 Initial load
duke
parents:
diff changeset
   603
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   604
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   605
Overview Comment File
90ce3da70b43 Initial load
duke
parents:
diff changeset
   606
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   607
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   608
Each application or set of packages that you are documenting can have its own overview documentation comment, kept in its own "source" file, that the Javadoc tool will merge into the overview page that it generates. You typically include in this comment any documentation that applies to the entire application or set of packages.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   609
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   610
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   611
To create an overview comment file, you can name the file anything you want, typically \f4overview.html\fP and place it anywhere, typically at the top level of the source tree. For example, if the source files for the \f2java.applet\fP package are contained in \f2/home/user/src/java/applet\fP directory, you could create an overview comment file at \f2/home/user/src/overview.html\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   612
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   613
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   614
Notice you can have multiple overview comment files for the same set of source files, in case you want to run javadoc multiple times on different sets of packages. For example, you could run javadoc once with \-private 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.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   615
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   616
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   617
The content of the overview comment file is one big documentation comment, written in HTML, like the package comment file described previously. See that description for details. To re\-iterate, when writing the comment, you should make the first sentence a summary about the application or set of packages, and not put a title or any other text between \f2<body>\fP and the first sentence. You can include overview tags; as with any documentation comment, all tags except in\-line tags, such as \f2{@link}\fP, must appear after the main description. If you add a \f2@see\fP tag, it must have a fully\-qualified name.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   618
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   619
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   620
When you run the Javadoc tool, you specify the overview comment file name with the \-overview option. The file is then processed similar to that of a package comment file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   621
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   622
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   623
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   624
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   625
Copies all content between \f2<body>\fP and \f2</body>\fP tags for processing. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   626
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   627
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   628
Processes any overview tags that are present. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   629
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   630
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   631
Inserts the processed text at the bottom of the overview page it generates, as shown in 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   632
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   633
\f2Overview Summary\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   634
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   635
http://java.sun.com/javase/6/docs/api/overview\-summary.html. 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   636
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   637
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   638
Copies the first sentence of the overview comment to the top of the overview summary page. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   639
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   640
90ce3da70b43 Initial load
duke
parents:
diff changeset
   641
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   642
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   643
Miscellaneous Unprocessed Files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   644
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   645
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   646
You can also include in your source any miscellaneous files that you want the Javadoc tool to copy to the destination directory. These typically includes graphic files, example Java source (.java) and class (.class) files, and self\-standing HTML files whose content would overwhelm the documentation comment of a normal Java source file.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   647
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   648
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   649
To include unprocessed files, put them in a directory called \f4doc\-files\fP which can be a subdirectory of any package directory that contains source files. You can have one such subdirectory for each package. You might include images, example code, source files, .class files, applets and HTML files. For example, if you want to include the image of a button \f2button.gif\fP in the \f2java.awt.Button\fP class documentation, you place that file in the \f2/home/user/src/java/awt/doc\-files/\fP directory. Notice the \f2doc\-files\fP directory should not be located at \f2/home/user/src/java/doc\-files\fP because \f2java\fP is not a package \-\- that is, it does not directly contain any source files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   650
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   651
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   652
All links to these unprocessed files must be hard\-coded, because the Javadoc tool does not look at the files \-\- it simply copies the directory and all its contents to the destination. For example, the link in the \f2Button.java\fP doc comment might look like:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   653
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   654
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   655
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   656
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   657
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   658
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   659
     * This button looks like this: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   660
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   661
     * <img src="doc\-files/Button.gif">
90ce3da70b43 Initial load
duke
parents:
diff changeset
   662
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   663
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   664
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   665
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   666
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   667
90ce3da70b43 Initial load
duke
parents:
diff changeset
   668
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   669
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   670
Test Files and Template Files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   671
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   672
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   673
Some developers have indicated they want to store test files and templates files in the source tree near their corresponding source files. That is, they would like to put them in the same directory, or a subdirectory, of those source files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   674
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   675
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   676
If you run the Javadoc tool by explicitly passing in individual source filenames, you can deliberately omit test and templates files and prevent them from being processed. However, if you are passing in package names or wildcards, you need to follow certain rules to ensure these test files and templates files are not processed.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   677
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   678
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   679
Test files differ from template files in that the former are legal, compilable source files, while the latter are not, but may end with ".java".
90ce3da70b43 Initial load
duke
parents:
diff changeset
   680
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   681
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   682
\f3Test files\fP \- Often developers want to put compilable, runnable test files for a given package in the \f2same\fP directory as the source files for that package. But they want the test files to belong to a package other than the source file package, such as the unnamed package (so the test files have no package statement or a different package statement from the source). In this scenario, when the source is being documented by specifying its package name specified on the command line, the test files will cause warnings or errors. You need to put such test files in a subdirectory. For example, if you want to add test files for source files in \f2com.package1\fP, put them in a subdirectory that would be an invalid package name (because it contains a hyphen):
90ce3da70b43 Initial load
duke
parents:
diff changeset
   683
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   684
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   685
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   686
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   687
    com/package1/test\-files/
90ce3da70b43 Initial load
duke
parents:
diff changeset
   688
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   689
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   690
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   691
90ce3da70b43 Initial load
duke
parents:
diff changeset
   692
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   693
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   694
The test directory will be skipped by the Javadoc tool with no warnings.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   695
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   696
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   697
If your test files contain doc comments, you can set up a separate run of the Javadoc tool to produce documentation of the test files by passing in their test source filenames with wildcards, such as \f2com/package1/test\-files/*.java\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   698
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   699
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   700
\f3Templates for source files\fP \- Template files have names that often end in ".java" and are not compilable. If you have a template for a source file that you want to keep in the source directory, you can name it with a dash (such as \f2Buffer\-Template.java\fP), or any other illegal Java character, to prevent it from being processed. This relies on the fact that the Javadoc tool will only process source files whose name, when stripped of the ".java" suffix, is actually a legal class name (see 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   701
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
   702
\f2Identifiers\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
   703
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   704
http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#40625).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   705
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   706
.SH "GENERATED FILES"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   707
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   708
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   709
By default, javadoc uses a standard doclet that generates HTML\-formatted documentation. This doclet generates the following kinds of files (where each HTML "page" corresponds to a separate file). Note that javadoc generates files with two types of names: those named after classes/interfaces, and those that are not (such as \f2package\-summary.html\fP). Files in the latter group contain hyphens to prevent filename conflicts with those in the former group.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   710
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   711
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   712
\f3Basic Content Pages\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   713
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   714
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   715
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   716
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   717
One \f3class or interface page\fP (\f2classname\fP\f2.html\fP) for each class or interface it is documenting.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   718
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   719
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   720
One \f3package page\fP (\f2package\-summary.html\fP) for each package it is documenting. The Javadoc tool will include any HTML text provided in a file named \f2package.html\fP or \f2package\-info.java\fP in the package directory of the source tree.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   721
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   722
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   723
One \f3overview page\fP (\f2overview\-summary.html\fP) for the entire set of packages. This is the front page of the generated document. The Javadoc tool will include any HTML text provided in a file specified with the \f2\-overview\fP option. Note that this file is created only if you pass into javadoc two or more package names. For further explanation, see HTML Frames.) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   724
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   725
90ce3da70b43 Initial load
duke
parents:
diff changeset
   726
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   727
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   728
\f3Cross\-Reference Pages\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   729
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   730
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   731
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   732
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   733
One \f3class hierarchy page for the entire set of packages\fP (\f2overview\-tree.html\fP). To view this, click on "Overview" in the navigation bar, then click on "Tree".  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   734
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   735
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   736
One \f3class hierarchy page for each package\fP (\f2package\-tree.html\fP) To view this, go to a particular package, class or interface page; click "Tree" to display the hierarchy for that package.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   737
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   738
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   739
One \f3"use" page\fP for each package (\f2package\-use.html\fP) and a separate one for each class and interface (\f2class\-use/\fP\f2classname\fP\f2.html\fP). This page describes what packages, classes, methods, constructors and fields use any part of the given class, interface or package. 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. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   740
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   741
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   742
A \f3deprecated API page\fP (\f2deprecated\-list.html\fP) listing all deprecated names. (A deprecated name is not recommended for use, generally due to improvements, and a replacement name is usually given. Deprecated APIs may be removed in future implementations.)  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   743
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   744
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   745
A \f3constant field values page\fP (\f2constant\-values.html\fP) for the values of static fields.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   746
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   747
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   748
A \f3serialized form page\fP (\f2serialized\-form.html\fP) for information about serializable and externalizable classes. Each such class has a description of its serialization fields and methods. This information is of interest to re\-implementors, not to developers using the API. While there is no link in the navigation bar, you can get to this information by going to any serialized class and clicking "Serialized Form" in the "See also" section of the class comment. The standard doclet automatically generates a serialized form page: any class (public or non\-public) that implements Serializable is included, along with \f2readObject\fP and \f2writeObject\fP methods, the fields that are serialized, and the doc comments from the \f2@serial\fP, \f2@serialField\fP, and \f2@serialData\fP tags. Public serializable classes can be excluded by marking them (or their package) with \f2@serial exclude\fP, and package\-private serializable classes can be included by marking them (or their package) with \f2@serial include\fP. As of 1.4, you can generate the complete serialized form for public and private classes by running javadoc \f2without\fP specifying the \f2\-private\fP option.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   749
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   750
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   751
An \f3index\fP (\f2index\-*.html\fP) of all class, interface, constructor, field and method names, alphabetically arranged. This is internationalized for Unicode and can be generated as a single file or as a separate file for each starting character (such as A\-Z for English). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   752
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   753
90ce3da70b43 Initial load
duke
parents:
diff changeset
   754
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   755
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   756
\f3Support Files\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   757
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   758
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   759
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   760
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   761
A \f3help page\fP (\f2help\-doc.html\fP) that describes the navigation bar and the above pages. You can provide your own custom help file to override the default using \f2\-helpfile\fP.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   762
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   763
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   764
One \f3index.html file\fP which creates the HTML frames for display. This is the file you load to display the front page with frames. This file itself contains no text content.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   765
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   766
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   767
Several \f3frame files\fP (\f2*\-frame.html\fP) containing lists of packages, classes and interfaces, used when HTML frames are being displayed.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   768
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   769
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   770
A \f3package list\fP file (\f2package\-list\fP), used by the \f2\-link\fP and \f2\-linkoffline\fP options. This is a text file, not HTML, and is not reachable through any links.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   771
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   772
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   773
A \f3style sheet\fP file (\f2stylesheet.css\fP) that controls a limited amount of color, font family, font size, font style and positioning on the generated pages.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
   774
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   775
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   776
A \f3doc\-files\fP directory that holds any image, example, source code or other files that you want copied to the destination directory. These files are not processed by the Javadoc tool in any manner \-\- that is, any javadoc tags in them will be ignored. This directory is not generated unless it exists in the source tree. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   777
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   778
90ce3da70b43 Initial load
duke
parents:
diff changeset
   779
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   780
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   781
\f3HTML Frames\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   782
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   783
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   784
The Javadoc tool will generate either two or three HTML frames, as shown in the figure below. It creates the minimum necessary number of frames by omitting the list of packages if there is only one package (or no packages). That is, when you pass a single package name or source files (*.java) belonging to a single package as arguments into the javadoc command, it will create only one frame (C) in the left\-hand column \-\- the list of classes. When you pass into javadoc two or more package names, it creates a third frame (P) listing all packages, as well as an overview page (Detail). This overview page has the filename \f2overview\-summary.html\fP. Thus, this file is created only if you pass in two or more package names. You can bypass frames by clicking on the "No Frames" link or entering at overview\-summary.html.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   785
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   786
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   787
If you are unfamiliar with HTML frames, you should be aware that frames can have \f2focus\fP for printing and scrolling. To give a frame focus, click on it. Then on many browsers the arrow keys and page keys will scroll that frame, and the print menu command will print it.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   788
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   789
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   790
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   791
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   792
              \-\-\-\-\-\-\-\-\-\-\-\-                  \-\-\-\-\-\-\-\-\-\-\-\-
90ce3da70b43 Initial load
duke
parents:
diff changeset
   793
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   794
              |C| Detail |                  |P| Detail |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   795
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   796
              | |        |                  | |        |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   797
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   798
              | |        |                  |\-|        |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   799
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   800
              | |        |                  |C|        |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   801
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   802
              | |        |                  | |        |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   803
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   804
              | |        |                  | |        |
90ce3da70b43 Initial load
duke
parents:
diff changeset
   805
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   806
              \-\-\-\-\-\-\-\-\-\-\-\-                  \-\-\-\-\-\-\-\-\-\-\-\-
90ce3da70b43 Initial load
duke
parents:
diff changeset
   807
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   808
             javadoc *.java           javadoc java.lang java.awt
90ce3da70b43 Initial load
duke
parents:
diff changeset
   809
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   810
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   811
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   812
90ce3da70b43 Initial load
duke
parents:
diff changeset
   813
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   814
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   815
Load one of the following two files as the starting page depending on whether you want HTML frames or not:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   816
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   817
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   818
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   819
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   820
\f2index.html\fP (for frames) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   821
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   822
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
   823
\f2overview\-summary.html\fP (for no frames) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   824
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   825
90ce3da70b43 Initial load
duke
parents:
diff changeset
   826
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   827
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   828
\f3Generated File Structure\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   829
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   830
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   831
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.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   832
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   833
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   834
For example, the document generated for the class \f2java.applet.Applet\fP class would be located at \f2java/applet/Applet.html\fP. The file structure for the java.applet package follows, given that the destination directory is named \f2apidocs\fP. All files that contain the word "frame" appear in the upper\-left or lower\-left frames, as noted. All other HTML files appear in the right\-hand frame.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   835
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   836
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   837
90ce3da70b43 Initial load
duke
parents:
diff changeset
   838
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   839
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   840
NOTE \- Directories are shown in \f3bold\fP. The asterisks (\f2*\fP) indicate the files and directories that are \f2omitted\fP when the arguments to javadoc are source filenames (*.java) rather than package names. Also when arguments are source filenames, \f2package\-list\fP is created but is empty. The doc\-files directory will not be created in the destination unless it exists in the source tree.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   841
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   842
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
   843
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   844
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   845
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   846
90ce3da70b43 Initial load
duke
parents:
diff changeset
   847
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   848
\fP\f3apidocs\fP                             Top directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   849
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   850
   index.html                       Initial page that sets up HTML frames
90ce3da70b43 Initial load
duke
parents:
diff changeset
   851
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   852
 * overview\-summary.html            Lists all packages with first sentence summaries
90ce3da70b43 Initial load
duke
parents:
diff changeset
   853
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   854
   overview\-tree.html               Lists class hierarchy for all packages
90ce3da70b43 Initial load
duke
parents:
diff changeset
   855
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   856
   deprecated\-list.html             Lists deprecated API for all packages
90ce3da70b43 Initial load
duke
parents:
diff changeset
   857
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   858
   constant\-values.html             Lists values of static fields for all packages
90ce3da70b43 Initial load
duke
parents:
diff changeset
   859
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   860
   serialized\-form.html             Lists serialized form for all packages
90ce3da70b43 Initial load
duke
parents:
diff changeset
   861
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   862
 * overview\-frame.html              Lists all packages, used in upper\-left frame
90ce3da70b43 Initial load
duke
parents:
diff changeset
   863
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   864
   allclasses\-frame.html            Lists all classes for all packages, used in lower\-left frame
90ce3da70b43 Initial load
duke
parents:
diff changeset
   865
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   866
   help\-doc.html                    Lists user help for how these pages are organized
90ce3da70b43 Initial load
duke
parents:
diff changeset
   867
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   868
   index\-all.html                   Default index created without \-splitindex option
90ce3da70b43 Initial load
duke
parents:
diff changeset
   869
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   870
   \f3index\-files\fP                      Directory created with \-splitindex option
90ce3da70b43 Initial load
duke
parents:
diff changeset
   871
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   872
       index\-<number>.html          Index files created with \-splitindex option
90ce3da70b43 Initial load
duke
parents:
diff changeset
   873
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   874
   package\-list                     Lists package names, used only for resolving external refs
90ce3da70b43 Initial load
duke
parents:
diff changeset
   875
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   876
   stylesheet.css                   HTML style sheet for defining fonts, colors and positions
90ce3da70b43 Initial load
duke
parents:
diff changeset
   877
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   878
   \f3java\fP                             Package directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   879
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   880
       \f3applet\fP                       Subpackage directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   881
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   882
            Applet.html             Page for Applet class
90ce3da70b43 Initial load
duke
parents:
diff changeset
   883
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   884
            AppletContext.html      Page for AppletContext interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   885
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   886
            AppletStub.html         Page for AppletStub interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   887
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   888
            AudioClip.html          Page for AudioClip interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   889
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   890
          * package\-summary.html    Lists classes with first sentence summaries for this package
90ce3da70b43 Initial load
duke
parents:
diff changeset
   891
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   892
          * package\-frame.html      Lists classes in this package, used in lower left\-hand frame
90ce3da70b43 Initial load
duke
parents:
diff changeset
   893
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   894
          * package\-tree.html       Lists class hierarchy for this package
90ce3da70b43 Initial load
duke
parents:
diff changeset
   895
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   896
            package\-use             Lists where this package is used
90ce3da70b43 Initial load
duke
parents:
diff changeset
   897
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   898
            \f3doc\-files\fP               Directory holding image and example files
90ce3da70b43 Initial load
duke
parents:
diff changeset
   899
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   900
            \f3class\-use\fP               Directory holding pages API is used
90ce3da70b43 Initial load
duke
parents:
diff changeset
   901
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   902
                Applet.html         Page for uses of Applet class
90ce3da70b43 Initial load
duke
parents:
diff changeset
   903
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   904
                AppletContext.html  Page for uses of AppletContext interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   905
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   906
                AppletStub.html     Page for uses of AppletStub interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   907
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   908
                AudioClip.html      Page for uses of AudioClip interface
90ce3da70b43 Initial load
duke
parents:
diff changeset
   909
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   910
   \f3src\-html\fP                         Source code directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   911
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   912
       \f3java\fP                         Package directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   913
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   914
           \f3applet\fP                   Subpackage directory
90ce3da70b43 Initial load
duke
parents:
diff changeset
   915
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   916
                Applet.html         Page for Applet source code
90ce3da70b43 Initial load
duke
parents:
diff changeset
   917
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   918
                AppletContext.html  Page for AppletContext source code
90ce3da70b43 Initial load
duke
parents:
diff changeset
   919
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   920
                AppletStub.html     Page for AppletStub source code
90ce3da70b43 Initial load
duke
parents:
diff changeset
   921
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   922
                AudioClip.html      Page for AudioClip source code
90ce3da70b43 Initial load
duke
parents:
diff changeset
   923
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   924
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   925
90ce3da70b43 Initial load
duke
parents:
diff changeset
   926
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   927
.SS 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
   928
Generated API Declarations
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   929
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   930
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   931
The Javadoc tool 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 \f2Boolean\fP class is:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   932
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   933
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   934
\f2public final class Boolean\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   935
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   936
\f2extends Object\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   937
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
   938
\f2implements Serializable\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   939
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   940
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   941
and the declaration for the \f2Boolean.valueOf\fPmethod is:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   942
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   943
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   944
\f2public static Boolean valueOf(String s)\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   945
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   946
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   947
The Javadoc tool can include the modifiers \f2public\fP, \f2protected\fP, \f2private\fP, \f2abstract\fP, \f2final\fP, \f2static\fP, \f2transient\fP, and \f2volatile\fP, but not \f2synchronized\fP or \f2native\fP. These last two modifiers are considered implementation detail and not part of the API specification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   948
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   949
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   950
Rather than relying on the keyword \f2synchronized\fP, APIs should document their concurrency semantics in the comment's main description, as in "a single \f2Enumeration\fP cannot be used by multiple threads concurrently". The document should not describe how to achieve these semantics. As another example, while \f2Hashtable\fP should be thread\-safe, there's no reason to specify that we achieve this by synchronizing all of its exported methods. We should reserve the right to synchronize internally at the bucket level, thus offering higher concurrency.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   951
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   952
.SH "DOCUMENTATION COMMENTS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
   953
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   954
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   955
The original "Documentation Comment Specification" can be found under related documentation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   956
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   957
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
   958
Commenting the Source Code
90ce3da70b43 Initial load
duke
parents:
diff changeset
   959
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   960
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   961
You can include \f2documentation comments\fP ("doc comments") in the source code, ahead of declarations for any class, interface, method, constructor, or field. You can also create doc comments for each package and another one for the overview, though their syntax is slightly different. Doc comments are also known informally as "Javadoc comments" (but this term violates its trademark usage). A doc comment consists of the characters between the characters \f2/**\fP that begin the comment and the characters \f2*/\fP that end it. Leading asterisks are allowed on each line and are described further below. The text in a comment can continue onto multiple lines.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   962
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   963
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   964
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   965
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   966
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   967
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   968
 * This is the typical format of a simple documentation comment
90ce3da70b43 Initial load
duke
parents:
diff changeset
   969
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   970
 * that spans two lines.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   971
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   972
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   973
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   974
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   975
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   976
90ce3da70b43 Initial load
duke
parents:
diff changeset
   977
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   978
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   979
To save space you can put a comment on one line:
90ce3da70b43 Initial load
duke
parents:
diff changeset
   980
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   981
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   982
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   983
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   984
/** This comment takes up only one line. */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   985
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   986
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   987
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
   988
90ce3da70b43 Initial load
duke
parents:
diff changeset
   989
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   990
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   991
\f3Placement of comments\fP \- Documentation comments are recognized only when placed immediately before class, interface, constructor, method, or field declarations \-\- see the class example, method example, and field example. Documentation comments placed in the body of a method are ignored. Only one documentation comment per declaration statement is recognized by the Javadoc tool.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   992
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   993
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   994
A common mistake is to put an \f2import\fP statement between the class comment and the class declaration. Avoid this, as the Javadoc tool will ignore the class comment.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   995
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
   996
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
   997
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
   998
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
   999
   /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1000
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1001
    * This is the class comment for the class Whatever.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1002
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1003
    */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1004
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1005
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1006
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1007
    import com.sun;   // MISTAKE \- Important not to put import statement here
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1008
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1009
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1010
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1011
    public class Whatever {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1012
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1013
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1014
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1015
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1016
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1017
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1018
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1019
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1020
\f3A doc comment is composed of a \fP\f4main description\fP\f3 followed by a \fP\f4tag section\fP \- The \f2main description\fP begins after the starting delimiter \f2/**\fP and continues until the tag section. The \f2tag section\fP starts with the first block tag, which is defined by the first \f2@\fP character that begins a line (ignoring leading asterisks, white space, and leading separator \f2/**\fP). 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 \-\- some types of tags can be repeated while others cannot. For example, this \f2@see\fP starts the tag section:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1021
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1022
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1023
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1024
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1025
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1026
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1027
 * This sentence would hold the main description for this doc comment.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1028
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1029
 * @see java.lang.Object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1030
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1031
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1032
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1033
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1034
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1035
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1036
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1037
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1038
\f3Block tags and in\-line tags\fP \- A \f2tag\fP is a special keyword within a doc comment that the Javadoc tool can process. There are two kinds of tags: block tags, which appear as \f2@tag\fP (also known as "standalone tags"), and in\-line tags, which appear within curly braces, as \f2{@tag}\fP. To be interpreted, a block tag must appear at the beginning of a line, ignoring leading asterisks, white space, and separator (\f2/**\fP). This means you can use the \f2@\fP 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 \f2@\fP character and not have it be interpreted, use the HTML entity \f2&#064;\fP. 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 doc comment. This associated text can span multiple lines. An in\-line tag is allowed and interpreted anywhere that text is allowed. The following example contains the block tag \f2@deprecated\fP and in\-line tag \f2{@link}\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1039
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1040
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1041
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1042
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1043
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1044
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1045
 * @deprecated  As of JDK 1.1, replaced by {@link #setBounds(int,int,int,int)}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1046
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1047
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1048
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1049
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1050
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1051
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1052
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1053
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1054
\f3Comments are written in HTML\fP \- The text must be written in HTML, in that they should use HTML entities and can use HTML tags. You can use whichever version of HTML your browser supports; we have written the standard doclet to generate HTML 3.2\-compliant code elsewhere (outside of the documentation comments) with the inclusion of cascading style sheets and frames. (We preface each generated file with "HTML 4.0" because of the frame sets.)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1055
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1056
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1057
For example, entities for the less\-than (\f2<\fP) and greater\-than (\f2>\fP) symbols should be written \f2<\fP and \f2>\fP. Likewise, the ampersand (\f2&\fP) should be written \f2&\fP. The bold HTML tag \f2<b>\fP is shown in the following example.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1058
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1059
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1060
Here is a doc comment:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1061
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1062
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1063
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1064
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1065
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1066
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1067
 * This is a <b>doc</b> comment.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1068
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1069
 * @see java.lang.Object
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1070
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1071
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1072
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1073
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1074
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1075
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1076
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1077
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1078
\f3Leading asterisks\fP \- When javadoc parses a doc comment, leading asterisk (\f2*\fP) characters on each line are discarded; blanks and tabs preceding the initial asterisk (\f2*\fP) characters are also discarded. Starting with 1.4, if you omit the leading asterisk on a line, the leading white space is no longer removed. This enables you to paste code examples directly into a doc comment inside a \f2<PRE>\fP tag, and its indentation will be honored. Spaces are generally interpreted by browsers more uniformly than tabs. Indentation is relative to the left margin (rather than the separator \f2/**\fP or \f2<PRE>\fP tag).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1079
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1080
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1081
\f3First sentence\fP \- The first sentence of each doc comment should be a summary sentence, containing 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 Javadoc tool copies this first sentence to the member summary at the top of the HTML page.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1082
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1083
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1084
\f3Declaration with multiple fields\fP \- Java allows declaring multiple fields in a single statement, but this statement can have only one documentation comment, which is copied for all fields. Therefore if you want individual documentation comments for each field, you must declare each field in a separate statement. For example, the following documentation comment doesn't make sense written as a single declaration and would be better handled as two declarations:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1085
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1086
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1087
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1088
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1089
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1090
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1091
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1092
/** 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1093
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1094
 * The horizontal and vertical distances of point (x,y)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1095
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1096
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1097
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1098
public int x, y;      // Avoid this  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1099
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1100
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1101
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1102
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1103
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1104
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1105
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1106
The Javadoc tool generates the following documentation from the above code:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1107
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1108
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1109
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1110
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1111
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1112
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1113
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1114
public int \fP\f3x\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1115
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1116
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1117
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1118
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1119
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1120
The horizontal and vertical distances of point (x,y) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1121
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1122
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1123
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1124
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1125
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1126
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1127
public int \fP\f3y\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1128
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1129
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1130
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1131
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1132
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1133
The horizontal and vertical distances of point (x,y) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1134
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1135
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1136
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1137
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1138
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1139
\f3Use header tags carefully\fP \- When writing documentation comments for members, it's best not to use HTML heading tags such as <H1> and <H2>, because the Javadoc tool creates an entire structured document and these structural tags might interfere with the formatting of the generated document. However, it is fine to use these headings in class and package comments to provide your own structure.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1140
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1141
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1142
Automatic Copying of Method Comments
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1143
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1144
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1145
The Javadoc tool has the ability to copy or "inherit" method comments in classes and interfaces under the following two circumstances. Constructors, fields and nested classes do not inherit doc comments.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1146
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1147
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1148
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1149
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1150
\f3Automatically inherit comment to fill in missing text\fP \- When a main description, or \f2@return\fP, \f2@param\fP or \f2@throws\fP  tag is missing from a method comment, the Javadoc tool copies the corresponding main description or tag comment from the method it overrides or implements (if any), according to the algorithm below. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1151
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1152
More specifically, when a \f2@param\fP tag for a particular parameter is missing, then the comment for that parameter is copied from the method further up the inheritance hierarchy. When a \f2@throws\fP tag for a particular exception is missing, the \f2@throws\fP tag is copied \f2only if that exception is declared\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1153
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1154
This behavior contrasts with version 1.3 and earlier, where the presence of any main description or tag would prevent all comments from being inherited.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1155
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1156
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1157
\f3Explicitly inherit comment with {@inheritDoc} tag\fP \- Insert the inline tag \f2{@inheritDoc}\fP in a method main description or \f2@return\fP, \f2@param\fP or \f2@throws\fP tag comment \-\- the corresponding inherited main description or tag comment is copied into that spot. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1158
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1159
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1160
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1161
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1162
The source file for the inherited method need only be on the path specified by \-sourcepath for the doc comment to actually be available to copy. Neither the class nor its package needs to be passed in on the command line. This contrasts with 1.3.x and earlier releases, where the class had to be a documented class
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1163
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1164
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1165
\f3Inherit from classes and interfaces\fP \- Inheriting of comments occurs in all three possible cases of inheritance from classes and interfaces:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1166
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1167
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1168
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1169
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1170
When a method in a class overrides a method in a superclass 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1171
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1172
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1173
When a method in an interface overrides a method in a superinterface 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1174
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1175
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1176
When a method in a class implements a method in an interface 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1177
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1178
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1179
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1180
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1181
In the first two cases, for method overrides, the Javadoc tool generates a subheading "Overrides" in the documentation for the overriding method, with a link to the method it is overriding, whether or not the comment is inherited.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1182
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1183
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1184
In the third case, when a method in a given class implements a method in an interface, the Javadoc tool generates a subheading "Specified by" in the documentation for the overriding method, with a link to the method it is implementing. This happens whether or not the comment is inherited.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1185
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1186
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1187
\f3Algorithm for Inheriting Method Comments\fP \- If a method does not have a doc comment, or has an {@inheritDoc} tag, the Javadoc tool searches for an applicable comment using the following algorithm, which is designed to find the most specific applicable doc comment, giving preference to interfaces over superclasses:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1188
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1189
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1190
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1191
1.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1192
Look in each directly implemented (or extended) interface in the order they appear following the word implements (or extends) in the method declaration. Use the first doc comment found for this method. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1193
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1194
2.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1195
If step 1 failed to find a doc comment, recursively apply this entire algorithm to each directly implemented (or extended) interface, in the same order they were examined in step 1. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1196
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1197
3.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1198
If step 2 failed to find a doc comment and this is a class other than Object (not an interface): 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1199
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1200
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1201
a.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1202
If the superclass has a doc comment for this method, use it. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1203
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1204
b.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1205
If step 3a failed to find a doc comment, recursively apply this entire algorithm to the superclass. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1206
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1207
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1208
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1209
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1210
.SH "JAVADOC TAGS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1211
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1212
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1213
The Javadoc tool parses special tags when they are embedded within a Java doc comment. These doc tags enable you to autogenerate a complete, well\-formatted API from your source code. The tags start with an "at" sign (\f2@\fP) 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 normal text. By convention, tags with the same name are grouped together. For example, put all \f2@see\fP tags together. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1214
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1215
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1216
Tags come in two types:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1217
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1218
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1219
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1220
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1221
\f3Block tags\fP \- Can be placed only in the tag section that follows the main description. Block tags are of the form: \f2@tag\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1222
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1223
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1224
\f3Inline tags\fP \- Can be placed anywhere in the main description or in the comments for block tags. Inline tags are denoted by curly braces: \f2{@tag}\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1225
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1226
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1227
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1228
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1229
For information about tags we might introduce in future releases, see 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1230
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1231
\f2Proposed Tags\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1232
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1233
http://java.sun.com/j2se/javadoc/proposed\-tags.html.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1234
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1235
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1236
The current tags are:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1237
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1238
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1239
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1240
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1241
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1242
.TS
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1243
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1244
.de 35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1245
.ps \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1246
.vs \n(.vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1247
.in \n(.iu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1248
.if \n(.u .fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1249
.if \n(.j .ad
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1250
.if \n(.j=0 .na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1251
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1252
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1253
.nr #~ 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1254
.if n .nr #~ 0.6n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1255
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1256
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1257
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1258
.nr 33 \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1259
.rm 80 81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1260
.nr 80 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1261
.nr 38 \w\f3Tag\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1262
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1263
.nr 38 \w\f2@author\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1264
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1265
.nr 38 \w\f2{@code}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1266
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1267
.nr 38 \w\f2{@docRoot}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1268
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1269
.nr 38 \w\f2@deprecated\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1270
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1271
.nr 38 \w\f2@exception\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1272
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1273
.nr 38 \w\f2{@inheritDoc}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1274
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1275
.nr 38 \w\f2{@link}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1276
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1277
.nr 38 \w\f2{@linkplain}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1278
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1279
.nr 38 \w\f2{@literal}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1280
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1281
.nr 38 \w\f2@param\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1282
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1283
.nr 38 \w\f2@return\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1284
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1285
.nr 38 \w\f2@see\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1286
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1287
.nr 38 \w\f2@serial\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1288
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1289
.nr 38 \w\f2@serialData\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1290
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1291
.nr 38 \w\f2@serialField\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1292
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1293
.nr 38 \w\f2@since\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1294
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1295
.nr 38 \w\f2@throws\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1296
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1297
.nr 38 \w\f2{@value}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1298
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1299
.nr 38 \w\f2@version\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1300
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1301
.80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1302
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1303
.nr 81 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1304
.nr 38 \w\f3Introduced in JDK/SDK\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1305
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1306
.nr 38 \w1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1307
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1308
.nr 38 \w1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1309
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1310
.nr 38 \w1.3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1311
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1312
.nr 38 \w1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1313
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1314
.nr 38 \w1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1315
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1316
.nr 38 \w1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1317
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1318
.nr 38 \w1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1319
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1320
.nr 38 \w1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1321
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1322
.nr 38 \w1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1323
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1324
.nr 38 \w1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1325
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1326
.nr 38 \w1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1327
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1328
.nr 38 \w1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1329
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1330
.nr 38 \w1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1331
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1332
.nr 38 \w1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1333
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1334
.nr 38 \w1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1335
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1336
.nr 38 \w1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1337
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1338
.nr 38 \w1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1339
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1340
.nr 38 \w1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1341
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1342
.nr 38 \w1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1343
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1344
.81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1345
.rm 81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1346
.nr 38 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1347
.nr 79 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1348
.nr 40 \n(79+(0*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1349
.nr 80 +\n(40
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1350
.nr 41 \n(80+(3*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1351
.nr 81 +\n(41
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1352
.nr TW \n(81
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  1353
.if t .if \n(TW>\n(.li .tm Table at line 1122 file Input is too wide - \n(TW units
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1354
.fc  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1355
.nr #T 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1356
.nr #a 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1357
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1358
.de T#
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1359
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1360
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1361
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1362
.nr ## -1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1363
.ls 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1364
.ls
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1365
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1366
.ec
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1367
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1368
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1369
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1370
\&\h'|\n(40u'\f3Tag\fP\h'|\n(41u'\f3Introduced in JDK/SDK\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1371
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1372
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1373
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1374
\&\h'|\n(40u'\f2@author\fP\h'|\n(41u'1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1375
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1376
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1377
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1378
\&\h'|\n(40u'\f2{@code}\fP\h'|\n(41u'1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1379
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1380
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1381
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1382
\&\h'|\n(40u'\f2{@docRoot}\fP\h'|\n(41u'1.3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1383
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1384
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1385
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1386
\&\h'|\n(40u'\f2@deprecated\fP\h'|\n(41u'1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1387
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1388
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1389
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1390
\&\h'|\n(40u'\f2@exception\fP\h'|\n(41u'1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1391
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1392
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1393
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1394
\&\h'|\n(40u'\f2{@inheritDoc}\fP\h'|\n(41u'1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1395
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1396
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1397
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1398
\&\h'|\n(40u'\f2{@link}\fP\h'|\n(41u'1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1399
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1400
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1401
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1402
\&\h'|\n(40u'\f2{@linkplain}\fP\h'|\n(41u'1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1403
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1404
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1405
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1406
\&\h'|\n(40u'\f2{@literal}\fP\h'|\n(41u'1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1407
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1408
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1409
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1410
\&\h'|\n(40u'\f2@param\fP\h'|\n(41u'1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1411
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1412
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1413
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1414
\&\h'|\n(40u'\f2@return\fP\h'|\n(41u'1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1415
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1416
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1417
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1418
\&\h'|\n(40u'\f2@see\fP\h'|\n(41u'1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1419
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1420
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1421
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1422
\&\h'|\n(40u'\f2@serial\fP\h'|\n(41u'1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1423
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1424
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1425
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1426
\&\h'|\n(40u'\f2@serialData\fP\h'|\n(41u'1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1427
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1428
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1429
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1430
\&\h'|\n(40u'\f2@serialField\fP\h'|\n(41u'1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1431
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1432
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1433
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1434
\&\h'|\n(40u'\f2@since\fP\h'|\n(41u'1.1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1435
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1436
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1437
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1438
\&\h'|\n(40u'\f2@throws\fP\h'|\n(41u'1.2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1439
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1440
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1441
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1442
\&\h'|\n(40u'\f2{@value}\fP\h'|\n(41u'1.4
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1443
.ta \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1444
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1445
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1446
\&\h'|\n(40u'\f2@version\fP\h'|\n(41u'1.0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1447
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1448
.nr T. 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1449
.T# 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1450
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1451
.TE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1452
.if \n-(b.=0 .nr c. \n(.c-\n(d.-42
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1453
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1454
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1455
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1456
For custom tags, see the \-tag option.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1457
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1458
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1459
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1460
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1461
@author\  name\-text 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1462
Adds an "Author" entry with the specified \f2name\-text\fP to the generated docs when the \-author option is used. A doc comment may contain multiple \f2@author\fP tags. You can specify one name per \f2@author\fP tag or multiple names per tag. In the former case, the Javadoc tool inserts a comma (\f2,\fP) and space between names. In the latter case, the entire text is simply 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 comma. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1463
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1464
For more details, see Where Tags Can Be Used and 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1465
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1466
\f2writing @author tags\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1467
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1468
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html#@author. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1469
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1470
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1471
@deprecated\  deprecated\-text 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1472
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1473
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1474
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1475
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1476
Note: You can deprecate a program element using the 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1477
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1478
\f2@Deprecated annotation\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1479
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1480
http://java.sun.com/javase/6/docs/technotes/guides/javadoc/deprecation/deprecation.html.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1481
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1482
.RE
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1483
.RE
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1484
.RS 3
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1485
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1486
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1487
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1488
Adds a comment indicating that this API should no longer be used (even though it may continue to work). The Javadoc tool moves the \f2deprecated\-text\fP ahead of the main description, placing it in italics and preceding it with a bold warning: "Deprecated". This tag is valid in all doc comments: overview, package, class, interface, constructor, method and field.
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1489
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1490
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1491
The first sentence of \f2deprecated\-text\fP should at least tell the user when the API was deprecated and what to use as a replacement. The Javadoc tool copies just the first sentence to the summary section and index. Subsequent sentences can also explain why it has been deprecated. You should include a \f2{@link}\fP tag (for Javadoc 1.2 or later) that points to the replacement API:
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1492
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1493
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1494
For more details, see 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1495
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1496
\f2writing @deprecated tags\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1497
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1498
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html#@deprecated.
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1499
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1500
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1501
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1502
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1503
For Javadoc 1.2 and later, use a \f2{@link}\fP tag. This creates the link in\-line, where you want it. For example: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1504
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1505
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1506
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1507
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1508
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1509
 * @deprecated  As of JDK 1.1, replaced by {@link #setBounds(int,int,int,int)}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1510
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1511
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1512
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1513
            
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1514
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1515
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1516
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1517
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1518
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1519
For Javadoc 1.1, the standard format is to create a \f2@see\fP tag (which cannot be in\-line) for each \f2@deprecated\fP tag. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1520
.RE
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1521
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1522
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1523
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1524
For more about deprecation, see 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1525
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1526
\f2The @deprecated tag\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1527
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1528
http://java.sun.com/javase/6/docs/technotes/guides/javadoc/deprecation/index.html.
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1529
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1530
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1531
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1532
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1533
.RE
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1534
.RS 3
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1535
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1536
{@code\  text} 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1537
Equivalent to \f2<code>{@literal}</code>\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1538
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1539
Displays \f2text\fP in \f2code\fP font without interpreting the text as HTML markup or nested javadoc tags. This enables you to use regular angle brackets (\f2<\fP and \f2>\fP) instead of the HTML entities (\f2<\fP and \f2>\fP) in doc comments, such as in parameter types (\f2<Object>\fP), inequalities (\f23 < 4\fP), or arrows (\f2<\-\fP). For example, the doc comment text: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1540
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1541
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1542
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1543
     \fP\f4{@code A<B>C}\fP\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1544
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1545
          
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1546
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1547
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1548
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1549
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1550
displays in the generated HTML page unchanged, as: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1551
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1552
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1553
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1554
     \fP\f4A<B>C\fP\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1555
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1556
          
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1557
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1558
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1559
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1560
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1561
The noteworthy point is that the \f2<B>\fP is not interpreted as bold and is in code font. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1562
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1563
If you want the same functionality without the code font, use \f2{@literal}\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1564
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1565
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1566
{@docRoot} 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1567
Represents the relative path to the generated document's (destination) root directory from any generated page. It 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. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1568
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1569
This \f2{@docRoot}\fP tag can be used both on the command line and in a doc comment: This tag is valid in all doc comments: overview, package, class, interface, constructor, method and field, including the text portion of any tag (such as @return, @param and @deprecated). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1570
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1571
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1572
1.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1573
On the command line, where the header/footer/bottom are defined: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1574
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1575
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1576
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1577
   javadoc \-bottom '<a href="{@docRoot}/copyright.html">Copyright</a>'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1578
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1579
            
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1580
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1581
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1582
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1583
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1584
NOTE \- When using \f2{@docRoot}\fP this way in a make file, some makefile programs require special escaping for the brace {} characters. For example, the Inprise MAKE version 5.2 running on Windows requires double braces: \f2{{@docRoot}}\fP. It also requires double (rather than single) quotes to enclose arguments to options such as \f2\-bottom\fP (with the quotes around the \f2href\fP argument omitted).  
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1585
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1586
2.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1587
In a doc comment: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1588
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1589
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1590
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1591
   /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1592
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1593
    * See the <a href="{@docRoot}/copyright.html">Copyright</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1594
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1595
    */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1596
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1597
            
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1598
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1599
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1600
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1601
.RE
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1602
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1603
The reason this tag is needed is because the generated docs are in hierarchical directories, as deep as the number of subpackages. This expression: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1604
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1605
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1606
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1607
  <a href="{@docRoot}/copyright.html">
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1608
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1609
          
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1610
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1611
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1612
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1613
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1614
would resolve to: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1615
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1616
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1617
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1618
  <a href="../../copyright.html">      for java/lang/Object.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1619
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1620
          
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1621
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1622
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1623
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1624
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1625
and 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1626
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1627
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1628
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1629
  <a href="../../../copyright.html">   for java/lang/ref/Reference.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1630
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1631
          
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1632
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1633
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1634
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1635
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1636
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1637
@exception\  class\-name\  description 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1638
The \f2@exception\fP tag is a synonym for \f2@throws\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1639
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1640
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1641
{@inheritDoc}\  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1642
Inherits (copies) documentation from the "nearest" inheritable class or implementable interface into the current doc comment at this tag's location. This allows you to write more general comments higher up the inheritance tree, and to write around the copied text. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1643
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1644
This tag is valid only in these places in a doc comment: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1645
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1646
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1647
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1648
In the main description block of a method. In this case, the main description is copied from a class or interface up the hierarchy. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1649
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1650
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1651
In the text arguments of the @return, @param and @throws tags of a method. In this case, the tag text is copied from the corresponding tag up the hierarchy. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1652
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1653
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1654
See Automatic Copying of Method Comments for a more precise description of how comments are found in the inheritance hierarchy. Note that if this tag is missing, the comment is or is not automatically inherited according to rules described in that section. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1655
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1656
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1657
{@link\  package.class#member\  label} 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1658
Inserts an in\-line link with visible text \f2label\fP that points to the documentation for the specified package, class or member name of a referenced class. This tag is valid in all doc comments: overview, package, class, interface, constructor, method and field, including the text portion of any tag (such as @return, @param and @deprecated). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1659
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1660
This tag is very simliar to \f2@see\fP \-\- both require the same references and accept exactly the same syntax for \f2package.class\fP\f2#\fP\f2member\fP and \f2label\fP. The main difference is that \f2{@link}\fP generates an in\-line link rather than placing the link in the "See Also" section. Also, the \f2{@link}\fP tag begins and ends with curly braces to separate it from the rest of the in\-line text. If you need to use "}" inside the label, use the HTML entity notation &#125; 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1661
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1662
There is no limit to the number of \f2{@link}\fP 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 @deprecated, @return or @param). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1663
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1664
For example, here is a comment that refers to the \f2getComponentAt(int, int)\fP method: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1665
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1666
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1667
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1668
Use the {@link #getComponentAt(int, int) getComponentAt} method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1669
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1670
        
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1671
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1672
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1673
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1674
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1675
From this, the standard doclet would generate the following HTML (assuming it refers to another class in the same package): 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1676
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1677
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1678
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1679
Use the <a href="Component.html#getComponentAt(int, int)">getComponentAt</a> method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1680
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1681
        
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1682
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1683
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1684
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1685
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1686
Which appears on the web page as: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1687
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1688
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1689
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1690
Use the getComponentAt method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1691
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1692
        
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1693
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1694
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1695
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1696
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1697
You can extend \f2{@link}\fP to link to classes not being documented by using the \f2\-link\fP option. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1698
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1699
For more details, see 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1700
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1701
\f2writing {@link} tags\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1702
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1703
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html#{@link}. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1704
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1705
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1706
{@linkplain\  package.class#member\  label} 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1707
Identical to \f2{@link}\fP, except the link's label is displayed in plain text than code font. Useful when the label is plain text. Example: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1708
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1709
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1710
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1711
     Refer to {@linkplain add() the overridden method}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1712
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1713
        
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1714
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1715
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1716
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1717
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1718
This would display as: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1719
.RS 3
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1720
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1721
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1722
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1723
Refer to the overridden method.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1724
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1725
.RE
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1726
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1727
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1728
{@literal\  text} 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1729
Displays \f2text\fP without interpreting the text as HTML markup or nested javadoc tags. This enables you to use regular angle brackets (\f2<\fP and \f2>\fP) instead of the HTML entities (\f2<\fP and \f2>\fP) in doc comments, such as in parameter types (\f2<Object>\fP), inequalities (\f23 < 4\fP), or arrows (\f2<\-\fP). For example, the doc comment text: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1730
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1731
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1732
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1733
     \fP\f4{@literal A<B>C}\fP\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1734
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1735
        
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1736
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1737
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1738
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1739
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1740
displays unchanged in the generated HTML page in your browser, as: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1741
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1742
\f2\ \ \ \ \ \fPA<B>C  
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1743
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1744
The noteworthy point is that the \f2<B>\fP is not interpreted as bold (and it is not in code font). 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1745
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1746
If you want the same functionality but with the text in code font, use \f2{@code}\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1747
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1748
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1749
@param\  parameter\-name description 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1750
Adds a parameter with the specified \f2parameter\-name\fP followed by the specified \f2description\fP to the "Parameters" section. When writing the doc comment, you may continue the \f2description\fP onto multiple lines. This tag is valid only in a doc comment for a method, constructor or class. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1751
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1752
The \f2parameter\-name\fP 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. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1753
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1754
Example of a type parameter of a class: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1755
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1756
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1757
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1758
     /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1759
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1760
      * @param <E> Type of element stored in a list
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1761
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1762
      */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1763
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1764
     public interface List<E> extends Collection<E> {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1765
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1766
     }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1767
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1768
        
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1769
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1770
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1771
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1772
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1773
Example of a type parameter of a method: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1774
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1775
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1776
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1777
     /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1778
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1779
      * @param string  the string to be converted
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1780
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1781
      * @param type    the type to convert the string to
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1782
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1783
      * @param <T>     the type of the element
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1784
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1785
      * @param <V>     the value of the element
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1786
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1787
      */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1788
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1789
     <T, V extends T> V convert(String string, Class<T> type) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1790
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1791
     }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1792
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1793
        
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1794
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1795
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1796
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1797
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1798
For more details, see 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1799
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1800
\f2writing @param tags\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1801
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1802
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html#@param. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1803
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1804
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1805
@return\  description 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1806
Adds a "Returns" section with the \f2description\fP text. This text should describe the return type and permissible range of values. This tag is valid only in a doc comment for a method. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1807
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1808
For more details, see 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1809
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1810
\f2writing @return tags\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1811
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1812
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html#@return. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1813
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1814
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1815
@see\  reference 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1816
Adds a "See Also" heading with a link or text entry that points to \f2reference\fP. A doc comment may contain any number of \f2@see\fP tags, which are all grouped under the same heading. The \f2@see\fP tag has three variations; the third form below is the most common. This tag is valid in any doc comment: overview, package, class, interface, constructor, method or field. For inserting an in\-line link within a sentence to a package, class or member, see \f2{@link}\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1817
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1818
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1819
@see "string" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1820
Adds a text entry for \f2string\fP. No link is generated. The \f2string\fP is a book or other reference to information not available by URL. The Javadoc tool distinguishes this from the previous cases by looking for a double\-quote (\f2"\fP) as the first character. For example: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1821
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1822
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1823
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1824
     @see "The Java Programming Language"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1825
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1826
            
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1827
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1828
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1829
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1830
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1831
This generates text such as:  
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1832
.RE
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1833
.RE
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1834
.RS 3
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1835
.RS 3
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1836
.RS 3
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1837
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1838
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1839
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1840
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1841
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1842
See Also: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1843
"The Java Programming Language" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1844
.RE
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  1845
.RE
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1846
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1847
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1848
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1849
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1850
@see <a href="URL#value">label</a> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1851
Adds a link as defined by \f2URL\fP#\f2value\fP. The \f2URL\fP#\f2value\fP is a relative or absolute URL. The Javadoc tool distinguishes this from other cases by looking for a less\-than symbol (\f2<\fP) as the first character. For example: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1852
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1853
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1854
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1855
     @see <a href="spec.html#section">Java Spec</a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1856
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1857
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1858
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1859
This generates a link such as: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1860
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1861
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1862
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1863
See Also: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1864
Java Spec 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1865
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1866
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1867
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1868
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1869
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1870
@see\  package.class#member\  label 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1871
Adds a link, with visible text \f2label\fP, that points to the documentation for the specified name in the Java Language that is referenced. The \f2label\fP is optional; if omitted, the name appears instead as the visible text, suitably shortened \-\- see How a name is displayed. Use \-noqualifier to globally remove the package name from this visible text. Use the label when you want the visible text to be different from the auto\-generated visible text. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1872
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1873
Only in version 1.2, just the name but not the label would automatically appear in <code> HTML tags, Starting with 1.2.2, the <code> is always included around the visible text, whether or not a label is used. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1874
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1875
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1876
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1877
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1878
\f4package.class\fP\f4#\fP\f4member\fP is any valid program element name that is referenced \-\- a package, class, interface, constructor, method or field name \-\- except that the character ahead of the member name should be a hash character (\f2#\fP). The \f2class\fP represents any top\-level or nested class or interface. The \f2member\fP represents any constructor, method or field (not a nested class or interface). If this name is in the documented classes, the Javadoc tool will automatically create a link to it. To create links to external referenced classes, use the \f2\-link\fP option. Use either of the other two \f2@see\fP forms for referring to documentation of a name that does not belong to a referenced class. This argument is described at greater length below under Specifying a Name. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1879
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1880
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1881
\f4label\fP is optional text that is visible as the link's label. The \f2label\fP can contain whitespace. If \f2label\fP is omitted, then \f2package.class.member\fP will appear, suitably shortened relative to the current class and package \-\- see How a name is displayed. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1882
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1883
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1884
A space is the delimiter between \f2package.class\fP\f2#\fP\f2member\fP and \f2label\fP. A space inside parentheses does not indicate the start of a label, so spaces may be used between parameters in a method. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1885
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1886
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1887
\f3Example\fP \- In this example, an \f2@see\fP tag (in the \f2Character\fP class) refers to the \f2equals\fP method in the \f2String\fP class. The tag includes both arguments: the name "\f2String#equals(Object)\fP" and the label "\f2equals\fP". 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1888
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1889
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1890
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1891
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1892
 /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1893
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1894
  * @see String#equals(Object) equals
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1895
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1896
  */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1897
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1898
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1899
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1900
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1901
The standard doclet produces HTML something like this: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1902
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1903
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1904
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1905
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1906
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1907
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1908
<dl>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1909
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1910
<dt><b>See Also:</b>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1911
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1912
<dd><a href="../../java/lang/String#equals(java.lang.Object)"><code>equals<code></a>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1913
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1914
</dl>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1915
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1916
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1917
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1918
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1919
Which looks something like this in a browser, where the label is the visible link text: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1920
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1921
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1922
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1923
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1924
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1925
See Also: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1926
equals 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1927
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1928
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1929
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1930
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1931
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1932
\f3Specifying a name\fP \- This \f2package.class\fP\f2#\fP\f2member\fP name can be either fully\-qualified, such as \f2java.lang.String#toUpperCase()\fP or not, such as \f2String#toUpperCase()\fP or \f2#toUpperCase()\fP. If less than fully\-qualified, the Javadoc tool uses the normal Java compiler search order to find it, further described below in Search order for @see. The name can contain whitespace within parentheses, such as between method arguments. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1933
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1934
Of course the advantage of providing shorter, "partially\-qualified" names is that they are shorter to type and there is less clutter in the source code. The following table shows the different forms of the name, where \f2Class\fP can be a class or interface, \f2Type\fP can be a class, interface, array, or primitive, and \f2method\fP can be a method or constructor. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1935
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1936
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1937
.TS
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1938
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1939
.de 35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1940
.ps \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1941
.vs \n(.vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1942
.in \n(.iu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1943
.if \n(.u .fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1944
.if \n(.j .ad
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1945
.if \n(.j=0 .na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1946
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1947
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1948
.nr #~ 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1949
.if n .nr #~ 0.6n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1950
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1951
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1952
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1953
.nr 33 \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1954
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1955
.nr 34 \n(.lu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1956
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1957
.am 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1958
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1959
.di a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1960
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1961
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1962
.ll \n(34u*1u/2u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1963
.if \n(.l<\n(80 .ll \n(80u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1964
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1965
\f3Typical\ forms\ for\ \fP\f4@see\fP\f3\ \fP\f4package.class#member\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1966
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1967
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1968
.nr a| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1969
.nr a- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1970
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1971
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1972
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1973
.am 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1974
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1975
.di b+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1976
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1977
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1978
.ll \n(34u*1u/2u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1979
.if \n(.l<\n(80 .ll \n(80u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1980
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1981
\f3Referencing\ a\ member\ of\ the\ current\ class\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1982
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1983
\f2@see\fP\ \f2#\fP\f2field\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1984
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1985
\f2@see\fP\ \f2#\fP\f2method(Type,\ Type,...)\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1986
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1987
\f2@see\fP\ \f2#\fP\f2method(Type\ argname,\ Type\ argname,...)\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1988
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1989
\f2@see\fP\ \f2#\fP\f2constructor(Type,\ Type,...)\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1990
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1991
\f2@see\fP\ \f2#\fP\f2constructor(Type\ argname,\ Type\ argname,...)\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1992
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1993
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1994
.nr b| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1995
.nr b- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1996
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1997
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1998
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  1999
.am 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2000
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2001
.di c+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2002
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2003
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2004
.ll \n(34u*1u/2u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2005
.if \n(.l<\n(80 .ll \n(80u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2006
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2007
\f3Referencing\ another\ class\ in\ the\ current\ or\ imported\ packages\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2008
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2009
\f2@see\fP\ \f2Class\fP\f2#\fP\f2field\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2010
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2011
\f2@see\fP\ \f2Class\fP\f2#\fP\f2method(Type,\ Type,...)\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2012
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2013
\f2@see\fP\ \f2Class\fP\f2#\fP\f2method(Type\ argname,\ Type\ argname,...)\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2014
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2015
\f2@see\fP\ \f2Class\fP\f2#\fP\f2constructor(Type,\ Type,...)\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2016
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2017
\f2@see\fP\ \f2Class\fP\f2#\fP\f2constructor(Type\ argname,\ Type\ argname,...)\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2018
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2019
\f2@see\fP\ \f2Class.NestedClass\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2020
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2021
\f2@see\fP\ \f2Class\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2022
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2023
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2024
.nr c| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2025
.nr c- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2026
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2027
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2028
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2029
.am 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2030
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2031
.di d+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2032
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2033
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2034
.ll \n(34u*1u/2u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2035
.if \n(.l<\n(80 .ll \n(80u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2036
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2037
\f3Referencing\ an\ element\ in\ another\ package\fP\ (fully qualified)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2038
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2039
\f2@see\fP\ \f2package.Class\fP\f2#\fP\f2field\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2040
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2041
\f2@see\fP\ \f2package.Class\fP\f2#\fP\f2method(Type,\ Type,...)\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2042
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2043
\f2@see\fP\ \f2package.Class\fP\f2#\fP\f2method(Type\ argname,\ Type\ argname,...)\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2044
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2045
\f2@see\fP\ \f2package.Class\fP\f2#\fP\f2constructor(Type,\ Type,...)\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2046
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2047
\f2@see\fP\ \f2package.Class\fP\f2#\fP\f2constructor(Type\ argname,\ Type\ argname,...)\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2048
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2049
\f2@see\fP\ \f2package.Class.NestedClass\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2050
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2051
\f2@see\fP\ \f2package.Class\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2052
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2053
\f2@see\fP\ \f2package\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2054
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2055
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2056
.nr d| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2057
.nr d- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2058
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2059
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2060
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2061
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2062
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2063
.nr 80 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2064
.80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2065
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2066
.nr 38 \n(a-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2067
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2068
.nr 38 \n(b-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2069
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2070
.nr 38 \n(c-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2071
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2072
.nr 38 \n(d-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2073
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2074
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2075
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2076
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2077
.nr 38 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2078
.nr 79 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2079
.nr 40 \n(79+(0*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2080
.nr 80 +\n(40
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2081
.nr TW \n(80
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  2082
.if t .if \n(TW>\n(.li .tm Table at line 1665 file Input is too wide - \n(TW units
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2083
.fc  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2084
.nr #T 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2085
.nr #a 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2086
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2087
.de T#
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2088
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2089
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2090
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2091
.nr ## -1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2092
.ls 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2093
.ls
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2094
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2095
.ec
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2096
.ne \n(a|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2097
.if (\n(a|+\n(#^-1v)>\n(#- .nr #- +(\n(a|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2098
.ta \n(80u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2099
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2100
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2101
\&\h'|\n(40u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2102
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2103
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2104
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2105
.nr 37 \n(40u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2106
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2107
.a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2108
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2109
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2110
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2111
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2112
.ne \n(b|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2113
.if (\n(b|+\n(#^-1v)>\n(#- .nr #- +(\n(b|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2114
.ta \n(80u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2115
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2116
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2117
\&\h'|\n(40u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2118
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2119
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2120
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2121
.nr 37 \n(40u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2122
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2123
.b+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2124
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2125
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2126
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2127
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2128
.ne \n(c|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2129
.if (\n(c|+\n(#^-1v)>\n(#- .nr #- +(\n(c|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2130
.ta \n(80u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2131
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2132
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2133
\&\h'|\n(40u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2134
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2135
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2136
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2137
.nr 37 \n(40u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2138
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2139
.c+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2140
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2141
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2142
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2143
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2144
.ne \n(d|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2145
.if (\n(d|+\n(#^-1v)>\n(#- .nr #- +(\n(d|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2146
.ta \n(80u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2147
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2148
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2149
\&\h'|\n(40u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2150
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2151
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2152
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2153
.nr 37 \n(40u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2154
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2155
.d+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2156
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2157
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2158
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2159
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2160
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2161
.nr T. 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2162
.T# 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2163
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2164
.rm a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2165
.rm b+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2166
.rm c+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2167
.rm d+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2168
.TE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2169
.if \n-(b.=0 .nr c. \n(.c-\n(d.-58
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2170
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2171
The following notes apply to the above table: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2172
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2173
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2174
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2175
The first set of forms (with no class or package) will cause the Javadoc tool to search only through the current class's hierarchy. It will find a member of the current class or interface, one of its superclasses or superinterfaces, or one of its enclosing classes or interfaces (search steps 1\-3). It will not search the rest of the current package or other packages (search steps 4\-5). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2176
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2177
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2178
If any method or constructor is entered as a name with no parentheses, such as \f2getValue\fP, and if there is no field with the same name, the Javadoc tool will correctly create a link to it, but will print a warning message reminding you to add the parentheses and arguments. If this method is overloaded, the Javadoc tool will link to the first method its search encounters, which is unspecified. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2179
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2180
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2181
Nested classes must be specified as \f2outer\fP\f2.\fP\f2inner\fP, not simply \f2inner\fP, for all forms. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2182
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2183
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2184
As stated, the hash character (\f2#\fP), rather than a dot (\f2.\fP) separates a member from its class. This enables the Javadoc tool to resolve ambiguities, since the dot also separates classes, nested classes, packages, and subpackages. However, the Javadoc tool is generally lenient and will properly parse a dot if you know there is no ambiguity, though it will print a warning. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2185
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2186
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2187
\f3Search order for @see\fP \- the Javadoc tool will process a \f2@see\fP tag that appears in a source file (.java), package file (package.html or package\-info.java) or overview file (overview.html). In the latter two files, you must fully\-qualify the name you supply with \f2@see\fP. In a source file, you can specify a name that is fully\-qualified or partially\-qualified. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2188
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2189
When the Javadoc tool encounters a \f2@see\fP tag in a \f2.java\fP file that is \f2not\fP fully qualified, it searches for the specified name in the same order as the Java compiler would (except the Javadoc tool will not detect certain namespace ambiguities, since it assumes the source code is free of these errors). This search order is formally defined in Chapter 6, "Names" of the \f2Java Language Specification\fP, Second Edition. The Javadoc tool searches for that name through all related and imported classes and packages. In particular, it searches in this order: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2190
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2191
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2192
1.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2193
the current class or interface 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2194
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2195
2.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2196
any enclosing classes and interfaces, searching closest first 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2197
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2198
3.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2199
any superclasses and superinterfaces, searching closest first 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2200
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2201
4.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2202
the current package 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2203
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2204
5.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2205
any imported packages, classes and interfaces, searching in the order of the import statement 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2206
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2207
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2208
The Javadoc tool continues to search recursively through steps 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 will search through E's superclasses before E's enclosing classes.  In steps 4 and 5, the Javadoc tool does not search classes or interfaces within a package in any specified order (that order depends on the particular compiler). In step 5, the Javadoc tool looks in java.lang, since that is automatically imported by all programs. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2209
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2210
The Javadoc tool does not necessarily look in subclasses, nor will it look in other packages even if their documentation is being generated in the same run. For example, if the \f2@see\fP tag is in the \f2java.awt.event.KeyEvent\fP class and refers to a name in the \f2java.awt\fP package, javadoc does not look in that package unless that class imports it. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2211
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2212
\f3How a name is displayed\fP \- If \f2label\fP is omitted, then \f2package.class.member\fP appears. In general, it is suitably shortened relative to the current class and package. By "shortened", we mean the Javadoc tool displays only the minimum name necessary. For example, if the \f2String.toUpperCase()\fP method contains references to a member of the same class and to a member of a different class, the class name is displayed only in the latter case, as shown in the following table. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2213
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2214
Use \-noqualifier to globally remove the package names.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2215
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2216
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2217
.TS
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2218
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2219
.de 35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2220
.ps \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2221
.vs \n(.vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2222
.in \n(.iu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2223
.if \n(.u .fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2224
.if \n(.j .ad
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2225
.if \n(.j=0 .na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2226
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2227
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2228
.nr #~ 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2229
.if n .nr #~ 0.6n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2230
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2231
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2232
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2233
.nr 33 \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2234
.rm 80 81 82
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2235
.nr 34 \n(.lu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2236
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2237
.am 81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2238
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2239
.di a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2240
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2241
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2242
.ll \n(34u*1u/4u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2243
.if \n(.l<\n(81 .ll \n(81u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2244
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2245
\f3Example in \fP\f4String.toUpperCase()\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2246
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2247
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2248
.nr a| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2249
.nr a- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2250
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2251
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2252
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2253
.am 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2254
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2255
.di b+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2256
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2257
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2258
.ll \n(34u*1u/4u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2259
.if \n(.l<\n(80 .ll \n(80u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2260
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2261
\f2@see\fP tag refers to member of the same class, same package
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2262
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2263
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2264
.nr b| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2265
.nr b- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2266
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2267
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2268
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2269
.am 82
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2270
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2271
.di c+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2272
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2273
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2274
.ll \n(34u*1u/4u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2275
.if \n(.l<\n(82 .ll \n(82u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2276
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2277
\f2toLowerCase()\fP (omits the package and class names)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2278
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2279
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2280
.nr c| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2281
.nr c- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2282
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2283
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2284
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2285
.am 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2286
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2287
.di d+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2288
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2289
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2290
.ll \n(34u*1u/4u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2291
.if \n(.l<\n(80 .ll \n(80u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2292
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2293
\f2@see\fP tag refers to member of a different class, same package
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2294
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2295
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2296
.nr d| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2297
.nr d- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2298
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2299
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2300
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2301
.am 81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2302
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2303
.di e+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2304
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2305
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2306
.ll \n(34u*1u/4u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2307
.if \n(.l<\n(81 .ll \n(81u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2308
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2309
\f2@see Character#toLowerCase(char)\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2310
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2311
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2312
.nr e| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2313
.nr e- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2314
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2315
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2316
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2317
.am 82
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2318
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2319
.di f+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2320
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2321
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2322
.ll \n(34u*1u/4u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2323
.if \n(.l<\n(82 .ll \n(82u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2324
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2325
\f2Character.toLowerCase(char)\fP (omits the package name, includes the class name)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2326
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2327
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2328
.nr f| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2329
.nr f- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2330
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2331
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2332
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2333
.am 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2334
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2335
.di g+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2336
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2337
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2338
.ll \n(34u*1u/4u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2339
.if \n(.l<\n(80 .ll \n(80u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2340
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2341
\f2@see\fP tag refers to member of a different class, different package
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2342
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2343
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2344
.nr g| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2345
.nr g- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2346
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2347
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2348
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2349
.am 81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2350
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2351
.di h+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2352
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2353
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2354
.ll \n(34u*1u/4u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2355
.if \n(.l<\n(81 .ll \n(81u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2356
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2357
\f2@see java.io.File#exists()\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2358
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2359
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2360
.nr h| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2361
.nr h- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2362
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2363
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2364
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2365
.am 82
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2366
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2367
.di i+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2368
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2369
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2370
.ll \n(34u*1u/4u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2371
.if \n(.l<\n(82 .ll \n(82u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2372
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2373
\f2java.io.File.exists()\fP (includes the package and class names)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2374
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2375
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2376
.nr i| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2377
.nr i- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2378
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2379
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2380
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2381
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2382
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2383
.nr 80 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2384
.nr 38 \w\f3Type of Reference\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2385
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2386
.80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2387
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2388
.nr 38 \n(b-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2389
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2390
.nr 38 \n(d-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2391
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2392
.nr 38 \n(g-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2393
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2394
.nr 81 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2395
.nr 38 \w\f2@see String#toLowerCase()\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2396
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2397
.81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2398
.rm 81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2399
.nr 38 \n(a-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2400
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2401
.nr 38 \n(e-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2402
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2403
.nr 38 \n(h-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2404
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2405
.nr 82 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2406
.nr 38 \w\f3Displays As\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2407
.if \n(82<\n(38 .nr 82 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2408
.82
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2409
.rm 82
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2410
.nr 38 \n(c-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2411
.if \n(82<\n(38 .nr 82 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2412
.nr 38 \n(f-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2413
.if \n(82<\n(38 .nr 82 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2414
.nr 38 \n(i-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2415
.if \n(82<\n(38 .nr 82 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2416
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2417
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2418
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2419
.nr 38 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2420
.nr 79 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2421
.nr 40 \n(79+(0*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2422
.nr 80 +\n(40
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2423
.nr 41 \n(80+(3*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2424
.nr 81 +\n(41
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2425
.nr 42 \n(81+(3*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2426
.nr 82 +\n(42
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2427
.nr TW \n(82
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  2428
.if t .if \n(TW>\n(.li .tm Table at line 1741 file Input is too wide - \n(TW units
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2429
.fc  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2430
.nr #T 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2431
.nr #a 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2432
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2433
.de T#
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2434
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2435
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2436
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2437
.nr ## -1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2438
.ls 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2439
.ls
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2440
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2441
.ec
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2442
.ne \n(a|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2443
.if (\n(a|+\n(#^-1v)>\n(#- .nr #- +(\n(a|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2444
.ta \n(80u \n(81u \n(82u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2445
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2446
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2447
\&\h'|\n(40u'\f3Type of Reference\fP\h'|\n(41u'\h'|\n(42u'\f3Displays As\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2448
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2449
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2450
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2451
.nr 37 \n(41u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2452
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2453
.a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2454
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2455
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2456
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2457
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2458
.ne \n(b|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2459
.ne \n(c|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2460
.if (\n(b|+\n(#^-1v)>\n(#- .nr #- +(\n(b|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2461
.if (\n(c|+\n(#^-1v)>\n(#- .nr #- +(\n(c|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2462
.ta \n(80u \n(81u \n(82u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2463
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2464
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2465
\&\h'|\n(40u'\h'|\n(41u'\f2@see String#toLowerCase()\fP\h'|\n(42u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2466
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2467
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2468
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2469
.nr 37 \n(40u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2470
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2471
.b+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2472
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2473
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2474
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2475
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2476
.nr 37 \n(42u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2477
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2478
.c+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2479
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2480
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2481
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2482
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2483
.ne \n(d|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2484
.ne \n(e|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2485
.ne \n(f|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2486
.if (\n(d|+\n(#^-1v)>\n(#- .nr #- +(\n(d|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2487
.if (\n(e|+\n(#^-1v)>\n(#- .nr #- +(\n(e|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2488
.if (\n(f|+\n(#^-1v)>\n(#- .nr #- +(\n(f|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2489
.ta \n(80u \n(81u \n(82u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2490
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2491
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2492
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2493
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2494
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2495
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2496
.nr 37 \n(40u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2497
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2498
.d+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2499
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2500
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2501
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2502
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2503
.nr 37 \n(41u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2504
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2505
.e+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2506
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2507
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2508
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2509
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2510
.nr 37 \n(42u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2511
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2512
.f+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2513
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2514
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2515
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2516
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2517
.ne \n(g|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2518
.ne \n(h|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2519
.ne \n(i|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2520
.if (\n(g|+\n(#^-1v)>\n(#- .nr #- +(\n(g|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2521
.if (\n(h|+\n(#^-1v)>\n(#- .nr #- +(\n(h|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2522
.if (\n(i|+\n(#^-1v)>\n(#- .nr #- +(\n(i|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2523
.ta \n(80u \n(81u \n(82u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2524
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2525
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2526
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2527
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2528
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2529
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2530
.nr 37 \n(40u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2531
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2532
.g+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2533
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2534
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2535
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2536
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2537
.nr 37 \n(41u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2538
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2539
.h+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2540
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2541
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2542
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2543
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2544
.nr 37 \n(42u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2545
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2546
.i+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2547
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2548
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2549
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2550
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2551
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2552
.nr T. 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2553
.T# 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2554
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2555
.rm a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2556
.rm b+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2557
.rm c+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2558
.rm d+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2559
.rm e+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2560
.rm f+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2561
.rm g+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2562
.rm h+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2563
.rm i+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2564
.TE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2565
.if \n-(b.=0 .nr c. \n(.c-\n(d.-28
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2566
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2567
\f3Examples of @see\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2568
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2569
The comment to the right shows how the name would be displayed if the \f2@see\fP tag is in a class in another package, such as \f2java.applet.Applet\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2570
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2571
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2572
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2573
                                           See also: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2574
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2575
@see java.lang.String                   //  String                          \fP\f3 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2576
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2577
@see java.lang.String The String class  //  The String class                \fP\f3 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2578
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2579
@see String                             //  String                          \fP\f3 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2580
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2581
@see String#equals(Object)              //  String.equals(Object)           \fP\f3 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2582
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2583
@see String#equals                      //  String.equals(java.lang.Object) \fP\f3  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2584
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2585
@see java.lang.Object#wait(long)        //  java.lang.Object.wait(long)     \fP\f3 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2586
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2587
@see Character#MAX_RADIX                //  Character.MAX_RADIX             \fP\f3 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2588
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2589
@see <a href="spec.html">Java Spec</a>  //  Java Spec           \fP\f3 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2590
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2591
@see "The Java Programming Language"    //  "The Java Programming Language"        \fP\f3 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2592
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2593
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2594
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2595
You can extend \f2@see\fP to link to classes not being documented by using the \f2\-link\fP option. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2596
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2597
For more details, see 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2598
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2599
\f2writing @see tags\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2600
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2601
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html#@see.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2602
.RE
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2603
.RE
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2604
.RS 3
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2605
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2606
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2607
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2608
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2609
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2610
.RS 3
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2611
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2612
@serial\  field\-description | include | exclude 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2613
Used in the doc comment for a default serializable field. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2614
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2615
An optional \f2field\-description\fP should explain the meaning of the field and list the acceptable values. If needed, the description can span multiple lines. The standard doclet adds this information to the serialized form page. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2616
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2617
If a serializable field was added to a class some time after the class was made serializable, a statement should be added to its main description to identify at which version it was added. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2618
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2619
The \f2include\fP and \f2exclude\fP arguments identify whether a class or package should be included or excluded from the serialized form page. They work as follows: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2620
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2621
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2622
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2623
A public or protected class that implements \f2Serializable\fP is \f2included\fP unless that class (or its package) is marked \f2@serial exclude\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2624
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2625
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2626
A private or package\-private class that implements \f2Serializable\fP is \f2excluded\fP unless that class (or its package) is marked \f2@serial include\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2627
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2628
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2629
Examples: The \f2javax.swing\fP package is marked \f2@serial exclude\fP (in \f2package.html\fP or \f2package\-info.java\fP). The public class \f2java.security.BasicPermission\fP is marked \f2@serial exclude\fP. The package\-private class \f2java.util.PropertyPermissionCollection\fP is marked \f2@serial include\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2630
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2631
The tag @serial at a class level overrides @serial at a package level. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2632
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2633
For more information about how to use these tags, along with an example, see "
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2634
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2635
\f2Documenting Serializable Fields and Data for a Class\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2636
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2637
http://java.sun.com/javase/6/docs/platform/serialization/spec/serial\-arch.html," Section 1.6 of the \f2Java Object Serialization Specification\fP. Also see the 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2638
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2639
\f2Serialization FAQ\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2640
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2641
http://java.sun.com/products/jdk/serialization/faq/#javadoc_warn_missing, which covers common questions, such as "Why do I see javadoc warnings stating that I am missing @serial tags for private fields if I am not running javadoc with the \-private switch?". Also see 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2642
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2643
\f2Sun's criteria\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2644
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2645
http://java.sun.com/j2se/javadoc/writingapispecs/serialized\-criteria.html for including classes in the serialized form specification. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2646
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2647
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2648
@serialField\  field\-name\  field\-type\  field\-description 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2649
Documents an \f2ObjectStreamField\fP component of a \f2Serializable\fP class's \f2serialPersistentFields\fP member. One \f2@serialField\fP tag should be used for each \f2ObjectStreamField\fP component. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2650
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2651
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2652
@serialData\  data\-description 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2653
The \f2data\-description\fP documents the types and order of data in the serialized form. Specifically, this data includes the optional data written by the \f2writeObject\fP method and all data (including base classes) written by the \f2Externalizable.writeExternal\fP method. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2654
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2655
The \f2@serialData\fP tag can be used in the doc comment for the \f2writeObject\fP, \f2readObject\fP, \f2writeExternal\fP, \f2readExternal\fP, \f2writeReplace\fP, and \f2readResolve\fP methods. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2656
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2657
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2658
@since\  since\-text 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2659
Adds a "Since" heading with the specified \f2since\-text\fP to the generated documentation. The text has no special internal structure. This tag is valid in any doc 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 \f2since\-text\fP. For example: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2660
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2661
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2662
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2663
    @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2664
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2665
        
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2666
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2667
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2668
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2669
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2670
For source code in the Java platform, this tag indicates the version of the Java platform API specification (not necessarily when it was added to the reference implementation). Multiple @since tags are allowed and are treated like multiple @author tags. You could use multiple tags if the prgram element is used by more than one API. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2671
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2672
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2673
@throws\  class\-name\  description 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2674
The \f2@throws\fP and \f2@exception\fP tags are synonyms. Adds a "Throws" subheading to the generated documentation, with the \f2class\-name\fP and \f2description\fP text. The \f2class\-name\fP is the name of the exception that may be thrown by the method. This tag is valid only in the doc comment for a method or constructor. If this class is not fully\-specified, the Javadoc tool uses the search order to look up this class. Multiple \f2@throws\fP tags can be used in a given doc comment for the same or different exceptions. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2675
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2676
To ensure that all checked exceptions are documented, if a \f2@throws\fP tag does not exist for an exception in the throws clause, the Javadoc tool automatically adds that exception to the HTML output (with no description) as if it were documented with @throws tag. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2677
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2678
The \f2@throws\fP 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 {@inheritDoc} to force @throws to inherit documentation. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2679
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2680
For more details, see 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2681
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2682
\f2writing @throws tags\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2683
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2684
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html#@exception. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2685
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2686
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2687
{@value\  package.class#field} 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2688
When \f2{@value}\fP is used (without any argument) in the doc comment of a static field, it displays the value of that constant: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2689
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2690
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2691
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2692
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2693
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2694
     * The value of this constant is {@value}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2695
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2696
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2697
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2698
    public static final String SCRIPT_START = "<script>"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2699
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2700
        
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2701
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2702
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2703
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2704
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2705
When used with argument \f2package.class#field\fP in any doc comment, it displays the value of the specified constant: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2706
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2707
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2708
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2709
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2710
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2711
     * Evaluates the script starting with {@value #SCRIPT_START}.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2712
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2713
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2714
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2715
    public String evalScript(String script) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2716
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2717
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2718
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2719
        
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2720
.fl
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2721
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2722
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2723
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2724
The argument \f2package.class#field\fP takes a form identical to that of the @see argument, except that the member must be a static field. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2725
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2726
These values of these constants are also displayed on the 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2727
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2728
\f2Constant Field Values\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2729
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2730
http://java.sun.com/javase/6/docs/api/constant\-values.html page. 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2731
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2732
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2733
@version\  version\-text 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2734
Adds a "Version" subheading with the specified \f2version\-text\fP to the generated docs when the \-version option is used. This tag is intended to hold the current version number of the software that this code is part of (as opposed to @since, which holds the version number where this code was introduced). The \f2version\-text\fP has no special internal structure. To see where the version tag can be used, see Where Tags Can Be Used. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2735
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2736
A doc comment may contain multiple \f2@version\fP tags. If it makes sense, you can specify one version number per \f2@version\fP tag or multiple version numbers per tag. In the former case, the Javadoc tool inserts a comma (\f2,\fP) and space between names. In the latter case, the entire text is simply 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 comma. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2737
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2738
For more details, see 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2739
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2740
\f2writing @version tags\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2741
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2742
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html#@version.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2743
.RE
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2744
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2745
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  2746
.RE
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2747
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2748
Where Tags Can Be Used
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2749
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2750
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2751
The following sections describe where the tags can be used. Note that these tags can be used in all doc comments: \f2@see\fP, \f2@since\fP, \f2@deprecated\fP, \f2{@link}\fP, \f2{@linkplain}\fP, and \f2{@docroot}\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2752
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2753
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2754
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2755
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2756
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2757
Overview Documentation Tags
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2758
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2759
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2760
Overview tags are tags that can appear in the documentation comment for the overview page (which resides in the source file typically named \f2overview.html\fP). Like in any other documentation comments, these tags must appear after the main description.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2761
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2762
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2763
\f3NOTE\fP \- The \f2{@link}\fP tag has a bug in overview documents in version 1.2 \-\- the text appears properly but has no link. The \f2{@docRoot}\fP tag does not currently work in overview documents.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2764
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2765
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2766
.TS
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2767
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2768
.de 35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2769
.ps \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2770
.vs \n(.vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2771
.in \n(.iu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2772
.if \n(.u .fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2773
.if \n(.j .ad
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2774
.if \n(.j=0 .na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2775
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2776
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2777
.nr #~ 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2778
.if n .nr #~ 0.6n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2779
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2780
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2781
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2782
.nr 33 \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2783
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2784
.nr 34 \n(.lu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2785
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2786
.am 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2787
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2788
.di a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2789
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2790
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2791
.ll \n(34u*1u/2u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2792
.if \n(.l<\n(80 .ll \n(80u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2793
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2794
\f2@see\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2795
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2796
\f2@since\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2797
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2798
\f2@author\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2799
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2800
\f2@version\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2801
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2802
\f2{@link}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2803
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2804
\f2{@linkplain}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2805
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2806
\f2{@docRoot}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2807
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2808
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2809
.nr a| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2810
.nr a- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2811
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2812
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2813
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2814
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2815
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2816
.nr 80 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2817
.nr 38 \w\f3Overview Tags\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2818
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2819
.80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2820
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2821
.nr 38 \n(a-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2822
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2823
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2824
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2825
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2826
.nr 38 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2827
.nr 79 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2828
.nr 40 \n(79+(0*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2829
.nr 80 +\n(40
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2830
.nr TW \n(80
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  2831
.if t .if \n(TW>\n(.li .tm Table at line 1962 file Input is too wide - \n(TW units
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2832
.fc  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2833
.nr #T 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2834
.nr #a 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2835
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2836
.de T#
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2837
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2838
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2839
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2840
.nr ## -1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2841
.ls 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2842
.ls
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2843
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2844
.ec
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2845
.ta \n(80u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2846
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2847
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2848
\&\h'|\n(40u'\f3Overview Tags\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2849
.ne \n(a|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2850
.if (\n(a|+\n(#^-1v)>\n(#- .nr #- +(\n(a|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2851
.ta \n(80u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2852
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2853
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2854
\&\h'|\n(40u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2855
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2856
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2857
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2858
.nr 37 \n(40u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2859
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2860
.a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2861
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2862
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2863
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2864
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2865
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2866
.nr T. 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2867
.T# 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2868
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2869
.rm a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2870
.TE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2871
.if \n-(b.=0 .nr c. \n(.c-\n(d.-20
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2872
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2873
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2874
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2875
Package Documentation Tags
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2876
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2877
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2878
Package tags are tags that can appear in the documentation comment for a package (which resides in the source file named \f2package.html\fP or \f2package\-info.java\fP). The \f2@serial\fP tag can only be used here with the \f2include\fP or \f2exclude\fP argument.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2879
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2880
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2881
.TS
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2882
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2883
.de 35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2884
.ps \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2885
.vs \n(.vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2886
.in \n(.iu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2887
.if \n(.u .fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2888
.if \n(.j .ad
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2889
.if \n(.j=0 .na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2890
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2891
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2892
.nr #~ 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2893
.if n .nr #~ 0.6n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2894
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2895
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2896
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2897
.nr 33 \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2898
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2899
.nr 34 \n(.lu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2900
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2901
.am 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2902
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2903
.di a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2904
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2905
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2906
.ll \n(34u*1u/2u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2907
.if \n(.l<\n(80 .ll \n(80u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2908
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2909
\f2@see\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2910
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2911
\f2@since\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2912
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2913
\f2@serial\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2914
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2915
\f2@author\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2916
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2917
\f2@version\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2918
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2919
\f2{@link}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2920
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2921
\f2{@linkplain}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2922
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2923
\f2{@docRoot}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2924
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2925
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2926
.nr a| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2927
.nr a- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2928
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2929
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2930
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2931
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2932
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2933
.nr 80 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2934
.nr 38 \w\f3Package Tags\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2935
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2936
.80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2937
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2938
.nr 38 \n(a-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2939
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2940
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2941
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2942
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2943
.nr 38 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2944
.nr 79 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2945
.nr 40 \n(79+(0*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2946
.nr 80 +\n(40
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2947
.nr TW \n(80
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  2948
.if t .if \n(TW>\n(.li .tm Table at line 1994 file Input is too wide - \n(TW units
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2949
.fc  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2950
.nr #T 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2951
.nr #a 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2952
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2953
.de T#
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2954
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2955
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2956
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2957
.nr ## -1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2958
.ls 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2959
.ls
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2960
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2961
.ec
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2962
.ta \n(80u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2963
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2964
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2965
\&\h'|\n(40u'\f3Package Tags\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2966
.ne \n(a|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2967
.if (\n(a|+\n(#^-1v)>\n(#- .nr #- +(\n(a|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2968
.ta \n(80u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2969
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2970
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2971
\&\h'|\n(40u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2972
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2973
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2974
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2975
.nr 37 \n(40u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2976
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2977
.a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2978
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2979
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2980
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2981
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2982
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2983
.nr T. 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2984
.T# 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2985
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2986
.rm a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2987
.TE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2988
.if \n-(b.=0 .nr c. \n(.c-\n(d.-22
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2989
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2990
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2991
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2992
Class and Interface Documentation Tags
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2993
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2994
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2995
The following are tags that can appear in the documentation comment for a class or interface. The \f2@serial\fP tag can only be used here with the \f2include\fP or \f2exclude\fP argument.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2996
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2997
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2998
.TS
90ce3da70b43 Initial load
duke
parents:
diff changeset
  2999
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3000
.de 35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3001
.ps \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3002
.vs \n(.vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3003
.in \n(.iu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3004
.if \n(.u .fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3005
.if \n(.j .ad
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3006
.if \n(.j=0 .na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3007
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3008
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3009
.nr #~ 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3010
.if n .nr #~ 0.6n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3011
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3012
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3013
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3014
.nr 33 \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3015
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3016
.nr 34 \n(.lu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3017
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3018
.am 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3019
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3020
.di a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3021
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3022
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3023
.ll \n(34u*1u/2u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3024
.if \n(.l<\n(80 .ll \n(80u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3025
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3026
\f2@see\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3027
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3028
\f2@since\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3029
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3030
\f2@deprecated\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3031
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3032
\f2@serial\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3033
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3034
\f2@author\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3035
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3036
\f2@version\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3037
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3038
\f2{@link}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3039
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3040
\f2{@linkplain}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3041
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3042
\f2{@docRoot}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3043
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3044
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3045
.nr a| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3046
.nr a- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3047
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3048
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3049
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3050
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3051
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3052
.nr 80 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3053
.nr 38 \w\f3Class/Interface Tags\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3054
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3055
.80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3056
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3057
.nr 38 \n(a-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3058
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3059
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3060
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3061
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3062
.nr 38 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3063
.nr 79 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3064
.nr 40 \n(79+(0*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3065
.nr 80 +\n(40
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3066
.nr TW \n(80
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  3067
.if t .if \n(TW>\n(.li .tm Table at line 2028 file Input is too wide - \n(TW units
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3068
.fc  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3069
.nr #T 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3070
.nr #a 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3071
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3072
.de T#
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3073
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3074
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3075
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3076
.nr ## -1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3077
.ls 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3078
.ls
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3079
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3080
.ec
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3081
.ta \n(80u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3082
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3083
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3084
\&\h'|\n(40u'\f3Class/Interface Tags\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3085
.ne \n(a|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3086
.if (\n(a|+\n(#^-1v)>\n(#- .nr #- +(\n(a|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3087
.ta \n(80u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3088
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3089
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3090
\&\h'|\n(40u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3091
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3092
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3093
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3094
.nr 37 \n(40u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3095
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3096
.a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3097
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3098
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3099
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3100
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3101
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3102
.nr T. 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3103
.T# 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3104
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3105
.rm a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3106
.TE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3107
.if \n-(b.=0 .nr c. \n(.c-\n(d.-24
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3108
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3109
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3110
\f3An example of a class comment:\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3111
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3112
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3113
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3114
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3115
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3116
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3117
 * A class representing a window on the screen.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3118
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3119
 * For example:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3120
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3121
 * <pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3122
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3123
 *    Window win = new Window(parent);
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3124
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3125
 *    win.show();
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3126
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3127
 * </pre>
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3128
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3129
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3130
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3131
 * @author  Sami Shaio
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3132
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3133
 * @version 1.13, 06/08/06
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3134
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3135
 * @see     java.awt.BaseWindow
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3136
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3137
 * @see     java.awt.Button
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3138
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3139
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3140
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3141
class Window extends BaseWindow {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3142
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3143
   ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3144
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3145
}
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3146
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3147
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3148
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3149
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3150
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3151
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3152
Field Documentation Tags
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3153
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3154
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3155
The following are the tags that can appear in the documentation comment for a field.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3156
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3157
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3158
.TS
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3159
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3160
.de 35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3161
.ps \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3162
.vs \n(.vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3163
.in \n(.iu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3164
.if \n(.u .fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3165
.if \n(.j .ad
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3166
.if \n(.j=0 .na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3167
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3168
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3169
.nr #~ 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3170
.if n .nr #~ 0.6n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3171
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3172
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3173
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3174
.nr 33 \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3175
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3176
.nr 34 \n(.lu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3177
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3178
.am 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3179
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3180
.di a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3181
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3182
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3183
.ll \n(34u*1u/2u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3184
.if \n(.l<\n(80 .ll \n(80u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3185
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3186
\f2@see\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3187
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3188
\f2@since\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3189
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3190
\f2@deprecated\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3191
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3192
\f2@serial\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3193
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3194
\f2@serialField\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3195
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3196
\f2{@link}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3197
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3198
\f2{@linkplain}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3199
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3200
\f2{@docRoot}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3201
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3202
\f2{@value}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3203
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3204
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3205
.nr a| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3206
.nr a- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3207
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3208
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3209
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3210
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3211
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3212
.nr 80 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3213
.nr 38 \w\f3Field Tags\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3214
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3215
.80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3216
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3217
.nr 38 \n(a-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3218
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3219
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3220
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3221
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3222
.nr 38 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3223
.nr 79 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3224
.nr 40 \n(79+(0*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3225
.nr 80 +\n(40
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3226
.nr TW \n(80
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  3227
.if t .if \n(TW>\n(.li .tm Table at line 2103 file Input is too wide - \n(TW units
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3228
.fc  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3229
.nr #T 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3230
.nr #a 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3231
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3232
.de T#
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3233
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3234
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3235
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3236
.nr ## -1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3237
.ls 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3238
.ls
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3239
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3240
.ec
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3241
.ta \n(80u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3242
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3243
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3244
\&\h'|\n(40u'\f3Field Tags\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3245
.ne \n(a|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3246
.if (\n(a|+\n(#^-1v)>\n(#- .nr #- +(\n(a|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3247
.ta \n(80u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3248
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3249
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3250
\&\h'|\n(40u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3251
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3252
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3253
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3254
.nr 37 \n(40u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3255
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3256
.a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3257
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3258
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3259
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3260
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3261
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3262
.nr T. 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3263
.T# 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3264
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3265
.rm a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3266
.TE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3267
.if \n-(b.=0 .nr c. \n(.c-\n(d.-24
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3268
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3269
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3270
\f3An example of a field comment:\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3271
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3272
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3273
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3274
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3275
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3276
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3277
     * The X\-coordinate of the component.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3278
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3279
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3280
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3281
     * @see #getLocation()
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3282
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3283
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3284
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3285
    int x = 1263732;
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3286
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3287
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3288
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3289
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3290
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3291
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3292
Constructor and Method Documentation Tags
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3293
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3294
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3295
The following are the tags that can appear in the documentation comment for a constructor or method, except for \f2@return\fP, which cannot appear in a constructor, and \f2{@inheritDoc}\fP, which has certain restrictions. The \f2@serialData\fP tag can only be used in the doc comment for certain serialization methods.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3296
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3297
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3298
.TS
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3299
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3300
.de 35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3301
.ps \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3302
.vs \n(.vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3303
.in \n(.iu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3304
.if \n(.u .fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3305
.if \n(.j .ad
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3306
.if \n(.j=0 .na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3307
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3308
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3309
.nr #~ 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3310
.if n .nr #~ 0.6n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3311
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3312
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3313
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3314
.nr 33 \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3315
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3316
.nr 34 \n(.lu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3317
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3318
.am 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3319
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3320
.di a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3321
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3322
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3323
.ll \n(34u*1u/2u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3324
.if \n(.l<\n(80 .ll \n(80u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3325
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3326
\f2@see\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3327
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3328
\f2@since\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3329
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3330
\f2@deprecated\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3331
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3332
\f2@param\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3333
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3334
\f2@return\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3335
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3336
\f2@throws\fP and \f2@exception\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3337
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3338
\f2@serialData\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3339
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3340
\f2{@link}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3341
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3342
\f2{@linkplain}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3343
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3344
\f2{@inheritDoc}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3345
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3346
\f2{@docRoot}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3347
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3348
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3349
.nr a| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3350
.nr a- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3351
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3352
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3353
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3354
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3355
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3356
.nr 80 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3357
.nr 38 \w\f3Method/Constructor Tags\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3358
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3359
.80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3360
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3361
.nr 38 \n(a-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3362
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3363
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3364
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3365
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3366
.nr 38 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3367
.nr 79 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3368
.nr 40 \n(79+(0*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3369
.nr 80 +\n(40
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3370
.nr TW \n(80
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  3371
.if t .if \n(TW>\n(.li .tm Table at line 2162 file Input is too wide - \n(TW units
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3372
.fc  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3373
.nr #T 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3374
.nr #a 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3375
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3376
.de T#
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3377
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3378
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3379
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3380
.nr ## -1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3381
.ls 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3382
.ls
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3383
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3384
.ec
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3385
.ta \n(80u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3386
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3387
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3388
\&\h'|\n(40u'\f3Method/Constructor Tags\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3389
.ne \n(a|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3390
.if (\n(a|+\n(#^-1v)>\n(#- .nr #- +(\n(a|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3391
.ta \n(80u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3392
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3393
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3394
\&\h'|\n(40u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3395
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3396
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3397
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3398
.nr 37 \n(40u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3399
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3400
.a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3401
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3402
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3403
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3404
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3405
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3406
.nr T. 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3407
.T# 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3408
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3409
.rm a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3410
.TE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3411
.if \n-(b.=0 .nr c. \n(.c-\n(d.-28
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3412
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3413
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3414
\f3An example of a method doc comment:\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3415
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3416
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3417
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3418
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3419
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3420
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3421
     * Returns the character at the specified index. An index 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3422
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3423
     * ranges from <code>0</code> to <code>length() \- 1</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3424
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3425
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3426
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3427
     * @param     index  the index of the desired character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3428
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3429
     * @return    the desired character.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3430
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3431
     * @exception StringIndexOutOfRangeException 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3432
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3433
     *              if the index is not in the range <code>0</code> 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3434
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3435
     *              to <code>length()\-1</code>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3436
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3437
     * @see       java.lang.Character#charValue()
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3438
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3439
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3440
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3441
    public char charAt(int index) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3442
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3443
       ...
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3444
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3445
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3446
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3447
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3448
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3449
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3450
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3451
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3452
.SH "OPTIONS"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3453
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  3454
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  3455
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3456
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3457
The javadoc tool uses doclets to determine its output. The Javadoc tool uses the default standard doclet unless a custom doclet is specified with the \-doclet option. The Javadoc tool provides a set of command\-line options that can be used with any doclet \-\- these options are described below under the sub\-heading Javadoc Options. The standard doclet provides an additional set of command\-line options that are described below under the sub\-heading Options Provided by the Standard Doclet. All option names are case\-insensitive, though their arguments can be case\-sensitive.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3458
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3459
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3460
The options are:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3461
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3462
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3463
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3464
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3465
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3466
.TS
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3467
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3468
.de 35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3469
.ps \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3470
.vs \n(.vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3471
.in \n(.iu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3472
.if \n(.u .fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3473
.if \n(.j .ad
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3474
.if \n(.j=0 .na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3475
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3476
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3477
.nr #~ 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3478
.if n .nr #~ 0.6n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3479
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3480
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3481
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3482
.nr 33 \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3483
.rm 80 81 82
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3484
.nr 34 \n(.lu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3485
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3486
.am 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3487
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3488
.di a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3489
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3490
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3491
.ll \n(34u*1u/4u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3492
.if \n(.l<\n(80 .ll \n(80u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3493
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3494
\-\f21.1\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3495
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3496
\-author
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3497
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3498
\-\f2bootclasspath\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3499
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3500
\-bottom
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3501
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3502
\-\f2breakiterator\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3503
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3504
\-charset
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3505
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3506
\-\f2classpath\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3507
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3508
\-d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3509
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3510
\-docencoding
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3511
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3512
\-docfilessubdirs
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3513
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3514
\-\f2doclet\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3515
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3516
\-\f2docletpath\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3517
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3518
\-doctitle
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3519
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3520
\-\f2encoding\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3521
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3522
\-\f2exclude\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3523
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3524
\-excludedocfilessubdir
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3525
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3526
\-\f2extdirs\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3527
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3528
\-footer
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3529
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3530
\-group
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3531
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3532
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3533
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3534
.nr a| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3535
.nr a- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3536
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3537
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3538
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3539
.am 81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3540
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3541
.di b+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3542
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3543
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3544
.ll \n(34u*1u/4u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3545
.if \n(.l<\n(81 .ll \n(81u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3546
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3547
\-header
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3548
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3549
\-\f2help\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3550
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3551
\-helpfile
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3552
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3553
\-\f2J\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3554
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3555
\-keywords
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3556
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3557
\-link
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3558
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3559
\-linkoffline
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3560
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3561
\-linksource
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3562
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3563
\-\f2locale\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3564
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3565
\-nocomment
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3566
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3567
\-nodeprecated
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3568
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3569
\-nodeprecatedlist
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3570
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3571
\-nohelp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3572
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3573
\-noindex
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3574
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3575
\-nonavbar
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3576
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3577
\-noqualifier
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3578
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3579
\-nosince
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3580
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3581
\-notimestamp
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3582
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3583
\-notree
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3584
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3585
\-\f2overview\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3586
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3587
\-\f2package\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3588
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3589
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3590
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3591
.nr b| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3592
.nr b- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3593
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3594
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3595
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3596
.am 82
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3597
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3598
.di c+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3599
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3600
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3601
.ll \n(34u*1u/4u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3602
.if \n(.l<\n(82 .ll \n(82u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3603
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3604
\-\f2private\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3605
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3606
\-\f2protected\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3607
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3608
\-\f2public\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3609
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3610
\-\f2quiet\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3611
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3612
\-serialwarn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3613
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3614
\-\f2source\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3615
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3616
\-\f2sourcepath\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3617
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3618
\-splitindex
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3619
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3620
\-stylesheetfile
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3621
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3622
\-\f2subpackages\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3623
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3624
\-tag
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3625
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3626
\-taglet
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3627
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3628
\-tagletpath
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3629
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3630
\-title
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3631
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3632
\-use
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3633
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3634
\-\f2verbose\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3635
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3636
\-version
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3637
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3638
\-windowtitle
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3639
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3640
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3641
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3642
.nr c| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3643
.nr c- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3644
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3645
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3646
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3647
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3648
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3649
.nr 80 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3650
.80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3651
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3652
.nr 38 \n(a-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3653
.if \n(80<\n(38 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3654
.nr 81 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3655
.81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3656
.rm 81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3657
.nr 38 \n(b-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3658
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3659
.nr 82 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3660
.82
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3661
.rm 82
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3662
.nr 38 \n(c-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3663
.if \n(82<\n(38 .nr 82 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3664
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3665
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3666
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3667
.nr 38 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3668
.nr 79 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3669
.nr 40 \n(79+(0*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3670
.nr 80 +\n(40
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3671
.nr 41 \n(80+(3*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3672
.nr 81 +\n(41
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3673
.nr 42 \n(81+(3*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3674
.nr 82 +\n(42
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3675
.nr TW \n(82
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  3676
.if t .if \n(TW>\n(.li .tm Table at line 2340 file Input is too wide - \n(TW units
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3677
.fc  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3678
.nr #T 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3679
.nr #a 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3680
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3681
.de T#
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3682
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3683
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3684
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3685
.nr ## -1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3686
.ls 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3687
.ls
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3688
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3689
.ec
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3690
.ne \n(a|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3691
.ne \n(b|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3692
.ne \n(c|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3693
.if (\n(a|+\n(#^-1v)>\n(#- .nr #- +(\n(a|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3694
.if (\n(b|+\n(#^-1v)>\n(#- .nr #- +(\n(b|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3695
.if (\n(c|+\n(#^-1v)>\n(#- .nr #- +(\n(c|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3696
.ta \n(80u \n(81u \n(82u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3697
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3698
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3699
\&\h'|\n(40u'\h'|\n(41u'\h'|\n(42u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3700
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3701
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3702
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3703
.nr 37 \n(40u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3704
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3705
.a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3706
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3707
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3708
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3709
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3710
.nr 37 \n(41u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3711
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3712
.b+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3713
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3714
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3715
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3716
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3717
.nr 37 \n(42u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3718
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3719
.c+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3720
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3721
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3722
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3723
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3724
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3725
.nr T. 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3726
.T# 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3727
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3728
.rm a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3729
.rm b+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3730
.rm c+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3731
.TE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3732
.if \n-(b.=0 .nr c. \n(.c-\n(d.-123
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3733
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3734
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3735
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3736
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3737
Options shown in \f2italic\fP are the Javadoc core options, which are provided by the front end of the Javadoc tool and are available to all doclets. The standard doclet itself provides the non\-italic options.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3738
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3739
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3740
Javadoc Options
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3741
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3742
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3743
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3744
\-overview \ path/filename 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3745
Specifies that javadoc should retrieve the text for the overview documentation from the "source" file specified by \f2path/filename\fP and place it on the Overview page (\f2overview\-summary.html\fP). The \f2path/filename\fP is relative to the \f2\-sourcepath\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3746
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3747
While you can use any name you want for \f2filename\fP and place it anywhere you want for \f2path\fP, a typical thing to do is to name it \f2overview.html\fP and place it in the source tree at the directory that contains the topmost package directories. In this location, no \f2path\fP is needed when documenting packages, since \f2\-sourcepath\fP will point to this file. For example, if the source tree for the \f2java.lang\fP package is \f2/src/classes/java/lang/\fP, then you could place the overview file at \f2/src/classes/overview.html\fP. See Real World Example. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3748
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3749
For information about the file specified by \f2path/filename\fP, see overview comment file. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3750
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3751
Note that the overview page is created only if you pass into javadoc two or more package names. For further explanation, see HTML Frames.) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3752
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3753
The title on the overview page is set by \f2\-doctitle\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3754
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3755
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3756
\-public 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3757
Shows only public classes and members. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3758
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3759
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3760
\-protected 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3761
Shows only protected and public classes and members. This is the default. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3762
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3763
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3764
\-package 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3765
Shows only package, protected, and public classes and members. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3766
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3767
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3768
\-private 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3769
Shows all classes and members. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3770
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3771
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3772
\-help 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3773
Displays the online help, which lists these javadoc and doclet command line options. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3774
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3775
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3776
\-doclet\  class 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3777
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 \f4\-doclet\fP option is not used, javadoc uses the standard doclet for generating the default HTML format. This class must contain the \f2start(Root)\fP method. The path to this starting class is defined by the \f2\-docletpath\fP option. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3778
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3779
For example, to call the MIF doclet, use: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3780
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3781
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3782
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3783
    \-doclet com.sun.tools.doclets.mif.MIFDoclet
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3784
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3785
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3786
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3787
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  3788
For full, working examples of running a particular doclet, see the 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3789
.na
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  3790
\f2MIF Doclet documentation\fP @
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3791
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  3792
http://java.sun.com/j2se/javadoc/mifdoclet/docs/mifdoclet.html. 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3793
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3794
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3795
\-docletpath\  classpathlist 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3796
Specifies the path to the doclet starting class file (specified with the \f2\-doclet\fP option) and any jar files it depends on. If the starting class file is in a jar file, then this specifies the path to that jar file, as shown in the example below. You can specify an absolute path or a path relative to the current directory. If \f2classpathlist\fP contains multiple paths or jar files, they should be separated with a colon (:) on Solaris and a semi\-colon (;) on Windows. This option is not necessary if the doclet starting class is already in the search path. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3797
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3798
Example of path to jar file that contains the starting doclet class file. Notice the jar filename is included. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3799
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3800
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3801
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3802
   \-docletpath /home/user/mifdoclet/lib/mifdoclet.jar
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3803
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3804
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3805
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3806
Example of path to starting doclet class file. Notice the class filename is omitted. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3807
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3808
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3809
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3810
   \-docletpath /home/user/mifdoclet/classes/com/sun/tools/doclets/mif/
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3811
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3812
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3813
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  3814
For full, working examples of running a particular doclet, see the 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3815
.na
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  3816
\f2MIF Doclet documentation\fP @
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3817
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  3818
http://java.sun.com/j2se/javadoc/mifdoclet/docs/mifdoclet.html. 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3819
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3820
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3821
\-1.1 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3822
\f2This feature has been removed from Javadoc 1.4. There is no replacement for it. 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, use Javadoc 1.2 or 1.3 instead.\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3823
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3824
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3825
\-source release 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3826
Specifies the version of source code accepted. The following values for \f2release\fP are allowed: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3827
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3828
.TS
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3829
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3830
.de 35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3831
.ps \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3832
.vs \n(.vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3833
.in \n(.iu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3834
.if \n(.u .fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3835
.if \n(.j .ad
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3836
.if \n(.j=0 .na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3837
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3838
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3839
.nr #~ 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3840
.if n .nr #~ 0.6n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3841
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3842
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3843
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3844
.nr 33 \n(.s
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3845
.rm 80 81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3846
.nr 34 \n(.lu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3847
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3848
.am 81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3849
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3850
.di a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3851
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3852
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3853
.ll \n(34u*1u/3u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3854
.if \n(.l<\n(81 .ll \n(81u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3855
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3856
javadoc accepts code containing generics and other language features introduced in JDK 1.5. The compiler defaults to the 1.5 behavior if the \f3\-source\fP flag is not used.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3857
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3858
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3859
.nr a| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3860
.nr a- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3861
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3862
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3863
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3864
.am 81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3865
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3866
.di b+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3867
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3868
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3869
.ll \n(34u*1u/3u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3870
.if \n(.l<\n(81 .ll \n(81u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3871
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3872
javadoc accepts code containing assertions, which were introduced in JDK 1.4.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3873
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3874
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3875
.nr b| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3876
.nr b- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3877
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3878
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3879
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3880
.am 81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3881
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3882
.di c+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3883
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3884
.ft \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3885
.ll \n(34u*1u/3u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3886
.if \n(.l<\n(81 .ll \n(81u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3887
.in 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3888
javadoc does \f2not\fP support assertions, generics, or other language features introduced after JDK 1.3.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3889
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3890
.di
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3891
.nr c| \n(dn
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3892
.nr c- \n(dl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3893
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3894
.ec \
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3895
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3896
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3897
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3898
.nr 80 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3899
.nr 31 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3900
.nr 32 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3901
.nr 38 \w\f31
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3902
.if \n(31<\n(38 .nr 31 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3903
.nr 38 \w.5\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3904
.if \n(32<\n(38 .nr 32 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3905
.nr 38 \w\f31
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3906
.if \n(31<\n(38 .nr 31 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3907
.nr 38 \w.4\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3908
.if \n(32<\n(38 .nr 32 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3909
.nr 38 \w\f31
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3910
.if \n(31<\n(38 .nr 31 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3911
.nr 38 \w.3\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3912
.if \n(32<\n(38 .nr 32 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3913
.80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3914
.rm 80
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3915
.nr 60 \n(31
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3916
.nr 38 \n(60+\n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3917
.if \n(38>\n(80 .nr 80 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3918
.if \n(38<\n(80 .nr 60 +(\n(80-\n(38)/2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3919
.nr 81 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3920
.81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3921
.rm 81
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3922
.nr 38 \n(a-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3923
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3924
.nr 38 \n(b-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3925
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3926
.nr 38 \n(c-
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3927
.if \n(81<\n(38 .nr 81 \n(38
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3928
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3929
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3930
.ll \n(34u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3931
.nr 38 1n
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3932
.nr 79 0
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3933
.nr 40 \n(79+(0*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3934
.nr 80 +\n(40
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3935
.nr 60 +\n(40
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3936
.nr 41 \n(80+(3*\n(38)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3937
.nr 81 +\n(41
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3938
.nr TW \n(81
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  3939
.if t .if \n(TW>\n(.li .tm Table at line 2450 file Input is too wide - \n(TW units
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3940
.fc  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3941
.nr #T 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3942
.nr #a 0-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3943
.eo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3944
.de T#
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3945
.ds #d .d
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3946
.if \(ts\n(.z\(ts\(ts .ds #d nl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3947
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3948
.nr ## -1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3949
.ls 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3950
.ls
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3951
..
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3952
.ec
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3953
.ne \n(a|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3954
.if (\n(a|+\n(#^-1v)>\n(#- .nr #- +(\n(a|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3955
.ta \n(60u \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3956
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3957
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3958
\&\h'|\n(40u'\f31.5\fP\h'|\n(41u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3959
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3960
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3961
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3962
.nr 37 \n(41u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3963
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3964
.a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3965
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3966
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3967
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3968
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3969
.ne \n(b|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3970
.if (\n(b|+\n(#^-1v)>\n(#- .nr #- +(\n(b|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3971
.ta \n(60u \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3972
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3973
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3974
\&\h'|\n(40u'\f31.4\fP\h'|\n(41u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3975
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3976
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3977
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3978
.nr 37 \n(41u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3979
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3980
.b+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3981
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3982
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3983
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3984
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3985
.ne \n(c|u+\n(.Vu
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3986
.if (\n(c|+\n(#^-1v)>\n(#- .nr #- +(\n(c|+\n(#^-\n(#--1v)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3987
.ta \n(60u \n(80u \n(81u 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3988
.nr 31 \n(.f
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3989
.nr 35 1m
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3990
\&\h'|\n(40u'\f31.3\fP\h'|\n(41u'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3991
.mk ##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3992
.nr 31 \n(##
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3993
.sp |\n(##u-1v
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3994
.nr 37 \n(41u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3995
.in +\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3996
.c+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3997
.in -\n(37u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3998
.mk 32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  3999
.if \n(32>\n(31 .nr 31 \n(32
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4000
.sp |\n(31u
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4001
.fc
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4002
.nr T. 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4003
.T# 1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4004
.35
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4005
.rm a+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4006
.rm b+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4007
.rm c+
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4008
.TE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4009
.if \n-(b.=0 .nr c. \n(.c-\n(d.-14
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4010
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4011
Use the value of \f2release\fP corresponding to that used when compiling the code with javac. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4012
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4013
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4014
\-sourcepath\  sourcepathlist 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4015
Specifies the search paths for finding source files (\f2.java\fP) when passing package names or \f2\-subpackages\fP into the \f2javadoc\fP command. The \f2sourcepathlist\fP can contain multiple paths by separating them with a colon (\f2:\fP). The Javadoc tool will search in 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. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4016
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4017
Note that you can use the \f2\-sourcepath\fP option only when passing package names into the javadoc command \-\- it will not locate \f2.java\fP files passed into the \f2javadoc\fP command. (To locate \f2.java\fP files, cd to that directory or include the path ahead of each file, as shown at Documenting One or More Classes.) If \f2\-sourcepath\fP is omitted, javadoc uses the class path to find the source files (see \-classpath). Therefore, the default \-sourcepath is the value of class path. If \-classpath is omitted and you are passing package names into javadoc, it looks in the current directory (and subdirectories) for the source files. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4018
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4019
Set \f2sourcepathlist\fP to the root directory of the source tree for the package you are documenting. For example, suppose you want to document a package called \f2com.mypackage\fP whose source files are located at: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4020
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4021
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4022
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4023
  /home/user/src/com/mypackage/*.java
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4024
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4025
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4026
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4027
In this case you would specify the \f2sourcepath\fP to \f2/home/user/src\fP, the directory that contains \f2com/mypackage\fP, and then supply the package name \f2com.mypackage\fP: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4028
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4029
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4030
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4031
  % \fP\f3javadoc \-sourcepath /home/user/src/ com.mypackage\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4032
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4033
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4034
This is easy to remember by noticing that if you concatenate the value of sourcepath and the package name together and change the dot to a slash "/", you end up with the full path to the package: \f2/home/user/src/com/mypackage\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4035
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4036
To point to two source paths: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4037
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4038
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4039
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4040
  % \fP\f3javadoc \-sourcepath /home/user1/src:/home/user2/src com.mypackage\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4041
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4042
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4043
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4044
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4045
\-classpath\  classpathlist 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4046
Specifies the paths where javadoc will look for referenced classes (\f2.class\fP files) \-\- these are the documented classes plus any classes referenced by those classes. The \f2classpathlist\fP can contain multiple paths by separating them with a colon (\f2:\fP). The Javadoc tool will search in all subdirectories of the specified paths. Follow the instructions in 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4047
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4048
\f2class path\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4049
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4050
http://java.sun.com/javase/6/docs/technotes/tools/index.html#general documentation for specifying \f2classpathlist\fP. 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4051
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4052
If \f2\-sourcepath\fP is omitted, the Javadoc tool uses \f2\-classpath\fP to find the source files as well as class files (for backward compatibility). Therefore, if you want to search for source and class files in separate paths, use both \f2\-sourcepath\fP and \f2\-classpath\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4053
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4054
For example, if you want to document \f2com.mypackage\fP, whose source files reside in the directory \f2/home/user/src/com/mypackage\fP, and if this package relies on a library in \f2/home/user/lib\fP, you would specify: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4055
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4056
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4057
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4058
  % \fP\f3javadoc \-classpath /home/user/lib \-sourcepath /home/user/src com.mypackage\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4059
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4060
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4061
As with other tools, if you do not specify \f2\-classpath\fP, the Javadoc tool uses the CLASSPATH environment variable, if it is set. If both are not set, the Javadoc tool searches for classes from the current directory. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4062
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4063
For an in\-depth description of how the Javadoc tool uses \f2\-classpath\fP to find user classes as it relates to extension classes and bootstrap classes, see 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4064
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4065
\f2How Classes Are Found\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4066
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4067
http://java.sun.com/javase/6/docs/technotes/tools/findingclasses.html.  
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4068
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4069
As a special convenience, a class path element containing a basename of \f2*\fP is considered equivalent to specifying a list of all the files in the directory with the extension \f2.jar\fP or \f2.JAR\fP (a java program cannot tell the difference between the two invocations).
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4070
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4071
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4072
For example, if directory \f2foo\fP contains \f2a.jar\fP and \f2b.JAR\fP, then the class path element \f2foo/*\fP is expanded to a \f2A.jar:b.JAR\fP, except that the order of jar files is unspecified. All jar files in the specified directory, even hidden ones, are included in the list. A classpath entry consisting simply of \f2*\fP expands to a list of all the jar files in the current directory. The \f2CLASSPATH\fP environment variable, where defined, will be similarly expanded. Any classpath wildcard expansion occurs before the Java virtual machine is started \-\- no Java program will ever see unexpanded wildcards except by querying the environment. For example; by invoking \f2System.getenv("CLASSPATH")\fP.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4073
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4074
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4075
\-subpackages\ \ package1:package2:... 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4076
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, as they are automatically included. Each \f2package\fP argument is any top\-level subpackage (such as \f2java\fP) or fully qualified package (such as \f2javax.swing\fP) that does not need to contain source files. Arguments are separated by colons (on all operating systmes). Wildcards are not needed or allowed. Use \f2\-sourcepath\fP to specify where to find the packages. This option is smart about not processing source files that are in the source tree but do not belong to the packages, as described at processing of source files. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4077
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4078
For example: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4079
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4080
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4081
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4082
  % \fP\f3javadoc \-d docs \-sourcepath /home/user/src \-subpackages java:javax.swing\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4083
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4084
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4085
This command generates documentation for packages named "java" and "javax.swing" and all their subpackages. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4086
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4087
You can use \f2\-subpackages\fP in conjunction with \f2\-exclude\fP to exclude specific packages. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4088
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4089
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4090
\-exclude\ \ packagename1:packagename2:... 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4091
Unconditionally excludes the specified packages and their subpackages from the list formed by \f2\-subpackages\fP. It excludes those packages even if they would otherwise be included by some previous or later \f2\-subpackages\fP option. For example: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4092
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4093
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4094
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4095
  % \fP\f3javadoc \-sourcepath /home/user/src \-subpackages java \-exclude java.net:java.lang\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4096
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4097
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4098
would include \f2java.io\fP, \f2java.util\fP, and \f2java.math\fP (among others), but would exclude packages rooted at \f2java.net\fP and \f2java.lang\fP. Notice this excludes \f2java.lang.ref\fP, a subpackage of \f2java.lang\fP). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4099
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4100
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4101
\-bootclasspath\  classpathlist 
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4102
Specifies the paths where the boot classes reside. These are nominally the Java platform classes. The bootclasspath is part of the search path the Javadoc tool will use to look up source and class files. See 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4103
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4104
\f2How Classes Are Found\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4105
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4106
http://java.sun.com/javase/6/docs/technotes/tools/findingclasses.html#srcfiles. for more details. Separate directories in \f2classpathlist\fP with colons (:). 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4107
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4108
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4109
\-extdirs\  dirlist 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4110
Specifies the directories where extension classes reside. These are any classes that use the Java Extension mechanism. The extdirs is part of the search path the Javadoc tool will use to look up source and class files. See \f2\-classpath\fP (above) for more details. Separate directories in \f2dirlist\fP with colons (:). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4111
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4112
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4113
\-verbose 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4114
Provides more detailed messages while javadoc is running. Without the verbose 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 specifying the number of milliseconds to parse each java source file. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4115
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4116
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4117
\-quiet 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4118
Shuts off non\-error and non\-warning messages, leaving only the warnings and errors appear, making them easier to view. Also suppresses the version string. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4119
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4120
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4121
\-breakiterator\  
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4122
Uses the internationalized sentence boundary of 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4123
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4124
\f2java.text.BreakIterator\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4125
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4126
http://java.sun.com/javase/6/docs/api/java/text/BreakIterator.html to determine the end of the first sentence for English (all other locales already use \f2BreakIterator\fP), rather than an English language, locale\-specific algorithm. By \f2first sentence\fP, we mean the first sentence in the main description of a package, class or member. This sentence is copied to the package, class or member summary, and to the alphabetic index. 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4127
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4128
From JDK 1.2 forward, the BreakIterator class is already used to determine the end of sentence for all languages but English. Therefore, the \f2\-breakiterator\fP option has no effect except for English from 1.2 forward. English has its own default algorithm: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4129
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4130
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4131
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4132
English default sentence\-break algorithm \- Stops at a period followed by a space or a HTML block tag, such as \f2<P>\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4133
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4134
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4135
Breakiterator sentence\-break algorithm \- In general, stops at a period, question mark or exclamation mark followed by a space if the next word starts with a capital letter. This is meant to handle most abbreviations (such as "The serial no. is valid", but won't handle "Mr. Smith"). Doesn't stop at HTML tags or sentences that begin with numbers or symbols. Stops at the last period in "../filename", even if embedded in an HTML tag. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4136
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4137
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4138
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4139
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4140
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4141
NOTE: We have removed from 1.5.0 the breakiterator warning messages that were in 1.4.x and have left the default sentence\-break algorithm unchanged. That is, the \-breakiterator option is not the default in 1.5.0, nor do we expect it to become the default. This is a reversal from our former intention that the default would change in the "next major release" (1.5.0). This means if you have not modified your source code to eliminate the breakiterator warnings in 1.4.x, then you don't have to do anything, and the warnings go away starting with 1.5.0. The reason for this reversal is because any benefit to having breakiterator become the default would be outweighed by the incompatible source change it would require. We regret any extra work and confusion this has caused.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4142
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4143
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4144
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4145
\-locale\  language_country_variant 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4146
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4147
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4148
\f3Important\fP \- The \f2\-locale\fP option must be placed \f2ahead\fP (to the left) of any options provided by the standard doclet or any other doclet. Otherwise, the navigation bars will appear in English. This is the only command\-line option that is order\-dependent.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4149
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4150
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4151
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4152
Specifies the locale that javadoc uses when generating documentation. The argument is the name of the locale, as described in java.util.Locale documentation, such as \f2en_US\fP (English, United States) or \f2en_US_WIN\fP (Windows variant). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4153
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4154
Specifying a locale causes javadoc to choose the resource files of that locale for messages (strings in the navigation bar, headings for lists and tables, help file contents, comments in stylesheet.css, and so forth). It also specifies the sorting order for lists sorted alphabetically, and the sentence separator to determine the end of the first sentence. It does not determine the locale of the doc comment text specified in the source files of the documented classes. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4155
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4156
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4157
\-encoding\  name 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4158
Specifies the encoding name of the source files, such as \f2EUCJIS/SJIS\fP. If this option is not specified, the platform default converter is used. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4159
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4160
Also see \-docencoding and \-charset. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4161
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4162
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4163
\-Jflag 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4164
Passes \f2flag\fP directly to the runtime system java that runs javadoc. Notice there must be no space between the \f2J\fP and the \f2flag\fP. For example, if you need to ensure that the system sets aside 32 megabytes of memory in which to process the generated documentation, then you would call the \f2\-Xmx\fP option of java as follows (\f2\-Xms\fP is optional, as it only sets the size of initial memory, which is useful if you know the minimum amount of memory required): 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4165
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4166
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4167
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4168
   % \fP\f3javadoc \-J\-Xmx32m \-J\-Xms32m\fP \f3com.mypackage\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4169
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4170
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4171
To tell what version of javadoc you are using, call the "\f2\-version\fP" option of java: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4172
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4173
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4174
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4175
   % \fP\f3javadoc \-J\-version\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4176
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4177
   java version "1.2"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4178
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4179
   Classic VM (build JDK\-1.2\-V, green threads, sunwjit)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4180
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4181
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4182
(The version number of the standard doclet appears in its output stream.) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4183
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4184
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4185
Options Provided by the Standard Doclet
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4186
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4187
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4188
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4189
\-d\  directory 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4190
Specifies the destination directory where javadoc saves the generated HTML files. (The "d" means "destination.") Omitting this option causes the files to be saved to the current directory. The value \f2directory\fP can be absolute, or relative to the current working directory. As of 1.4, the destination directory is automatically created when javadoc is run. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4191
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4192
For example, the following generates the documentation for the package \f2com.mypackage\fP and saves the results in the \f2/home/user/doc/\fP directory: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4193
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4194
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4195
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4196
  % \fP\f3javadoc \-d /home/user/doc com.mypackage\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4197
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4198
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4199
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4200
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4201
\-use 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4202
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 given 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. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4203
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4204
For example, let us look at what might appear on the "Use" page for String. The \f2getName()\fP method in the \f2java.awt.Font\fP class returns type \f2String\fP. Therefore, \f2getName()\fP uses \f2String\fP, and you will find that method on the "Use" page for \f2String\fP. 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4205
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4206
Note that this documents only uses of the API, not the implementation. If a method uses \f2String\fP in its implementation but does not take a string as an argument or return a string, that is not considered a "use" of \f2String\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4207
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4208
You can access the generated "Use" page by first going to the class or package, then clicking on the "Use" link in the navigation bar.   
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4209
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4210
\-version 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4211
Includes the @version text in the generated docs. This text is omitted by default. To tell what version of the Javadoc tool you are using, use the \f2\-J\-version\fP option. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4212
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4213
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4214
\-author 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4215
Includes the @author text in the generated docs. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4216
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4217
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4218
\-splitindex 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4219
Splits the index file into multiple files, alphabetically, one file per letter, plus a file for any index entries that start with non\-alphabetical characters. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4220
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4221
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4222
\-windowtitle\  title 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4223
Specifies the title to be placed in the HTML <title> tag. This 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, as the browser will not properly interpret them. Any internal quotation marks within \f2title\fP may have to be escaped. If \-windowtitle is omitted, the Javadoc tool uses the value of \-doctitle for this option. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4224
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4225
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4226
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4227
  % \fP\f3javadoc \-windowtitle "Java SE Platform" com.mypackage\fP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4228
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4229
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4230
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4231
\-doctitle\  title 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4232
Specifies the title to be placed near the top of the overview summary file. The title will be placed as a centered, level\-one heading directly beneath the upper navigation bar. The \f2title\fP may contain html tags and white space, though if it does, it must be enclosed in quotes. Any internal quotation marks within \f2title\fP may have to be escaped. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4233
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4234
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4235
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4236
  % \fP\f3javadoc \-doctitle "Java(TM)" com.mypackage\fP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4237
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4238
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4239
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4240
\-title\  title 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4241
\f3This option no longer exists.\fP It existed only in Beta versions of Javadoc 1.2. It has been renamed to \f2\-doctitle\fP. This option is being renamed to make it clear that it defines the document title rather than the window title. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4242
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4243
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4244
\-header\  header 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4245
Specifies the header text to be placed at the top of each output file. The header will be placed to the right of the upper navigation bar. \f2header\fP may contain HTML tags and white space, though if it does, it must be enclosed in quotes. Any internal quotation marks within \f2header\fP may have to be escaped. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4246
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4247
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4248
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4249
  % \fP\f3javadoc \-header "<b>Java 2 Platform </b><br>v1.4" com.mypackage\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4250
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4251
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4252
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4253
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4254
\-footer\  footer 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4255
Specifies the footer text to be placed at the bottom of each output file. The footer will be placed to the right of the lower navigation bar. \f2footer\fP may contain html tags and white space, though if it does, it must be enclosed in quotes. Any internal quotation marks within \f2footer\fP may have to be escaped. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4256
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4257
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4258
\-bottom\  text 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4259
Specifies the text to be placed at the bottom of each output file. The text will be placed at the bottom of the page, below the lower navigation bar. The \f2text\fP may contain HTML tags and white space, though if it does, it must be enclosed in quotes. Any internal quotation marks within \f2text\fP may have to be escaped. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4260
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4261
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4262
\-link\  extdocURL 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4263
Creates links to existing javadoc\-generated documentation of external referenced classes. It takes one argument: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4264
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4265
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4266
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4267
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4268
\f4extdocURL\fP is the absolute or relative URL of the directory containing the external javadoc\-generated documentation you want to link to. Examples are shown below. The package\-list file must be found in this directory (otherwise, use \f2\-linkoffline\fP). The Javadoc tool reads the package names from the \f2package\-list\fP file and then links to those packages at that URL. When the Javadoc tool is run, the \f2extdocURL\fP value is copied literally into the \f2<A HREF>\fP links that are created. Therefore, \f2extdocURL\fP must be the URL to the \f2directory\fP, not to a file. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4269
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4270
You can use an absolute link for \f2extdocURL\fP to enable your docs to link to a document on any website, or can use a relative link to link only to a relative location. If relative, the value you pass in should be the relative path from the destination directory (specified with \f2\-d\fP) to the directory containing the packages being linked to. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4271
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4272
When specifying an absolute link you normally use an \f2http:\fP link. However, if you want to link to a file system that has no web server, you can use a \f2file:\fP link \-\- however, do this only if everyone wanting to access the generated documentation shares the same file system. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4273
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4274
In all cases, and on all operating systems, you should use a forward slash as the separator, whether the URL is absolute or relative, and "http:" or "file:" based (as specified in the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4275
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4276
\f2URL Memo\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4277
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4278
http://www.ietf.org/rfc/rfc1738.txt). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4279
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4280
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4281
Absolute http: based link: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4282
\f2\-link http://<host>/<directory>/<directory>/.../<name>\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4283
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4284
Absolute file: based link: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4285
\f2\-link file://<host>/<directory>/<directory>/.../<name>\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4286
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4287
Relative link: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4288
\f2\-link <directory>/<directory>/.../<name>\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4289
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4290
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4291
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4292
You can specify multiple \f2\-link\fP options in a given javadoc run to link to multiple documents. \f3Choosing between \-linkoffline and \-link\fP:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4293
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4294
Use \f2\-link\fP: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4295
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4296
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4297
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4298
when using a relative path to the external API document, or 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4299
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4300
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4301
when using an absolute URL to the external API document, if your shell allows a program to open a connection to that URL for reading. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4302
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4303
Use \f2\-linkoffline\fP: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4304
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4305
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4306
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4307
when using an absolute URL to the external API document, if your shell \f2does not allow\fP a program to open a connection to that URL for reading. This can occur if you are behind a firewall and the document you want to link to is on the other side. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4308
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4309
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4310
\f3Example using absolute links to the external docs\fP \- Let us say you want to link to the \f2java.lang\fP, \f2java.io\fP and other Java Platform packages at 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4311
.na
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4312
\f2http://java.sun.com/javase/6/docs/api/\fP @
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4313
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4314
http://java.sun.com/javase/6/docs/api. The following command generates documentation for the package \f2com.mypackage\fP with links to the Java SE Platform packages. The generated documentation will contain links to the \f2Object\fP class, for example, in the class trees. (Other options, such as \f2\-sourcepath\fP and \f2\-d\fP, are not shown.) 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4315
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4316
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4317
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4318
  % \fP\f3javadoc \-link http://java.sun.com/javase/6/docs/api com.mypackage\fP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4319
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4320
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4321
\f3Example using relative links to the external docs\fP \- Let us say you have two packages whose docs are generated in different runs of the Javadoc tool, and those docs are separated by a relative path. In this example, the packages are \f2com.apipackage\fP, an API, and \f2com.spipackage\fP, an SPI (Service Provide Interface). You want the documentation to reside in \f2docs/api/com/apipackage\fP and \f2docs/spi/com/spipackage\fP. Assuming the API package documentation is already generated, and that \f2docs\fP is the current directory, you would document the SPI package with links to the API documentation by running: 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4322
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4323
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4324
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4325
  % \fP\f3javadoc \-d ./spi \-link ../api com.spipackage\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4326
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4327
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4328
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4329
Notice the \f2\-link\fP argument is relative to the destination directory (\f2docs/spi\fP). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4330
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4331
\f3Details\fP \- The \f2\-link\fP option enables you to link to classes referenced to by your code but \f2not\fP documented in the current javadoc run. For these links to go to valid pages, you must know where those HTML pages are located, and specify that location with \f2extdocURL\fP. This allows, for instance, third party documentation to link to \f2java.*\fP documentation on \f2http://java.sun.com\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4332
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4333
Omit the \f2\-link\fP option for javadoc to create links only to API within the documentation it is generating in the current run. (Without the \f2\-link\fP option, the Javadoc tool does not create links to documentation for external references, because it does not know if or where that documentation exists.) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4334
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4335
This option can create links in several places in the generated documentation. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4336
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4337
Another use is for cross\-links between sets of packages: Execute javadoc on one set of packages, then run javadoc again on another set of packages, creating links both ways between both sets. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4338
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4339
\f3How a Class Must be Referenced\fP \- For a link to an external referenced class to actually 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 \f2import\fP statement or in a declaration. Here are examples of how the class \f2java.io.File\fP can be referenced: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4340
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4341
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4342
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4343
In any kind of \f2import\fP statement: by wildcard import, import explicitly by name, or automatically import for \f2java.lang.*\fP. For example, this would suffice:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4344
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4345
\f2import java.io.*;\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4346
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4347
In 1.3.x and 1.2.x, only an explicit import by name works \-\- a wildcard import statement does not work, nor does the automatic import \f2java.lang.*\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4348
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4349
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4350
In a declaration:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4351
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4352
\f2void foo(File f) {}\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4353
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4354
The reference and be in the return type or parameter type of a method, constructor, field, class or interface, or in an \f2implements\fP, \f2extends\fP or \f2throws\fP statement. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4355
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4356
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4357
An important corollary is that when you use the \f2\-link\fP option, there may be many links that unintentionally do not appear due to this constraint. (The text would appear without a hypertext link.) You can detect these by the warnings they emit. The most innocuous way to properly reference a class and thereby add the link would be to import that class, as shown above. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4358
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4359
\f3Package List\fP \- The \f2\-link\fP option requires that a file named \f2package\-list\fP, which is generated by the Javadoc tool, exist at the URL you specify with \f2\-link\fP. The \f2package\-list\fP file is a simple text file that lists the names of packages documented at that location. In the earlier example, the Javadoc tool looks for a file named \f2package\-list\fP at the given URL, reads in the package names and then links to those packages at that URL. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4360
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4361
For example, the package list for the Java SE 6 API is located at 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4362
.na
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4363
\f2http://java.sun.com/javase/6/docs/api/package\-list\fP @
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4364
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4365
http://java.sun.com/javase/6/docs/api/package\-list. and starts as follows: 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4366
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4367
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4368
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4369
  java.applet  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4370
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4371
  java.awt
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4372
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4373
  java.awt.color
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4374
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4375
  java.awt.datatransfer
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4376
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4377
  java.awt.dnd
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4378
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4379
  java.awt.event
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4380
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4381
  java.awt.font
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4382
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4383
  etc.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4384
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4385
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4386
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4387
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4388
When javadoc is run without the \f2\-link\fP option, when it encounters a name that belongs to an external referenced class, it prints the name with no link. However, when the \f2\-link\fP option is used, the Javadoc tool searches the \f2package\-list\fP file at the specified \f2extdocURL\fP location for that package name. If it finds the package name, it prefixes the name with \f2extdocURL\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4389
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4390
In order for there to be no broken links, all of the documentation for the external references must exist at the specified URLs. The Javadoc tool will not check that these pages exist \-\- only that the package\-list exists. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4391
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4392
\f3Multiple Links\fP \- You can supply multiple \f2\-link\fP options to link to any number of external generated documents. \  Javadoc 1.2 has a known bug which prevents you from supplying more than one \f2\-link\fP command. This was fixed in 1.2.2. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4393
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4394
Specify a different link option for each external document to link to: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4395
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4396
\ \  \f2% \fP\f4javadoc \-link\fP \f2extdocURL1\fP \f4\-link\fP \f2extdocURL2\fP \f2... \fP\f4\-link\fP \f2extdocURLn\fP \f4com.mypackage\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4397
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4398
where \f2extdocURL1\fP,\  \f2extdocURL2\fP,\  ... \f2extdocURLn\fP point respectively to the roots of external documents, each of which contains a file named \f2package\-list\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4399
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4400
\f3Cross\-links\fP \- Note that "bootstrapping" may be required when cross\-linking two or more documents that have not previously been generated. In other words, if \f2package\-list\fP does not exist for either document, when you run the Javadoc tool on the first document, the \f2package\-list\fP will not yet exist for the second document. Therefore, to create the external links, you must re\-generate the first document after generating the second document. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4401
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4402
In this case, the purpose of first generating a document is to create its \f2package\-list\fP (or you can create it by hand it if you're certain of the package names). Then generate the second document with its external links. The Javadoc tool prints a warning if a needed external \f2package\-list\fP file does not exist. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4403
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4404
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4405
\-linkoffline\  extdocURL\  packagelistLoc 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4406
This option is a variation of \f2\-link\fP; they both create links to javadoc\-generated documentation for external referenced classes. Use the \f2\-linkoffline\fP option when linking to a document on the web when the Javadoc tool itself is "offline" \-\- that is, it cannot access the document through a web connection. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4407
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4408
More specifically, use \f2\-linkoffline\fP if the external document's \f2package\-list\fP file is not accessible or does not exist at the \f2extdocURL\fP location but does exist at a different location, which can be specified by \f2packageListLoc\fP (typically local). Thus, if \f2extdocURL\fP is accessible only on the World Wide Web, \f2\-linkoffline\fP removes the constraint that the Javadoc tool have a web connection when generating the documentation. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4409
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4410
Another use is as a "hack" to update docs: After you have run javadoc on a full set of packages, then you can run javadoc again on onlya smaller set of changed packages, so that the updated files can be inserted back into the original set. Examples are given below. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4411
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4412
The \f2\-linkoffline\fP option takes two arguments \-\- the first for the string to be embedded in the \f2<a href>\fP links, the second telling it where to find \f2package\-list\fP: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4413
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4414
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4415
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4416
\f4extdocURL\fP is the absolute or relative URL of the directory containing the external javadoc\-generated documentation you want to link to. If relative, the value should be the relative path from the destination directory (specified with \f2\-d\fP) to the root of the packages being linked to. For more details, see \f2extdocURL\fP in the \f2\-link\fP option. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4417
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4418
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4419
\f4packagelistLoc\fP is the path or URL to the directory containing the \f2package\-list\fP file for the external documentation. This can be a URL (http: or file:) or file path, and can be absolute or relative. If relative, make it relative to the \f2current\fP directory from where javadoc was run. Do not include the \f2package\-list\fP filename. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4420
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4421
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4422
You can specify multiple \f2\-linkoffline\fP options in a given javadoc run. (Prior to 1.2.2, it could be specified only once.) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4423
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4424
\f3Example using absolute links to the external docs\fP \- Let us say you want to link to the \f2java.lang\fP, \f2java.io\fP and other Java SE Platform packages at \f2http://java.sun.com/javase/6/docs/api\fP, but your shell does not have web access. You could open the \f2package\-list\fP file in a browser at 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4425
.na
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4426
\f2http://java.sun.com/javase/6/docs/api/package\-list\fP @
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4427
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4428
http://java.sun.com/javase/6/docs/api/package\-list, save it to a local directory, and point to this local copy with the second argument, \f2packagelistLoc\fP. In this example, the package list file has been saved to the current directory "\f2.\fP" . The following command generates documentation for the package \f2com.mypackage\fP with links to the Java SE Platform packages. The generated documentation will contain links to the \f2Object\fP class, for example, in the class trees. (Other necessary options, such as \f2\-sourcepath\fP, are not shown.) 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4429
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4430
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4431
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4432
% \fP\f3javadoc \-linkoffline http://java.sun.com/javase/6/docs/api . com.mypackage\fP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4433
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4434
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4435
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4436
\f3Example using relative links to the external docs\fP \- It's not very common to use \f2\-linkoffline\fP with relative paths, for the simple reason that \f2\-link\fP usually suffices. When using \f2\-linkoffline\fP, the \f2package\-list\fP file is generally local, and when using relative links, the file you are linking to is also generally local. So it is usually unnecessary to give a different path for the two arguments to \f2\-linkoffline\fP. When the two arguments are identical, you can use \f2\-link\fP. See the \f2\-link\fP relative example. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4437
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4438
\f3Manually Creating a \fP\f4package\-list\fP\f3 File\fP \- If a \f2package\-list\fP file does not yet exist, but you know what package names your document will link to, you can create your own copy of this file by hand and specify its path with \f2packagelistLoc\fP. An example would be the previous case where the package list for \f2com.spipackage\fP did not exist when \f2com.apipackage\fP 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 \f2package\-list\fP files for packages generated with Javadoc 1.0 or 1.1, where \f2package\-list\fP files were not generated. Likewise, two companies can share their unpublished \f2package\-list\fP files, enabling them to release their cross\-linked documentation simultaneously. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4439
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4440
\f3Linking to Multiple Documents\fP \- You can include \f2\-linkoffline\fP once for each generated document you want to refer to (each option is shown on a separate line for clarity): 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4441
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4442
\f2% \fP\f4javadoc \-linkoffline\fP \f2extdocURL1\fP \f2packagelistLoc1\fP \f2\\\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4443
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4444
\f2\ \ \ \ \ \ \ \ \ \ \fP\f4\-linkoffline\fP \f2extdocURL2\fP \f2packagelistLoc2\fP \f2\\\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4445
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4446
\f2\ \ \ \ \ \ \ \ \ \ ...\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4447
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4448
\f3Updating docs\fP \- Another use for \f2\-linkoffline\fP option is useful if your project has dozens or hundreds of packages, if you have already run javadoc on the entire tree, and now, in a separate run, you want to quickly make some small changes and re\-run javadoc on just a small portion of the source tree. This is somewhat of a hack in that it works properly only if your changes are only to doc 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. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4449
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4450
First, you create a new destination directory (call it \f2update\fP) for this new small run. Let us say the original destination directory was named \f2html\fP. In the simplest example, cd to the parent of \f2html\fP. Set the first argument of \f2\-linkoffline\fP to the current directory "." and set the second argument to the relative path to \f2html\fP, where it can find \f2package\-list\fP, and pass in only the package names of the packages you want to update: 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4451
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4452
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4453
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4454
  % \fP\f3javadoc \-d update \-linkoffline . html com.mypackage\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4455
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4456
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4457
When the Javadoc tool is done, copy these generated class pages in \f2update/com/package\fP (not the overview or index), over the original files in \f2html/com/package\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4458
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4459
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4460
\-linksource\  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4461
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. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4462
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4463
\f3This option exposes \fP\f4all\fP\f3 private implementation details in the included source files, including private classes, private fields, and the bodies of private methods, \fP\f4regardless of the \fP\f4\-public\fP\f3, \fP\f4\-package\fP\f3, \fP\f4\-protected\fP\f3 and \fP\f4\-private\fP\f3 options.\fP Unless you also use the \f2\-private\fP option, not all private classes or interfaces will necessarily be accessible via links. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4464
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4465
Each link appears on the name of the identifier in its declaration. For example, the link to the source code of the \f2Button\fP class would be on the word "Button": 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4466
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4467
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4468
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4469
    public class Button
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4470
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4471
    extends Component
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4472
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4473
    implements Accessible
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4474
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4475
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4476
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4477
and the link to the source code of the \f2getLabel()\fP method in the Button class would be on the word "getLabel": 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4478
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4479
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4480
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4481
    public String getLabel()
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4482
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4483
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4484
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4485
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4486
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4487
\-group\  groupheading\  packagepattern:packagepattern:... 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4488
Separates packages on the overview page into whatever groups you specify, one group per table. You specify each group with a different \f2\-group\fP option. The groups appear on the page in the order specified on the command line; packages are alphabetized within a group. For a given \f2\-group\fP option, the packages matching the list of \f2packagepattern\fP expressions appear in a table with the heading \f2groupheading\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4489
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4490
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4491
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4492
\f4groupheading\fP can be any text, and can include white space. This text is placed in the table heading for the group. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4493
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4494
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4495
\f4packagepattern\fP can be any package name, or can be the start of any package name followed by an asterisk (\f2*\fP). The asterisk is a wildcard meaning "match any characters". This is the only wildcard allowed. Multiple patterns can be included in a group by separating them with colons (\f2:\fP). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4496
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4497
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4498
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4499
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4500
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4501
\f3NOTE: If using an asterisk in a pattern or pattern list, the pattern list must be inside quotes, such as \fP\f4"java.lang*:java.util"\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4502
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4503
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4504
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4505
If you do not supply any \f2\-group\fP option, all packages are placed in one group with the heading "Packages". If the all groups do not include all documented packages, any leftover packages appear in a separate group with the heading "Other Packages". 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4506
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4507
For example, the following option separates the four documented packages into core, extension and other packages. Notice the trailing "dot" does not appear in "java.lang*" \-\- including the dot, such as "java.lang.*" would omit the java.lang package. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4508
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4509
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4510
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4511
  % \fP\f3javadoc \-group "Core Packages" "java.lang*:java.util"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4512
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4513
            \-group "Extension Packages" "javax.*"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4514
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4515
            java.lang java.lang.reflect java.util javax.servlet java.new\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4516
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4517
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4518
This results in the groupings: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4519
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4520
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4521
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4522
Core Packages 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4523
\f2java.lang\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4524
\f2java.lang.reflect\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4525
\f2java.util\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4526
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4527
Extension Packages 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4528
\f2javax.servlet\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4529
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4530
Other Packages 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4531
\f2java.new\fP 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4532
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4533
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4534
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4535
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4536
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4537
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4538
\-nodeprecated 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4539
Prevents the generation of any deprecated API at all in the documentation. This does what \-nodeprecatedlist does, plus it does not generate any deprecated API throughout the rest of the documentation. This is useful when writing code and you don't want to be distracted by the deprecated code. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4540
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4541
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4542
\-nodeprecatedlist 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4543
Prevents the generation of the file containing the list of deprecated APIs (deprecated\-list.html) and the link in the navigation bar to that page. (However, javadoc continues to generate the deprecated API throughout the rest of the document.) This is useful if your source code contains no deprecated API, and you want to make the navigation bar cleaner. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4544
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4545
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4546
\-nosince 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4547
Omits from the generated docs the "Since" sections associated with the @since tags. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4548
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4549
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4550
\-notree 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4551
Omits the class/interface hierarchy pages from the generated docs. These are the pages you reach using the "Tree" button in the navigation bar. The hierarchy is produced by default. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4552
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4553
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4554
\-noindex 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4555
Omits the index from the generated docs. The index is produced by default. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4556
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4557
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4558
\-nohelp 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4559
Omits the HELP link in the navigation bars at the top and bottom of each page of output. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4560
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4561
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4562
\-nonavbar 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4563
Prevents the generation of the navigation bar, header and footer, otherwise found at the top and bottom of the generated pages. Has no affect on the "bottom" option. The \f2\-nonavbar\fP option is useful when you are interested only in the content and have no need for navigation, such as converting the files to PostScript or PDF for print only. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4564
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4565
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4566
\-helpfile\  path/filename 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4567
Specifies the path of an alternate help file \f2path/filename\fP that the HELP link in the top and bottom navigation bars link to. Without this option, the Javadoc tool automatically creates a help file \f2help\-doc.html\fP that is hard\-coded in the Javadoc tool. This option enables you to override this default. The \f2filename\fP can be any name and is not restricted to \f2help\-doc.html\fP \-\- the Javadoc tool will adjust the links in the navigation bar accordingly. For example: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4568
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4569
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4570
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4571
  % \fP\f3javadoc \-helpfile /home/user/myhelp.html java.awt\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4572
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4573
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4574
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4575
\-stylesheetfile\  path/filename 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4576
Specifies the path of an alternate HTML stylesheet file. Without this option, the Javadoc tool automatically creates a stylesheet file \f2stylesheet.css\fP that is hard\-coded in the Javadoc tool. This option enables you to override this default. The \f2filename\fP can be any name and is not restricted to \f2stylesheet.css\fP. For example: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4577
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4578
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4579
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4580
  % \fP\f3javadoc \-stylesheetfile /home/user/mystylesheet.css com.mypackage\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4581
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4582
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4583
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4584
\-serialwarn 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4585
Generates compile\-time warnings for missing @serial tags. By default, Javadoc 1.2.2 (and later versions) generates no serial warnings. (This is a reversal from earlier versions.) Use this option to display the serial warnings, which helps to properly document default serializable fields and \f2writeExternal\fP methods. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4586
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4587
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4588
\-charset\  name 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4589
Specifies the HTML character set for this document. The name should be a preferred MIME name as given in the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4590
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4591
\f2IANA Registry\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4592
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4593
http://www.iana.org/assignments/character\-sets. For example: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4594
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4595
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4596
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4597
  % \fP\f3javadoc \-charset "iso\-8859\-1" mypackage\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4598
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4599
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4600
would insert the following line in the head of every generated page:  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4601
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4602
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4603
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4604
   <META http\-equiv="Content\-Type" content="text/html; charset=ISO\-8859\-1">
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4605
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4606
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4607
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4608
This META tag is described in the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4609
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4610
\f2HTML standard\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4611
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4612
http://www.w3.org/TR/REC\-html40/charset.html#h\-5.2.2. (4197265 and 4137321) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4613
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4614
Also see \-encoding and \-docencoding. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4615
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4616
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4617
\-docencoding\  name 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4618
Specifies the encoding of the generated HTML files. The name should be a preferred MIME name as given in the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4619
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4620
\f2IANA Registry\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4621
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4622
http://www.iana.org/assignments/character\-sets. If you omit this option but use \-encoding, then the encoding of the generated HTML files is determined by \-encoding. Example: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4623
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4624
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4625
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4626
  % \fP\f3javadoc \-docencoding "ISO\-8859\-1" mypackage\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4627
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4628
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4629
Also see \-encoding and \-charset. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4630
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4631
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4632
\-keywords 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4633
Adds HTML meta keyword tags to the generated file for each class. These tags can help the page be found by search engines that look for meta tags. (Most search engines that search the entire Internet do not look at meta tags, because pages can misuse them; but search engines offered by companies that confine their search to their own website can benefit by looking at meta tags.) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4634
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4635
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 String starts with these keywords: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4636
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4637
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4638
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4639
     <META NAME="keywords" CONTENT="java.lang.String class">
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4640
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4641
     <META NAME="keywords" CONTENT="CASE_INSENSITIVE_ORDER">
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4642
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4643
     <META NAME="keywords" CONTENT="length()">
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4644
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4645
     <META NAME="keywords" CONTENT="charAt()">
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4646
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4647
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4648
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4649
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4650
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4651
\-tag\ \ tagname:Xaoptcmf:"taghead" 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4652
Enables the Javadoc tool to interpret a simple, one\-argument custom block tag \f2@\fP\f2tagname\fP in doc comments. So the Javadoc tool can "spell\-check" tag names, it is important to include a \f2\-tag\fP option for every custom tag that is present in the source code, disabling (with \f2X\fP) those that are not being output in the current run. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4653
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4654
The colon (\f4:\fP) is always the separator. To use a colon in \f2tagname\fP, see Use of Colon in Tag Name. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4655
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4656
The \f2\-tag\fP option outputs the tag's heading \f2taghead\fP in bold, followed on the next line by the text from its single argument, as shown in the example below. Like any block tag, this argument's text can contain inline tags, which are also interpreted. The output is similar to standard one\-argument tags, such as \f2@return\fP and \f2@author\fP. Omitting \f2taghead\fP causes \f2tagname\fP to appear as the heading. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4657
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4658
\f3Placement of tags\fP \- The \f4Xaoptcmf\fP part of the argument determines where in the source code the tag is allowed to be placed, and whether the tag can be disabled (using \f2X\fP). You can supply either \f4a\fP, to allow the tag in all places, or any combination of the other letters: \f4X\fP (disable tag)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4659
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4660
\f4a\fP (all)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4661
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4662
\f4o\fP (overview)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4663
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4664
\f4p\fP (packages)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4665
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4666
\f4t\fP (types, that is classes and interfaces)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4667
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4668
\f4c\fP (constructors)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4669
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4670
\f4m\fP (methods)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4671
.br
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4672
\f4f\fP (fields) 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4673
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4674
\f3Examples of single tags\fP \- An example of a tag option for a tag that can be used anywhere in the source code is: 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4675
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4676
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4677
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4678
    \-tag todo:a:"To Do:"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4679
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4680
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4681
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4682
If you wanted @todo to be used only with constructors, methods and fields, you would use: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4683
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4684
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4685
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4686
    \-tag todo:cmf:"To Do:"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4687
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4688
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4689
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4690
Notice the last colon (\f2:\fP) above is not a parameter separator, but is part of the heading text (as shown below). You would use either tag option for source code that contains the tag \f2@todo\fP, such as: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4691
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4692
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4693
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4694
     @todo The documentation for this method needs work.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4695
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4696
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4697
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4698
\f3Use of Colon in Tag Name\fP \- A colon can be used in a tag name if it is escaped with a backslash. For this doc comment: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4699
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4700
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4701
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4702
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4703
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4704
     * @ejb:bean
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4705
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4706
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4707
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4708
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4709
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4710
use this tag option:  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4711
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4712
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4713
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4714
    \-tag ejb\\\\:bean:a:"EJB Bean:"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4715
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4716
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4717
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4718
\f3Spell\-checking tag names (Disabling tags)\fP \- Some developers put custom tags in the source code that they don't always want to output. In these cases, it is important to list all tags that are present in the source code, enabling the ones you want to output and disabling the ones you don't want to output. The presence of \f2X\fP disables the tag, while its absence enables the tag. This gives the Javadoc tool enough information to know if a tag it encounters is unknown, probably the results of a typo or a misspelling. It prints a warning in these cases. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4719
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4720
You can add \f2X\fP to the placement values already present, so that when you want to enable the tag, you can simply delete the \f2X\fP. For example, if @todo is a tag that you want to suppress on output, you would use: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4721
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4722
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4723
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4724
    \-tag todo:Xcmf:"To Do:"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4725
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4726
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4727
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4728
or, if you'd rather keep it simple: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4729
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4730
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4731
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4732
    \-tag todo:X
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4733
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4734
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4735
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4736
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4737
The syntax \f2\-tag todo:X\fP works even if \f2@todo\fP is defined by a taglet. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4738
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4739
\f3Order of tags\fP \- The order of the \f2\-tag\fP (and \f2\-taglet\fP) options determine 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. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4740
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4741
If \f2\-tag\fP is missing, then the position of \f2\-taglet\fP 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 \f2\-taglet\fP and \f2\-tag\fP both have the name "todo", the one that appears last on the command line will determine its order. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4742
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4743
\f3Example of a complete set of tags\fP \- This example inserts "To Do" after "Parameters" and before "Throws" in the output. By using "X", it also specifies that @example is a tag that might be encountered in the source code that should not be output during this run. Notice that if you use @argfile, you can put the tags on separate lines in an argument file like this (no line continuation characters needed): 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4744
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4745
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4746
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4747
   \-tag param
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4748
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4749
   \-tag return
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4750
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4751
   \-tag todo:a:"To Do:"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4752
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4753
   \-tag throws
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4754
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4755
   \-tag see
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4756
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4757
   \-tag example:X
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4758
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4759
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4760
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4761
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4762
When javadoc parses the doc comments, any tag encountered that is neither a standard tag nor passed in with \f2\-tag\fP or \f2\-taglet\fP is considered unknown, and a warning is thrown. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4763
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4764
The standard tags are initially stored internally in a list in their default order. Whenever \f2\-tag\fP options are used, those tags get appended to this list \-\- standard tags are moved from their default position. Therefore, if a \f2\-tag\fP option is omitted for a standard tag, it remains in its default position. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4765
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4766
\f3Avoiding Conflicts\fP \- If you want to slice out your own namespace, you can use a dot\-separated naming convention similar to that used for packages: \f2com.mycompany.todo\fP. Sun 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 Sun. In other words, if you create a tag or taglet \f2@todo\fP, it will always have the same behavior you define, even if Sun later creates a standard tag of the same name. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4767
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4768
\f3Annotations vs. Javadoc Tags\fP \- In general, if the markup you want to add is intended to affect or produce documentation, it should probably be a javadoc tag; otherwise, it should be an annotation. See 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4769
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4770
\f2Comparing Annotations and Javadoc Tags\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4771
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4772
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html#annotations 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4773
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4774
You can also create more complex block tags, or custom inline tags with the \-taglet option. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4775
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4776
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4777
\-taglet\ \ class 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4778
Specifies the class file that starts the taglet used in generating the documentation for that tag. Use the fully\-qualified name for \f2class\fP. 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: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4779
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4780
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4781
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4782
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4783
\f2Taglet Overview\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4784
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4785
http://java.sun.com/javase/6/docs/technotes/guides/javadoc/taglet/overview.html 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4786
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4787
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4788
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. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4789
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4790
Taglets can only determine where a tag should appear and in what form. All other decisions are made by the doclet. So 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. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4791
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4792
Use the \f2\-tagletpath\fP option to specify the path to the taglet. Here is an example that inserts the "To Do" taglet after "Parameters" and ahead of "Throws" in the generated pages: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4793
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4794
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4795
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4796
    \-taglet com.sun.tools.doclets.ToDoTaglet
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4797
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4798
    \-tagletpath /home/taglets 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4799
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4800
    \-tag return
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4801
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4802
    \-tag param
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4803
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4804
    \-tag todo
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4805
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4806
    \-tag throws
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4807
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4808
    \-tag see
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4809
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4810
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4811
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4812
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4813
Alternatively, you can use the \f2\-taglet\fP option in place of its \f2\-tag\fP option, but that may be harder to read. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4814
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4815
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4816
\-tagletpath\ \ tagletpathlist 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4817
Specifies the search paths for finding taglet class files (.class). The \f2tagletpathlist\fP can contain multiple paths by separating them with a colon (\f2:\fP). The Javadoc tool will search in all subdirectories of the specified paths. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4818
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4819
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4820
\-docfilessubdirs\  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4821
Enables deep copying of "\f2doc\-files\fP" directories. In other words, subdirectories and all contents are recursively copied to the destination. For example, the directory \f2doc\-files/example/images\fP and all its contents would now be copied. There is also an option to exclude subdirectories. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4822
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4823
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4824
\-excludedocfilessubdir\ \ name1:name2... 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4825
Excludes any "\f2doc\-files\fP" subdirectories with the given names. This prevents the copying of SCCS and other source\-code\-control subdirectories. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4826
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4827
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4828
\-noqualifier\ \ all\  | \ packagename1:packagename2:... 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4829
Omits qualifying package name from ahead of class names in output. The argument to \f2\-noqualifier\fP is either "\f2all\fP" (all package qualifiers are omitted) or a colon\-separate list of packages, with wildcards, to be removed as qualifiers. The package name is removed from places where class or interface names appear. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4830
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4831
The following example omits all package qualifiers: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4832
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4833
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4834
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4835
    \-noqualifier all
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4836
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4837
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4838
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4839
The following example omits "java.lang" and "java.io" package qualifiers: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4840
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4841
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4842
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4843
    \-noqualifier java.lang:java.io
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4844
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4845
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4846
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4847
The following example omits package qualifiers starting with "java", and "com.sun" subpackages (but not "javax"): 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4848
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4849
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4850
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4851
    \-noqualifier java.*:com.sun.*
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4852
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4853
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4854
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4855
Where a package qualifier would appear due to the above behavior, the name can be suitably shortened \-\- see How a name is displayed. This rule is in effect whether or not \f2\-noqualifier\fP is used. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4856
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4857
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4858
\-notimestamp\  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4859
Suppresses the timestamp, which is hidden in an HTML comment in the generated HTML near the top of each page. Useful when you want to run javadoc on two source bases and diff them, as it prevents timestamps from causing a diff (which would otherwise be a diff on every page). The timestamp includes the javadoc version number, and currently looks like this: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4860
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4861
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4862
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4863
     <!\-\- Generated by javadoc (build 1.5.0_01) on Thu Apr 02 14:04:52 IST 2009 \-\->
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4864
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4865
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4866
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4867
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4868
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4869
\-nocomment\  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4870
Suppress the entire comment body, including the main description and all tags, generating only declarations. This option enables re\-using source files originally intended for a different purpose, to produce skeleton HTML documentation at the early stages of a new project. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4871
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4872
.SH "COMMAND LINE ARGUMENT FILES"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4873
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4874
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4875
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4876
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4877
To shorten or simplify the javadoc command line, you can specify one or more files that themselves contain arguments to the \f2javadoc\fP command (except \f2\-J\fP options). This enables you to create javadoc commands of any length on any operating system.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4878
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4879
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4880
An argument file can include javac options and source filenames in any combination. The arguments within a file can be space\-separated or newline\-separated. If a filename contains embedded spaces, put the whole filename in double quotes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4881
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4882
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4883
Filenames within an argument file are relative to the current directory, not the location of the argument file. Wildcards (*) are not allowed in these lists (such as for specifying \f2*.java\fP). Use of the '\f2@\fP' character to recursively interpret files is not supported. The \f2\-J\fP options are not supported because they are passed to the launcher, which does not support argument files.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4884
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4885
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4886
When executing javadoc, pass in the path and name of each argument file with the '\f2@\fP' leading character. When javadoc encounters an argument beginning with the character `\f2@\fP', it expands the contents of that file into the argument list.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4887
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4888
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4889
Example \- Single Arg File
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4890
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4891
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4892
You could use a single argument file named "\f2argfile\fP" to hold all Javadoc arguments:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4893
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4894
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4895
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4896
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4897
  % \fP\f3javadoc @argfile\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4898
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4899
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4900
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4901
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4902
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4903
This argument file could contain the contents of both files shown in the next example.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4904
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4905
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4906
Example \- Two Arg Files
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4907
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4908
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4909
You can create two argument files \-\- one for the Javadoc options and the other for the package names or source filenames: (Notice the following lists have no line\-continuation characters.)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4910
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4911
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4912
Create a file named "\f2options\fP" containing:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4913
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4914
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4915
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4916
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4917
     \-d docs\-filelist 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4918
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4919
     \-use 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4920
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4921
     \-splitindex
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4922
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4923
     \-windowtitle 'Java(TM) SE 7 API Specification'
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4924
.fl
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4925
     \-doctitle 'Java(TM) SE 7 API Specification'
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4926
.fl
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4927
     \-header '<b>Java(TM); SE 7'
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4928
.fl
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4929
     \-bottom 'Copyright 1993\-2009 Sun Microsystems, Inc. All Rights Reserved.'
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4930
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4931
     \-group "Core Packages" "java.*"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4932
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4933
     \-overview /java/pubs/ws/1.7.0/src/share/classes/overview\-core.html
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4934
.fl
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  4935
     \-sourcepath /java/pubs/ws/1.7.0/src/share/classes
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4936
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4937
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4938
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4939
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4940
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4941
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4942
Create a file named "\f2packages\fP" containing:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4943
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4944
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4945
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4946
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4947
     com.mypackage1
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4948
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4949
     com.mypackage2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4950
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4951
     com.mypackage3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4952
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4953
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4954
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4955
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4956
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4957
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4958
You would then run javadoc with:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4959
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4960
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4961
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4962
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4963
  % \fP\f3javadoc @options @packages\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4964
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4965
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4966
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4967
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4968
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4969
Example \- Arg Files with Paths
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4970
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4971
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4972
The argument files can have paths, but any filenames inside the files are relative to the current working directory (not \f2path1\fP or \f2path2\fP):
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4973
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4974
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4975
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4976
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4977
  % \fP\f3javadoc @path1/options @path2/packages\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4978
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4979
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4980
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4981
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4982
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4983
Example \- Option Arguments
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4984
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4985
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4986
Here's an example of saving just an argument to a javadoc option in an argument file. We'll use the \f2\-bottom\fP option, since it can have a lengthy argument. You could create a file named "\f2bottom\fP" containing its text argument:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4987
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4988
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4989
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4990
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4991
'<font size="\-1"><a href="http://java.sun.com/cgi\-bin/bugreport.cgi">Submit a 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4992
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4993
bug or feature</a><br><br>Java is a trademark or registered trademark of 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4994
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4995
Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993\-2000 Sun 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4996
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4997
Microsystems, Inc. 901 San Antonio Road,<br>Palo Alto, California, 94303, U.S.A. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4998
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  4999
All Rights Reserved.</font>'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5000
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5001
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5002
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5003
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5004
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5005
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5006
Then run the Javadoc tool with:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5007
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5008
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5009
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5010
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5011
  % \fP\f3javadoc \-bottom @bottom @packages\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5012
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5013
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5014
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5015
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5016
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5017
Or you could include the \f2\-bottom\fP option at the start of the argument file, and then just run it as:
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5018
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5019
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5020
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5021
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5022
  % \fP\f3javadoc @bottom @packages\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5023
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5024
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5025
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5026
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5027
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5028
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5029
.SH "Name"
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5030
Running
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5031
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5032
.SH "RUNNING JAVADOC"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5033
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5034
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5035
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5036
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5037
\f3Version Numbers\fP \- The version number of javadoc can be determined using \f3javadoc \-J\-version\fP. The version number of the standard doclet appears in its output stream. It can be turned off with \f2\-quiet\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5038
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5039
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5040
\f3Public programmatic interface\fP \- To invoke the Javadoc tool from within programs written in the Java language. This interface is in \f2com.sun.tools.javadoc.Main\fP (and javadoc is re\-entrant). For more details, see 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5041
.na
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5042
\f2Standard Doclet\fP @
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5043
.fi
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5044
http://java.sun.com/javase/6/docs/technotes/guides/javadoc/standard\-doclet.html#runningprogrammatically.
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5045
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5046
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5047
\f3Running Doclets\fP \- The instructions given below are for invoking the standard HTML doclet. To invoke a custom doclet, use the \-doclet and \-docletpath options. For full, working examples of running a particular doclet, see the 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5048
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5049
\f2MIF Doclet documentation\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5050
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5051
http://java.sun.com/j2se/javadoc/mifdoclet/docs/mifdoclet.html.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5052
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5053
.SH "SIMPLE EXAMPLES"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5054
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5055
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5056
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5057
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5058
You can run javadoc on entire packages or individual source files. Each package name has a corresponding directory name. In the following examples, the source files are located at \f2/home/src/java/awt/*.java\fP. The destination directory is \f2/home/html\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5059
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5060
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5061
Documenting One or More Packages
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5062
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5063
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5064
To document a package, the source files (\f2*.java\fP) for that package must be located in a directory having the same name as the package. If a package name is made up of several identifiers (separated by dots, such as \f2java.awt.color\fP), each subsequent identifier must correspond to a deeper subdirectory (such as \f2java/awt/color\fP). You may split the source files for a single package among two such directory trees located at different places, as long as \f2\-sourcepath\fP points to them both \-\- for example \f2src1/java/awt/color\fP and \f2src2/java/awt/color\fP.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5065
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5066
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5067
You can run javadoc either by changing directories (with \f2cd\fP) or by using \f2\-sourcepath\fP option. The examples below illustrate both alternatives.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5068
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5069
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5070
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5071
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5072
\f3Case 1 \- Run recursively starting from one or more packages\fP \- This example uses \-sourcepath so javadoc can be run from any directory and \-subpackages (a new 1.4 option) for recursion. It traverses the subpackages of the \f2java\fP directory excluding packages rooted at \f2java.net\fP and \f2java.lang\fP. Notice this excludes \f2java.lang.ref\fP, a subpackage of \f2java.lang\fP). 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5073
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5074
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5075
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5076
  % \fP\f3javadoc \fP\f3\-d\fP\f3 /home/html \fP\f3\-sourcepath\fP\f3 /home/src \fP\f3\-subpackages\fP\f3 java \fP\f3\-exclude\fP\f3 java.net:java.lang\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5077
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5078
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5079
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5080
To also traverse down other package trees, append their names to the \f2\-subpackages\fP argument, such as \f2java:javax:org.xml.sax\fP.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5081
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5082
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5083
\f3Case 2 \- Run on explicit packages after changing to the "root" source directory\fP \- Change to the parent directory of the fully\-qualified package. Then run javadoc, supplying names of one or more packages you want to document: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5084
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5085
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5086
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5087
  % \fP\f3cd /home/src/\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5088
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5089
  % \f3javadoc \-d /home/html java.awt java.awt.event\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5090
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5091
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5092
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5093
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5094
\f3Case 3 \- Run from any directory on explicit packages in a single directory tree\fP \- In this case, it doesn't matter what the current directory is. Run javadoc supplying \f2\-sourcepath\fP with the parent directory of the top\-level package, and supplying names of one or more packages you want to document: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5095
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5096
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5097
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5098
  % \fP\f3javadoc \-d /home/html \-sourcepath /home/src java.awt java.awt.event\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5099
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5100
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5101
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5102
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5103
\f3Case 4 \- Run from any directory on explicit packages in multiple directory trees\fP \- This is the same as case 3, but for packages in separate directory trees. Run javadoc supplying \f2\-sourcepath\fP with the path to each tree's root (colon\-separated) and supply names of one or more packages you want to document. All source files for a given package do not need to be located under a single root directory \-\- they just need to be found somewhere along the sourcepath. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5104
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5105
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5106
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5107
  % \fP\f3javadoc \-d /home/html \-sourcepath /home/src1:/home/src2 java.awt java.awt.event\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5108
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5109
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5110
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5111
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5112
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5113
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5114
Result: All cases generate HTML\-formatted documentation for the public and protected classes and interfaces in packages \f2java.awt\fP and \f2java.awt.event\fP and save the HTML files in the specified destination directory (\f2/home/html\fP). Because two or more packages are being generated, the document has three HTML frames \-\- for the list of packages, the list of classes, and the main class pages.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5115
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5116
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5117
Documenting One or More Classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5118
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5119
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5120
The second way to run the Javadoc tool is by passing in one or more source files (\f2.java\fP). You can run javadoc either of the following two ways \-\- by changing directories (with \f2cd\fP) or by fully\-specifying the path to the \f2.java\fP files. Relative paths are relative to the current directory. The \f2\-sourcepath\fP option is ignored when passing in source files. You can use command line wildcards, such as asterisk (*), to specify groups of classes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5121
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5122
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5123
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5124
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5125
\f3Case 1 \- Changing to the source directory\fP \- Change to the directory holding the \f2.java\fP files. Then run javadoc, supplying names of one or more source files you want to document. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5126
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5127
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5128
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5129
  % \fP\f3cd /home/src/java/awt\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5130
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5131
  % \f3javadoc \-d /home/html Button.java Canvas.java Graphics*.java\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5132
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5133
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5134
This example generates HTML\-formatted documentation for the classes \f2Button\fP, \f2Canvas\fP and classes beginning with \f2Graphics\fP. Because source files rather than package names were passed in as arguments to javadoc, the document has two frames \-\- for the list of classes and the main page. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5135
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5136
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5137
\f3Case 2 \- Changing to the package root directory\fP \- This is useful for documenting individual source files from different subpackages off the same root. Change to the package root directory, and supply the source files with paths from the root. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5138
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5139
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5140
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5141
  % \fP\f3cd /home/src/\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5142
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5143
  % \f3javadoc \-d /home/html java/awt/Button.java java/applet/Applet.java\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5144
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5145
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5146
This example generates HTML\-formatted documentation for the classes \f2Button\fP and \f2Applet\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5147
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5148
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5149
\f3Case 3 \- From any directory\fP \- In this case, it doesn't matter what the current directory is. Run javadoc supplying the absolute path (or path relative to the current directory) to the \f2.java\fP files you want to document. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5150
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5151
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5152
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5153
  % \fP\f3javadoc \-d /home/html /home/src/java/awt/Button.java /home/src/java/awt/Graphics*.java\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5154
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5155
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5156
This example generates HTML\-formatted documentation for the class \f2Button\fP and classes beginning with \f2Graphics\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5157
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5158
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5159
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5160
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5161
Documenting Both Packages and Classes
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5162
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5163
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5164
You can document entire packages and individual classes at the same time. Here's an example that mixes two of the previous examples. You can use \f2\-sourcepath\fP for the path to the packages but not for the path to the individual classes.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5165
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5166
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5167
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5168
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5169
  % \fP\f3javadoc \-d /home/html \-sourcepath /home/src java.awt /home/src/java/applet/Applet.java\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5170
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5171
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5172
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5173
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5174
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5175
This example generates HTML\-formatted documentation for the package \f2java.awt\fP and class \f2Applet\fP. (The Javadoc tool determines the package name for \f2Applet\fP from the package declaration, if any, in the \f2Applet.java\fP source file.)
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5176
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5177
.SH "REAL WORLD EXAMPLE"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5178
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5179
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5180
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5181
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5182
The Javadoc tool has many useful options, some of which are more commonly used than others. Here is effectively the command we use to run the Javadoc tool on the Java platform API. We use 180MB of memory to generate the documentation for the 1500 (approx.) public and protected classes in the Java SE Platform, Standard Edition, v1.2.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5183
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5184
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5185
The same example is shown twice \-\- first as executed on the command line, then as executed from a makefile. It uses absolute paths in the option arguments, which enables the same \f2javadoc\fP command to be run from any directory.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5186
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5187
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5188
Command Line Example
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5189
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5190
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5191
This command line example is over 900 characters, which is too long for some shells, such as DOS. You can use a command line argument file (or write a shell script) to workaround this limitation.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5192
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5193
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5194
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5195
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5196
% javadoc \-sourcepath /java/jdk/src/share/classes            \\ 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5197
.fl
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5198
    \-overview /java/jdk/src/share/classes/overview.html      \\ 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5199
.fl
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5200
    \-d /java/jdk/build/api                                   \\ 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5201
.fl
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5202
    \-use                                                     \\ 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5203
.fl
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5204
    \-splitIndex                                              \\ 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5205
.fl
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5206
    \-windowtitle 'Java(TM) Platform, Standard Edition 7 API Specification'    \\ 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5207
.fl
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5208
    \-doctitle 'Java(TM) Platform, Standard Edition 7 API Specification' \\ 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5209
.fl
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5210
    \-header '<b>Java(TM) SE </b><br><font size="\-1">7</font>' \\ 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5211
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5212
    \-bottom '<font size="\-1"><a href="http://java.sun.com/cgi\-bin/bugreport.cgi">Submit 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5213
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5214
a bug or feature</a><br><br>Java is a trademark or registered trademark of Sun Microsystems, 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5215
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5216
Inc. in the US and other countries.<br>Copyright 1993\-1999 Sun Microsystems, Inc. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5217
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5218
901 San Antonio Road,<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font>' \\  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5219
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5220
    \-group "Core Packages" "java.*:com.sun.java.*:org.omg.*" \\ 
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5221
.fl
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5222
    \-group "Extension Packages" "javax.*"                    \\ 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5223
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5224
    \-J\-Xmx180m                                               \\  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5225
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5226
    @packages
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5227
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5228
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5229
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5230
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5231
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5232
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5233
where \f2packages\fP is the name of a file containing the packages to process, such as \f2java.applet java.lang\fP. None of the options should contain any newline characters between the single quotes. (For example, if you copy and paste this example, delete the newline characters from the \f2\-bottom\fP option.) See the other notes listed below.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5234
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5235
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5236
Makefile Example
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5237
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5238
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5239
This is an example of a GNU makefile. For an example of a Windows makefile, see 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5240
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5241
\f2creating a makefile for Windows\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5242
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5243
http://java.sun.com/j2se/javadoc/faq/index.html#makefiles.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5244
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5245
.nf
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5246
\f3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5247
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5248
javadoc \-\fP\f3sourcepath\fP\f3 $(SRCDIR)              \\   /* Sets path for source files     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5249
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5250
        \-\fP\f3overview\fP\f3 $(SRCDIR)/overview.html  \\   /* Sets file for overview text    */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5251
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5252
        \-\fP\f3d\fP\f3 /java/jdk/build/api             \\   /* Sets destination directory     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5253
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5254
        \-\fP\f3use\fP\f3                               \\   /* Adds "Use" files               */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5255
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5256
        \-\fP\f3splitIndex\fP\f3                        \\   /* Splits index A\-Z               */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5257
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5258
        \-\fP\f3windowtitle\fP\f3 $(WINDOWTITLE)        \\   /* Adds a window title            */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5259
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5260
        \-\fP\f3doctitle\fP\f3 $(DOCTITLE)              \\   /* Adds a doc title               */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5261
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5262
        \-\fP\f3header\fP\f3 $(HEADER)                  \\   /* Adds running header text       */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5263
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5264
        \-\fP\f3bottom\fP\f3 $(BOTTOM)                  \\   /* Adds text at bottom            */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5265
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5266
        \-\fP\f3group\fP\f3 $(GROUPCORE)                \\   /* 1st subhead on overview page   */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5267
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5268
        \-\fP\f3group\fP\f3 $(GROUPEXT)                 \\   /* 2nd subhead on overview page   */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5269
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5270
        \-\fP\f3J\fP\f3\-Xmx180m                         \\   /* Sets memory to 180MB           */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5271
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5272
        java.lang java.lang.reflect        \\   /* Sets packages to document      */
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5273
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5274
        java.util java.io java.net         \\ 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5275
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5276
        java.applet
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5277
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5278
        
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5279
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5280
WINDOWTITLE = 'Java(TM) SE 7 API Specification'
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5281
.fl
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5282
DOCTITLE = 'Java(TM) Platform Standard Edition 7 API Specification'
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5283
.fl
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5284
HEADER = '<b>Java(TM) SE 7</font>'
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5285
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5286
BOTTOM = '<font size="\-1"><a href="http://java.sun.com/cgi\-bin/bugreport.cgi">Submit
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5287
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5288
    a bug or feature</a><br><br>Java is a trademark or registered trademark 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5289
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5290
    of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993\-1999    
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5291
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5292
    Sun Microsystems, Inc. 901 San Antonio Road,<br>Palo Alto, California, 94303, U.S.A.  
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5293
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5294
    All Rights Reserved.</font>'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5295
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5296
GROUPCORE = '"Core Packages" "java.*:com.sun.java.*:org.omg.*"'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5297
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5298
GROUPEXT  = '"Extension Packages" "javax.*"'
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5299
.fl
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5300
SRCDIR = '/java/jdk/1.7.0/src/share/classes'
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5301
.fl
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5302
\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5303
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5304
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5305
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5306
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5307
Single quotes are used to surround makefile arguments.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5308
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5309
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5310
\f3NOTES\fP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5311
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5312
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5313
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5314
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5315
If you omit the \f2\-windowtitle\fP option, the Javadoc tool copies the doc title to the window title. The \f2\-windowtitle\fP text is basically the same as the \f2\-doctitle\fP but without HTML tags, to prevent those tags from appearing as raw text in the window title. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5316
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5317
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5318
If you omit the \f2\-footer\fP option, as done here, the Javadoc tool copies the header text to the footer. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5319
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5320
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5321
Other important options you might want to use but not needed in this example are \-\f2classpath\fP and \-\f2link\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5322
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5323
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5324
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5325
.SH "TROUBLESHOOTING"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5326
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5327
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5328
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5329
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5330
General Troubleshooting
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5331
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5332
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5333
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5334
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5335
\f3Javadoc FAQ\fP \- Commonly\-encountered bugs and troubleshooting tips can be found on the 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5336
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5337
\f2Javadoc FAQ\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5338
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5339
http://java.sun.com/j2se/javadoc/faq/index.html#B 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5340
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5341
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5342
\f3Bugs and Limitations\fP \- You can also see some bugs listed at Important Bug Fixes and Changes. 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5343
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5344
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5345
\f3Version number\fP \- See version numbers. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5346
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5347
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5348
\f3Documents only legal classes\fP \- When documenting a package, javadoc only reads files whose names are composed of legal class names. You can prevent javadoc from parsing a file by including, for example, a hyphen "\-" in its filename. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5349
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5350
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5351
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5352
.SS 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5353
Errors and Warnings
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5354
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5355
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5356
Error and warning messages contain the filename and line number to the declaration line rather than to the particular line in the doc comment.
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5357
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5358
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5359
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5360
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5361
\f2"error: cannot read: Class1.java"\fP the Javadoc tool is trying to load the class Class1.java in the current directory. The class name is shown with its path (absolute or relative), which in this case is the same as \f2./Class1.java\fP. 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5362
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5363
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5364
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5365
.SH "ENVIRONMENT"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5366
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5367
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5368
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5369
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5370
.TP 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5371
CLASSPATH 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5372
Environment variable that provides the path which javadoc uses to find user class files. This environment variable is overridden by the \f2\-classpath\fP option. Separate directories with a colon, for example: 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5373
.:/home/classes:/usr/local/java/classes 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5374
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5375
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5376
.LP
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5377
.SH "SEE ALSO"
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5378
.LP
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5379
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5380
.LP
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5381
.RS 3
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5382
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5383
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5384
javac(1) 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5385
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5386
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5387
java(1) 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5388
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5389
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5390
jdb(1) 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5391
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5392
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5393
javah(1) 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5394
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5395
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5396
javap(1) 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5397
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5398
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5399
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5400
\f2Javadoc Home Page\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5401
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5402
http://java.sun.com/j2se/javadoc/index.jsp 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5403
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5404
o
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5405
.na
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5406
\f2How to Write Doc Comments for Javadoc\fP @
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5407
.fi
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5408
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html 
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5409
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5410
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5411
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5412
\f2Setting the Class Path\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5413
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5414
http://java.sun.com/javase/6/docs/technotes/tools/index.html#general 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5415
.TP 2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5416
o
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5417
.na
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5418
\f2How Javac and Javadoc Find Classes\fP @
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5419
.fi
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5420
http://java.sun.com/javase/6/docs/technotes/tools/findingclasses.html#srcfiles (tools.jar) 
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5421
.RE
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5422
90ce3da70b43 Initial load
duke
parents:
diff changeset
  5423
.LP
5865
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5424
.LP
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5425
.TS
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5426
.if \n+(b.=1 .nr d. \n(.c-\n(c.-1
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5427
.de 35
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5428
.ps \n(.s
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5429
.vs \n(.vu
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5430
.in \n(.iu
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5431
.if \n(.u .fi
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5432
.if \n(.j .ad
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5433
.if \n(.j=0 .na
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5434
..
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5435
.nf
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5436
.nr #~ 0
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5437
.if n .nr #~ 0.6n
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5438
.ds #d .d
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5439
.if \(ts\n(.z\(ts\(ts .ds #d nl
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5440
.fc
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5441
.nr 33 \n(.s
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5442
.rm 80
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5443
.nr 80 0
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5444
.80
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5445
.rm 80
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5446
.nr 38 1n
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5447
.nr 79 0
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5448
.nr 40 \n(79+(0*\n(38)
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5449
.nr 80 +\n(40
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5450
.nr TW \n(80
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5451
.if t .if \n(TW>\n(.li .tm Table at line 3869 file Input is too wide - \n(TW units
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5452
.fc  
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5453
.nr #T 0-1
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5454
.nr #a 0-1
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5455
.eo
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5456
.de T#
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5457
.ds #d .d
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5458
.if \(ts\n(.z\(ts\(ts .ds #d nl
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5459
.mk ##
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5460
.nr ## -1v
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5461
.ls 1
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5462
.ls
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5463
..
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5464
.ec
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5465
.fc
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5466
.nr T. 1
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5467
.T# 1
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5468
.35
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5469
.TE
47da38a8c0f0 6955341: Oracle rebranding changes for man pages
bpatel
parents: 5506
diff changeset
  5470
.if \n-(b.=0 .nr c. \n(.c-\n(d.-3
2692
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5471
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5472
.LP
345bc8d65b19 6837214: Update JDK7 man pages
tbell
parents: 2
diff changeset
  5473