src/jdk.javadoc/share/classes/com/sun/javadoc/Doc.java
author ksrini
Fri, 09 Feb 2018 13:58:17 -0800
changeset 48840 5e2d2067da48
parent 47216 71c04702a3d5
child 49415 56a5f899e882
permissions -rw-r--r--
8194651: javadoc: mark the com.sun.javadoc API for removal Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
48840
5e2d2067da48 8194651: javadoc: mark the com.sun.javadoc API for removal
ksrini
parents: 47216
diff changeset
     2
 * Copyright (c) 1998, 2018, 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)
38617
d93a7f64e231 8157606: deprecate com.sun.javadoc API
jjg
parents: 25874
diff changeset
    40
 *
d93a7f64e231 8157606: deprecate com.sun.javadoc API
jjg
parents: 25874
diff changeset
    41
 * @deprecated
d93a7f64e231 8157606: deprecate com.sun.javadoc API
jjg
parents: 25874
diff changeset
    42
 *   The declarations in this package have been superseded by those
d93a7f64e231 8157606: deprecate com.sun.javadoc API
jjg
parents: 25874
diff changeset
    43
 *   in the package {@code jdk.javadoc.doclet}.
d93a7f64e231 8157606: deprecate com.sun.javadoc API
jjg
parents: 25874
diff changeset
    44
 *   For more information, see the <i>Migration Guide</i> in the documentation for that package.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
 */
48840
5e2d2067da48 8194651: javadoc: mark the com.sun.javadoc API for removal
ksrini
parents: 47216
diff changeset
    46
@Deprecated(since="9", forRemoval=true)
5e2d2067da48 8194651: javadoc: mark the com.sun.javadoc API for removal
ksrini
parents: 47216
diff changeset
    47
