langtools/src/jdk.javadoc/share/classes/com/sun/javadoc/Doc.java
author naoto
Tue, 29 Mar 2016 17:06:33 -0700
changeset 36739 145210aba850
parent 25874 83c19f00452c
child 38617 d93a7f64e231
permissions -rw-r--r--
8152704: jlink command line output/help message improvement Reviewed-by: mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
     2
 * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
 *
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    23
 * questions.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
06bc494ca11e Initial load
duke
parents:
diff changeset
    26
package com.sun.javadoc;
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
import java.text.BreakIterator;
06bc494ca11e Initial load
duke
parents:
diff changeset
    29
import java.util.Locale;
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
/**
06bc494ca11e Initial load
duke
parents:
diff changeset
    32
 * Represents Java language constructs (package, class, constructor,
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
 * method, field) which have comments and have been processed by this
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
 * run of javadoc.  All Doc objects are unique, that is, they
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
 * are == comparable.
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
 * @since 1.2
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
 * @author Robert Field
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
 * @author Scott Seligman (generics, enums, annotations)
06bc494ca11e Initial load
duke
parents:
diff changeset
    40
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
public interface Doc extends Comparable<Object> {
06bc494ca11e Initial load
duke
parents:
diff changeset
    42
06bc494ca11e Initial load
duke
parents:
diff changeset
    43
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    44
     * Return the text of the comment for this doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
     * Tags have been removed.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
    46
     *
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
    47
     * @return the text of the comment for this doc item.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
    String commentText();
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
     * Return all tags in this Doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
     * @return an array of {@link Tag} objects containing all tags on
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
     *         this Doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
    Tag[] tags();
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
     * Return tags of the specified {@linkplain Tag#kind() kind} in
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
     * this Doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
     * For example, if 'tagname' has value "@serial", all tags in
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
     * this Doc item of kind "@serial" will be returned.
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
     * @param tagname name of the tag kind to search for.
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
     * @return an array of Tag containing all tags whose 'kind()'
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
     * matches 'tagname'.
06bc494ca11e Initial load
duke
parents:
diff changeset
    69
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    70
    Tag[] tags(String tagname);
06bc494ca11e Initial load
duke
parents:
diff changeset
    71
06bc494ca11e Initial load
duke
parents:
diff changeset
    72
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
     * Return the see also tags in this Doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
    74
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
     * @return an array of SeeTag containing all @see tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    77
    SeeTag[] seeTags();
06bc494ca11e Initial load
duke
parents:
diff changeset
    78
06bc494ca11e Initial load
duke
parents:
diff changeset
    79
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    80
     * Return comment as an array of tags. Includes inline tags
13844
56339cf983a3 7177970: fix issues in langtools doc comments
jjg
parents: 5520
diff changeset
    81
     * (i.e. {&#64;link <i>reference</i>} tags)  but not
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
     * block tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
     * Each section of plain text is represented as a {@link Tag}
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
     * of {@linkplain Tag#kind() kind} "Text".
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
     * Inline tags are represented as a {@link SeeTag} of kind "@see"
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
     * and name "@link".
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    88
     * @return an array of {@link Tag}s representing the comment
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
    Tag[] inlineTags();
06bc494ca11e Initial load
duke
parents:
diff changeset
    91
06bc494ca11e Initial load
duke
parents:
diff changeset
    92
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
     * Return the first sentence of the comment as an array of tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
     * Includes inline tags
13844
56339cf983a3 7177970: fix issues in langtools doc comments
jjg
parents: 5520
diff changeset
    95
     * (i.e. {&#64;link <i>reference</i>} tags)  but not
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
     * block tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
    97
     * Each section of plain text is represented as a {@link Tag}
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
     * of {@linkplain Tag#kind() kind} "Text".
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
     * Inline tags are represented as a {@link SeeTag} of kind "@see"
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
     * and name "@link".
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
     * <p>
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
     * If the locale is English language, the first sentence is
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
     * determined by the rules described in the Java Language
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
     * Specification (first version): &quot;This sentence ends
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
     * at the first period that is followed by a blank, tab, or
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
     * line terminator or at the first tagline.&quot;, in
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
     * addition a line will be terminated by block
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
     * HTML tags: &lt;p&gt;  &lt;/p&gt;  &lt;h1&gt;
06bc494ca11e Initial load
duke
parents:
diff changeset
   109
     * &lt;h2&gt;  &lt;h3&gt; &lt;h4&gt;  &lt;h5&gt;  &lt;h6&gt;
06bc494ca11e Initial load
duke
parents:
diff changeset
   110
     * &lt;hr&gt;  &lt;pre&gt;  or &lt;/pre&gt;.
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
     * If the locale is not English, the sentence end will be
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
     * determined by
06bc494ca11e Initial load
duke
parents:
diff changeset
   113
     * {@link BreakIterator#getSentenceInstance(Locale)}.
06bc494ca11e Initial load
duke
parents:
diff changeset
   114
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
     * @return an array of {@link Tag}s representing the
06bc494ca11e Initial load
duke
parents:
diff changeset
   116
     * first sentence of the comment
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
    Tag[] firstSentenceTags();
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
     * Return the full unprocessed text of the comment.  Tags
06bc494ca11e Initial load
duke
parents:
diff changeset
   122
     * are included as text.  Used mainly for store and retrieve
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
     * operations like internalization.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   124
     *
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   125
     * @return the full unprocessed text of the comment.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   127
    String getRawCommentText();
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
06bc494ca11e Initial load
duke
parents:
diff changeset
   129
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   130
     * Set the full unprocessed text of the comment.  Tags
06bc494ca11e Initial load
duke
parents:
diff changeset
   131
     * are included as text.  Used mainly for store and retrieve
06bc494ca11e Initial load
duke
parents:
diff changeset
   132
     * operations like internalization.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   133
     *
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   134
     * @param rawDocumentation A String containing the full unprocessed text of the comment.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
    void setRawCommentText(String rawDocumentation);
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
06bc494ca11e Initial load
duke
parents:
diff changeset
   138
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   139
     * Returns the non-qualified name of this Doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
   140
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
     * @return  the name
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   143
    String name();
06bc494ca11e Initial load
duke
parents:
diff changeset
   144
06bc494ca11e Initial load
duke
parents:
diff changeset
   145
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
     * Compares this doc object with the specified object for order.  Returns a
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
     * negative integer, zero, or a positive integer as this doc object is less
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
     * than, equal to, or greater than the given object.
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
     * <p>
06bc494ca11e Initial load
duke
parents:
diff changeset
   150
     * This method satisfies the {@link java.lang.Comparable} interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
     *
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   152
     * @param   obj  the {@code Object} to be compared.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
     * @return  a negative integer, zero, or a positive integer as this Object
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
     *      is less than, equal to, or greater than the given Object.
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
     * @exception ClassCastException the specified Object's type prevents it
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
     *        from being compared to this Object.
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
    int compareTo(Object obj);
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
     * Is this Doc item a field (but not an enum constant)?
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
     * @return true if it represents a field
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
    boolean isField();
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
     * Is this Doc item an enum constant?
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
     * @return true if it represents an enum constant
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   172
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   173
    boolean isEnumConstant();
06bc494ca11e Initial load
duke
parents:
diff changeset
   174
06bc494ca11e Initial load
duke
parents:
diff changeset
   175
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
     * Is this Doc item a constructor?
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
     * @return true if it represents a constructor
06bc494ca11e Initial load
duke
parents:
diff changeset
   179
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   180
    boolean isConstructor();
06bc494ca11e Initial load
duke
parents:
diff changeset
   181
06bc494ca11e Initial load
duke
parents:
diff changeset
   182
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   183
     * Is this Doc item a method (but not a constructor or annotation
06bc494ca11e Initial load
duke
parents:
diff changeset
   184
     * type element)?
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   186
     * @return true if it represents a method
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   188
    boolean isMethod();
06bc494ca11e Initial load
duke
parents:
diff changeset
   189
06bc494ca11e Initial load
duke
parents:
diff changeset
   190
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   191
     * Is this Doc item an annotation type element?
06bc494ca11e Initial load
duke
parents:
diff changeset
   192
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
     * @return true if it represents an annotation type element
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
    boolean isAnnotationTypeElement();
06bc494ca11e Initial load
duke
parents:
diff changeset
   197
06bc494ca11e Initial load
duke
parents:
diff changeset
   198
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
     * Is this Doc item an interface (but not an annotation type)?
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
     * @return true if it represents an interface
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
    boolean isInterface();
06bc494ca11e Initial load
duke
parents:
diff changeset
   204
06bc494ca11e Initial load
duke
parents:
diff changeset
   205
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   206
     * Is this Doc item an exception class?
06bc494ca11e Initial load
duke
parents:
diff changeset
   207
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
     * @return true if it represents an exception
06bc494ca11e Initial load
duke
parents:
diff changeset
   209
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   210
    boolean isException();
06bc494ca11e Initial load
duke
parents:
diff changeset
   211
06bc494ca11e Initial load
duke
parents:
diff changeset
   212
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   213
     * Is this Doc item an error class?
06bc494ca11e Initial load
duke
parents:
diff changeset
   214
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   215
     * @return true if it represents a error
06bc494ca11e Initial load
duke
parents:
diff changeset
   216
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   217
    boolean isError();
06bc494ca11e Initial load
duke
parents:
diff changeset
   218
06bc494ca11e Initial load
duke
parents:
diff changeset
   219
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   220
     * Is this Doc item an enum type?
06bc494ca11e Initial load
duke
parents:
diff changeset
   221
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   222
     * @return true if it represents an enum type
06bc494ca11e Initial load
duke
parents:
diff changeset
   223
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   224
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   225
    boolean isEnum();
06bc494ca11e Initial load
duke
parents:
diff changeset
   226
06bc494ca11e Initial load
duke
parents:
diff changeset
   227
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   228
     * Is this Doc item an annotation type?
06bc494ca11e Initial load
duke
parents:
diff changeset
   229
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
     * @return true if it represents an annotation type
06bc494ca11e Initial load
duke
parents:
diff changeset
   231
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   232
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   233
    boolean isAnnotationType();
06bc494ca11e Initial load
duke
parents:
diff changeset
   234
06bc494ca11e Initial load
duke
parents:
diff changeset
   235
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   236
     * Is this Doc item an
06bc494ca11e Initial load
duke
parents:
diff changeset
   237
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#class">ordinary
06bc494ca11e Initial load
duke
parents:
diff changeset
   238
     * class</a>?
06bc494ca11e Initial load
duke
parents:
diff changeset
   239
     * (i.e. not an interface, annotation type, enum, exception, or error)?
06bc494ca11e Initial load
duke
parents:
diff changeset
   240
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   241
     * @return true if it represents an ordinary class
06bc494ca11e Initial load
duke
parents:
diff changeset
   242
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   243
    boolean isOrdinaryClass();
06bc494ca11e Initial load
duke
parents:
diff changeset
   244
06bc494ca11e Initial load
duke
parents:
diff changeset
   245
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   246
     * Is this Doc item a
06bc494ca11e Initial load
duke
parents:
diff changeset
   247
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#class">class</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   248
     * (and not an interface or annotation type)?
06bc494ca11e Initial load
duke
parents:
diff changeset
   249
     * This includes ordinary classes, enums, errors and exceptions.
06bc494ca11e Initial load
duke
parents:
diff changeset
   250
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   251
     * @return true if it represents a class
06bc494ca11e Initial load
duke
parents:
diff changeset
   252
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   253
    boolean isClass();
06bc494ca11e Initial load
duke
parents:
diff changeset
   254
06bc494ca11e Initial load
duke
parents:
diff changeset
   255
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   256
     * Return true if this Doc item is
06bc494ca11e Initial load
duke
parents:
diff changeset
   257
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   258
     * in the result set.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   259
     *
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   260
     * @return true if this Doc item is
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   261
     *         <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   262
     *         in the result set.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   263
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   264
    boolean isIncluded();
06bc494ca11e Initial load
duke
parents:
diff changeset
   265
06bc494ca11e Initial load
duke
parents:
diff changeset
   266
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   267
     * Return the source position of the first line of the
06bc494ca11e Initial load
duke
parents:
diff changeset
   268
     * corresponding declaration, or null if
06bc494ca11e Initial load
duke
parents:
diff changeset
   269
     * no position is available.  A default constructor returns
06bc494ca11e Initial load
duke
parents:
diff changeset
   270
     * null because it has no location in the source file.
06bc494ca11e Initial load
duke
parents:
diff changeset
   271
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   272
     * @since 1.4
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   273
     * @return the source positino of the first line of the
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   274
     *         corresponding declaration, or null if
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   275
     *         no position is available.  A default constructor returns
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   276
     *         null because it has no location in the source file.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   277
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   278
    SourcePosition position();
06bc494ca11e Initial load
duke
parents:
diff changeset
   279
}