langtools/src/share/classes/com/sun/javadoc/Doc.java
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 10 06bc494ca11e
child 5520 86e4b9a9da40
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
06bc494ca11e Initial load
duke
parents:
diff changeset
     2
 * Copyright 1998-2006 Sun Microsystems, Inc.  All Rights Reserved.
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
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
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
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
06bc494ca11e Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
06bc494ca11e Initial load
duke
parents:
diff changeset
    23
 * have any questions.
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.
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
    String commentText();
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
06bc494ca11e Initial load
duke
parents:
diff changeset
    49
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    50
     * Return all tags in this Doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
     * @return an array of {@link Tag} objects containing all tags on
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
     *         this Doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
    Tag[] tags();
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
06bc494ca11e Initial load
duke
parents:
diff changeset
    57
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
     * Return tags of the specified {@linkplain Tag#kind() kind} in
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
     * this Doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
     * For example, if 'tagname' has value "@serial", all tags in
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
     * this Doc item of kind "@serial" will be returned.
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    64
     * @param tagname name of the tag kind to search for.
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
     * @return an array of Tag containing all tags whose 'kind()'
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
     * matches 'tagname'.
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
    Tag[] tags(String tagname);
06bc494ca11e Initial load
duke
parents:
diff changeset
    69
06bc494ca11e Initial load
duke
parents:
diff changeset
    70
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    71
     * Return the see also tags in this Doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
    72
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
     * @return an array of SeeTag containing all @see tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
    74
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
    SeeTag[] seeTags();
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
06bc494ca11e Initial load
duke
parents:
diff changeset
    77
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    78
     * Return comment as an array of tags. Includes inline tags
06bc494ca11e Initial load
duke
parents:
diff changeset
    79
     * (i.e. {&#64link <i>reference</i>} tags)  but not
06bc494ca11e Initial load
duke
parents:
diff changeset
    80
     * block tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
     * Each section of plain text is represented as a {@link Tag}
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
     * of {@linkplain Tag#kind() kind} "Text".
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
     * Inline tags are represented as a {@link SeeTag} of kind "@see"
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
     * and name "@link".
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
     * @return an array of {@link Tag}s representing the comment
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    88
    Tag[] inlineTags();
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    91
     * Return the first sentence of the comment as an array of tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
    92
     * Includes inline tags
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
     * (i.e. {&#64link <i>reference</i>} tags)  but not
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
     * block tags.
06bc494ca11e Initial load
duke
parents:
diff changeset
    95
     * Each section of plain text is represented as a {@link Tag}
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
     * of {@linkplain Tag#kind() kind} "Text".
06bc494ca11e Initial load
duke
parents:
diff changeset
    97
     * Inline tags are represented as a {@link SeeTag} of kind "@see"
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
     * and name "@link".
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
     * <p>
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
     * If the locale is English language, the first sentence is
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
     * determined by the rules described in the Java Language
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
     * Specification (first version): &quot;This sentence ends
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
     * at the first period that is followed by a blank, tab, or
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
     * line terminator or at the first tagline.&quot;, in
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
     * addition a line will be terminated by block
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
     * HTML tags: &lt;p&gt;  &lt;/p&gt;  &lt;h1&gt;
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
     * &lt;h2&gt;  &lt;h3&gt; &lt;h4&gt;  &lt;h5&gt;  &lt;h6&gt;
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
     * &lt;hr&gt;  &lt;pre&gt;  or &lt;/pre&gt;.
06bc494ca11e Initial load
duke
parents:
diff changeset
   109
     * If the locale is not English, the sentence end will be
06bc494ca11e Initial load
duke
parents:
diff changeset
   110
     * determined by
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
     * {@link BreakIterator#getSentenceInstance(Locale)}.
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
06bc494ca11e Initial load
duke
parents:
diff changeset
   113
     * @return an array of {@link Tag}s representing the
06bc494ca11e Initial load
duke
parents:
diff changeset
   114
     * first sentence of the comment
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   116
    Tag[] firstSentenceTags();
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
     * Return the full unprocessed text of the comment.  Tags
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
     * are included as text.  Used mainly for store and retrieve
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
     * operations like internalization.
06bc494ca11e Initial load
duke
parents:
diff changeset
   122
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
    String getRawCommentText();
06bc494ca11e Initial load
duke
parents:
diff changeset
   124
06bc494ca11e Initial load
duke
parents:
diff changeset
   125
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
     * Set the full unprocessed text of the comment.  Tags
06bc494ca11e Initial load
duke
parents:
diff changeset
   127
     * are included as text.  Used mainly for store and retrieve
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
     * operations like internalization.
06bc494ca11e Initial load
duke
parents:
diff changeset
   129
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   130
    void setRawCommentText(String rawDocumentation);
06bc494ca11e Initial load
duke
parents:
diff changeset
   131
06bc494ca11e Initial load
duke
parents:
diff changeset
   132
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
     * Returns the non-qualified name of this Doc item.
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
     * @return  the name
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
    String name();
06bc494ca11e Initial load
duke
parents:
diff changeset
   138
06bc494ca11e Initial load
duke
parents:
diff changeset
   139
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   140
     * Compares this doc object with the specified object for order.  Returns a
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
     * negative integer, zero, or a positive integer as this doc object is less
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
     * than, equal to, or greater than the given object.
06bc494ca11e Initial load
duke
parents:
diff changeset
   143
     * <p>
06bc494ca11e Initial load
duke
parents:
diff changeset
   144
     * This method satisfies the {@link java.lang.Comparable} interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   145
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
     * @param   obj  the <code>Object</code> to be compared.
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
     * @return  a negative integer, zero, or a positive integer as this Object
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
     *      is less than, equal to, or greater than the given Object.
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
     * @exception ClassCastException the specified Object's type prevents it
06bc494ca11e Initial load
duke
parents:
diff changeset
   150
     *        from being compared to this Object.
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
    int compareTo(Object obj);
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
     * Is this Doc item a field (but not an enum constant)?
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
     * @return true if it represents a field
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
    boolean isField();
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
     * Is this Doc item an enum constant?
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
     * @return true if it represents an enum constant
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
    boolean isEnumConstant();
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
     * Is this Doc item a constructor?
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   172
     * @return true if it represents a constructor
06bc494ca11e Initial load
duke
parents:
diff changeset
   173
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   174
    boolean isConstructor();
06bc494ca11e Initial load
duke
parents:
diff changeset
   175
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
     * Is this Doc item a method (but not a constructor or annotation
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
     * type element)?
06bc494ca11e Initial load
duke
parents:
diff changeset
   179
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   180
     * @return true if it represents a method
06bc494ca11e Initial load
duke
parents:
diff changeset
   181
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   182
    boolean isMethod();
06bc494ca11e Initial load
duke
parents:
diff changeset
   183
06bc494ca11e Initial load
duke
parents:
diff changeset
   184
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
     * Is this Doc item an annotation type element?
06bc494ca11e Initial load
duke
parents:
diff changeset
   186
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
     * @return true if it represents an annotation type element
06bc494ca11e Initial load
duke
parents:
diff changeset
   188
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   189
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   190
    boolean isAnnotationTypeElement();
06bc494ca11e Initial load
duke
parents:
diff changeset
   191
06bc494ca11e Initial load
duke
parents:
diff changeset
   192
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
     * Is this Doc item an interface (but not an annotation type)?
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
     * @return true if it represents an interface
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   197
    boolean isInterface();
06bc494ca11e Initial load
duke
parents:
diff changeset
   198
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
     * Is this Doc item an exception class?
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
     * @return true if it represents an exception
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   204
    boolean isException();
06bc494ca11e Initial load
duke
parents:
diff changeset
   205
06bc494ca11e Initial load
duke
parents:
diff changeset
   206
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   207
     * Is this Doc item an error class?
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   209
     * @return true if it represents a error
06bc494ca11e Initial load
duke
parents:
diff changeset
   210
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   211
    boolean isError();
06bc494ca11e Initial load
duke
parents:
diff changeset
   212
06bc494ca11e Initial load
duke
parents:
diff changeset
   213
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   214
     * Is this Doc item an enum type?
06bc494ca11e Initial load
duke
parents:
diff changeset
   215
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   216
     * @return true if it represents an enum type
06bc494ca11e Initial load
duke
parents:
diff changeset
   217
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   218
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   219
    boolean isEnum();
06bc494ca11e Initial load
duke
parents:
diff changeset
   220
06bc494ca11e Initial load
duke
parents:
diff changeset
   221
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   222
     * Is this Doc item an annotation type?
06bc494ca11e Initial load
duke
parents:
diff changeset
   223
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   224
     * @return true if it represents an annotation type
06bc494ca11e Initial load
duke
parents:
diff changeset
   225
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   226
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   227
    boolean isAnnotationType();
06bc494ca11e Initial load
duke
parents:
diff changeset
   228
06bc494ca11e Initial load
duke
parents:
diff changeset
   229
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
     * Is this Doc item an
06bc494ca11e Initial load
duke
parents:
diff changeset
   231
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#class">ordinary
06bc494ca11e Initial load
duke
parents:
diff changeset
   232
     * class</a>?
06bc494ca11e Initial load
duke
parents:
diff changeset
   233
     * (i.e. not an interface, annotation type, enum, exception, or error)?
06bc494ca11e Initial load
duke
parents:
diff changeset
   234
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   235
     * @return true if it represents an ordinary class
06bc494ca11e Initial load
duke
parents:
diff changeset
   236
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   237
    boolean isOrdinaryClass();
06bc494ca11e Initial load
duke
parents:
diff changeset
   238
06bc494ca11e Initial load
duke
parents:
diff changeset
   239
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   240
     * Is this Doc item a
06bc494ca11e Initial load
duke
parents:
diff changeset
   241
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#class">class</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   242
     * (and not an interface or annotation type)?
06bc494ca11e Initial load
duke
parents:
diff changeset
   243
     * This includes ordinary classes, enums, errors and exceptions.
06bc494ca11e Initial load
duke
parents:
diff changeset
   244
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   245
     * @return true if it represents a class
06bc494ca11e Initial load
duke
parents:
diff changeset
   246
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   247
    boolean isClass();
06bc494ca11e Initial load
duke
parents:
diff changeset
   248
06bc494ca11e Initial load
duke
parents:
diff changeset
   249
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   250
     * Return true if this Doc item is
06bc494ca11e Initial load
duke
parents:
diff changeset
   251
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   252
     * in the result set.
06bc494ca11e Initial load
duke
parents:
diff changeset
   253
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   254
    boolean isIncluded();
06bc494ca11e Initial load
duke
parents:
diff changeset
   255
06bc494ca11e Initial load
duke
parents:
diff changeset
   256
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   257
     * Return the source position of the first line of the
06bc494ca11e Initial load
duke
parents:
diff changeset
   258
     * corresponding declaration, or null if
06bc494ca11e Initial load
duke
parents:
diff changeset
   259
     * no position is available.  A default constructor returns
06bc494ca11e Initial load
duke
parents:
diff changeset
   260
     * null because it has no location in the source file.
06bc494ca11e Initial load
duke
parents:
diff changeset
   261
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   262
     * @since 1.4
06bc494ca11e Initial load
duke
parents:
diff changeset
   263
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   264
    SourcePosition position();
06bc494ca11e Initial load
duke
parents:
diff changeset
   265
}