@SuppressWarnings("removal")
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
public interface Doc extends Comparable<Object> {
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
     * Return the text of the comment for this doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
     * Tags have been removed.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
    53
     *
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
    54
     * @return the text of the comment for this doc item.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
    String commentText();
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
     * Return all tags in this Doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
     * @return an array of {@link Tag} objects containing all tags on
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
     *         this Doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
    Tag[] tags();
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
     * Return tags of the specified {@linkplain Tag#kind() kind} in
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
     * this Doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
    69
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    70
     * For example, if 'tagname' has value "@serial", all tags in
06bc494ca11e Initial load
duke
parents:
diff changeset
    71
     * this Doc item of kind "@serial" will be returned.
06bc494ca11e Initial load
duke
parents:
diff changeset
    72
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
     * @param tagname name of the tag kind to search for.
06bc494ca11e Initial load
duke
parents:
diff changeset
    74
     * @return an array of Tag containing all tags whose 'kind()'
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
     * matches 'tagname'.
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    77
    Tag[] tags(String tagname);
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 the see also tags in this Doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
     * @return an array of SeeTag containing all @see tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
    SeeTag[] seeTags();
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
     * Return comment as an array of tags. Includes inline tags
13844
56339cf983a3 7177970: fix issues in langtools doc comments
jjg
parents: 5520
diff changeset
    88
     * (i.e. {&#64;link <i>reference</i>} tags)  but not
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
     * block tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
     * Each section of plain text is represented as a {@link Tag}
06bc494ca11e Initial load
duke
parents:
diff changeset
    91
     * of {@linkplain Tag#kind() kind} "Text".
06bc494ca11e Initial load
duke
parents:
diff changeset
    92
     * Inline tags are represented as a {@link SeeTag} of kind "@see"
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
     * and name "@link".
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    95
     * @return an array of {@link Tag}s representing the comment
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    97
    Tag[] inlineTags();
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
     * Return the first sentence of the comment as an array of tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
     * Includes inline tags
13844
56339cf983a3 7177970: fix issues in langtools doc comments
jjg
parents: 5520
diff changeset
   102
     * (i.e. {&#64;link <i>reference</i>} tags)  but not
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
     * block tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
     * Each section of plain text is represented as a {@link Tag}
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
     * of {@linkplain Tag#kind() kind} "Text".
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
     * Inline tags are represented as a {@link SeeTag} of kind "@see"
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
     * and name "@link".
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
     * <p>
06bc494ca11e Initial load
duke
parents:
diff changeset
   109
     * If the locale is English language, the first sentence is
06bc494ca11e Initial load
duke
parents:
diff changeset
   110
     * determined by the rules described in the Java Language
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
     * Specification (first version): &quot;This sentence ends
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
     * at the first period that is followed by a blank, tab, or
06bc494ca11e Initial load
duke
parents:
diff changeset
   113
     * line terminator or at the first tagline.&quot;, in
06bc494ca11e Initial load
duke
parents:
diff changeset
   114
     * addition a line will be terminated by block
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
     * HTML tags: &lt;p&gt;  &lt;/p&gt;  &lt;h1&gt;
06bc494ca11e Initial load
duke
parents:
diff changeset
   116
     * &lt;h2&gt;  &lt;h3&gt; &lt;h4&gt;  &lt;h5&gt;  &lt;h6&gt;
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
     * &lt;hr&gt;  &lt;pre&gt;  or &lt;/pre&gt;.
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
     * If the locale is not English, the sentence end will be
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
     * determined by
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
     * {@link BreakIterator#getSentenceInstance(Locale)}.
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
06bc494ca11e Initial load
duke
parents:
diff changeset
   122
     * @return an array of {@link Tag}s representing the
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
     * first sentence of the comment
06bc494ca11e Initial load
duke
parents:
diff changeset
   124
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   125
    Tag[] firstSentenceTags();
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
06bc494ca11e Initial load
duke
parents:
diff changeset
   127
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
     * Return the full unprocessed text of the comment.  Tags
06bc494ca11e Initial load
duke
parents:
diff changeset
   129
     * are included as text.  Used mainly for store and retrieve
06bc494ca11e Initial load
duke
parents:
diff changeset
   130
     * operations like internalization.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   131
     *
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   132
     * @return the full unprocessed text of the comment.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
    String getRawCommentText();
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
     * Set the full unprocessed text of the comment.  Tags
06bc494ca11e Initial load
duke
parents:
diff changeset
   138
     * are included as text.  Used mainly for store and retrieve
06bc494ca11e Initial load
duke
parents:
diff changeset
   139
     * operations like internalization.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   140
     *
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   141
     * @param rawDocumentation A String containing the full unprocessed text of the comment.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   143
    void setRawCommentText(String rawDocumentation);
06bc494ca11e Initial load
duke
parents:
diff changeset
   144
06bc494ca11e Initial load
duke
parents:
diff changeset
   145
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
     * Returns the non-qualified name of this Doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
     * @return  the name
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   150
    String name();
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
     * Compares this doc object with the specified object for order.  Returns a
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
     * negative integer, zero, or a positive integer as this doc object is less
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
     * than, equal to, or greater than the given object.
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
     * <p>
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
     * This method satisfies the {@link java.lang.Comparable} interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
     *
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   159
     * @param   obj  the {@code Object} to be compared.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
     * @return  a negative integer, zero, or a positive integer as this Object
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
     *      is less than, equal to, or greater than the given Object.
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
     * @exception ClassCastException the specified Object's type prevents it
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
     *        from being compared to this Object.
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
    int compareTo(Object obj);
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 a field (but not an enum constant)?
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
     * @return true if it represents a field
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   172
    boolean isField();
06bc494ca11e Initial load
duke
parents:
diff changeset
   173
06bc494ca11e Initial load
duke
parents:
diff changeset
   174
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   175
     * Is this Doc item an enum constant?
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
     * @return true if it represents an enum constant
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   179
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   180
    boolean isEnumConstant();
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 constructor?
06bc494ca11e Initial load
duke
parents:
diff changeset
   184
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
     * @return true if it represents a constructor
06bc494ca11e Initial load
duke
parents:
diff changeset
   186
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
    boolean isConstructor();
06bc494ca11e Initial load
duke
parents:
diff changeset
   188
06bc494ca11e Initial load
duke
parents:
diff changeset
   189
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   190
     * Is this Doc item a method (but not a constructor or annotation
06bc494ca11e Initial load
duke
parents:
diff changeset
   191
     * type element)?
06bc494ca11e Initial load
duke
parents:
diff changeset
   192
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
     * @return true if it represents a method
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
    boolean isMethod();
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
06bc494ca11e Initial load
duke
parents:
diff changeset
   197
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   198
     * Is this Doc item an annotation type element?
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
     * @return true if it represents an annotation type element
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
    boolean isAnnotationTypeElement();
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 interface (but not an annotation type)?
06bc494ca11e Initial load
duke
parents:
diff changeset
   207
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
     * @return true if it represents an interface
06bc494ca11e Initial load
duke
parents:
diff changeset
   209
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   210
    boolean isInterface();
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 exception class?
06bc494ca11e Initial load
duke
parents:
diff changeset
   214
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   215
     * @return true if it represents an exception
06bc494ca11e Initial load
duke
parents:
diff changeset
   216
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   217
    boolean isException();
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 error class?
06bc494ca11e Initial load
duke
parents:
diff changeset
   221
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   222
     * @return true if it represents a error
06bc494ca11e Initial load
duke
parents:
diff changeset
   223
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   224
    boolean isError();
06bc494ca11e Initial load
duke
parents:
diff changeset
   225
06bc494ca11e Initial load
duke
parents:
diff changeset
   226
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   227
     * Is this Doc item an enum type?
06bc494ca11e Initial load
duke
parents:
diff changeset
   228
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   229
     * @return true if it represents an enum type
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   231
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   232
    boolean isEnum();
06bc494ca11e Initial load
duke
parents:
diff changeset
   233
06bc494ca11e Initial load
duke
parents:
diff changeset
   234
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   235
     * Is this Doc item an annotation type?
06bc494ca11e Initial load
duke
parents:
diff changeset
   236
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   237
     * @return true if it represents an annotation type
06bc494ca11e Initial load
duke
parents:
diff changeset
   238
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   239
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   240
    boolean isAnnotationType();
06bc494ca11e Initial load
duke
parents:
diff changeset
   241
06bc494ca11e Initial load
duke
parents:
diff changeset
   242
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   243
     * Is this Doc item an
06bc494ca11e Initial load
duke
parents:
diff changeset
   244
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#class">ordinary
06bc494ca11e Initial load
duke
parents:
diff changeset
   245
     * class</a>?
06bc494ca11e Initial load
duke
parents:
diff changeset
   246
     * (i.e. not an interface, annotation type, enum, exception, or error)?
06bc494ca11e Initial load
duke
parents:
diff changeset
   247
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   248
     * @return true if it represents an ordinary class
06bc494ca11e Initial load
duke
parents:
diff changeset
   249
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   250
    boolean isOrdinaryClass();
06bc494ca11e Initial load
duke
parents:
diff changeset
   251
06bc494ca11e Initial load
duke
parents:
diff changeset
   252
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   253
     * Is this Doc item a
06bc494ca11e Initial load
duke
parents:
diff changeset
   254
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#class">class</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   255
     * (and not an interface or annotation type)?
06bc494ca11e Initial load
duke
parents:
diff changeset
   256
     * This includes ordinary classes, enums, errors and exceptions.
06bc494ca11e Initial load
duke
parents:
diff changeset
   257
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   258
     * @return true if it represents a class
06bc494ca11e Initial load
duke
parents:
diff changeset
   259
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   260
    boolean isClass();
06bc494ca11e Initial load
duke
parents:
diff changeset
   261
06bc494ca11e Initial load
duke
parents:
diff changeset
   262
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   263
     * Return true if this Doc item is
06bc494ca11e Initial load
duke
parents:
diff changeset
   264
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   265
     * in the result set.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   266
     *
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   267
     * @return true if this Doc item is
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   268
     *         <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
   269
     *         in the result set.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   270
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   271
    boolean isIncluded();
06bc494ca11e Initial load
duke
parents:
diff changeset
   272
06bc494ca11e Initial load
duke
parents:
diff changeset
   273
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   274
     * Return the source position of the first line of the
06bc494ca11e Initial load
duke
parents:
diff changeset
   275
     * corresponding declaration, or null if
06bc494ca11e Initial load
duke
parents:
diff changeset
   276
     * no position is available.  A default constructor returns
06bc494ca11e Initial load
duke
parents:
diff changeset
   277
     * null because it has no location in the source file.
06bc494ca11e Initial load
duke
parents:
diff changeset
   278
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   279
     * @since 1.4
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   280
     * @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
   281
     *         corresponding declaration, or null if
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   282
     *         no position is available.  A default constructor returns
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 13844
diff changeset
   283
     *         null because it has no location in the source file.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   284
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   285
    SourcePosition position();
06bc494ca11e Initial load
duke
parents:
diff changeset
   286
}