src/jdk.javadoc/share/classes/com/sun/javadoc/ClassDoc.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
06bc494ca11e Initial load
duke
parents:
diff changeset
    29
/**
06bc494ca11e Initial load
duke
parents:
diff changeset
    30
 * Represents a java class or interface and provides access to
06bc494ca11e Initial load
duke
parents:
diff changeset
    31
 * information about the class, the class's comment and tags, and the
06bc494ca11e Initial load
duke
parents:
diff changeset
    32
 * members of the class.  A ClassDoc only exists if it was
06bc494ca11e Initial load
duke
parents:
diff changeset
    33
 * processed in this run of javadoc.  References to classes
06bc494ca11e Initial load
duke
parents:
diff changeset
    34
 * which may or may not have been processed in this run are
06bc494ca11e Initial load
duke
parents:
diff changeset
    35
 * referred to using Type (which can be converted to ClassDoc,
06bc494ca11e Initial load
duke
parents:
diff changeset
    36
 * if possible).
06bc494ca11e Initial load
duke
parents:
diff changeset
    37
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    38
 * @see Type
06bc494ca11e Initial load
duke
parents:
diff changeset
    39
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    40
 * @since 1.2
06bc494ca11e Initial load
duke
parents:
diff changeset
    41
 * @author Kaiyang Liu (original)
06bc494ca11e Initial load
duke
parents:
diff changeset
    42
 * @author Robert Field (rewrite)
38617
d93a7f64e231 8157606: deprecate com.sun.javadoc API
jjg
parents: 25874
diff changeset
    43
 *
d93a7f64e231 8157606: deprecate com.sun.javadoc API
jjg
parents: 25874
diff changeset
    44
 * @deprecated
d93a7f64e231 8157606: deprecate com.sun.javadoc API
jjg
parents: 25874
diff changeset
    45
 *   The declarations in this package have been superseded by those
d93a7f64e231 8157606: deprecate com.sun.javadoc API
jjg
parents: 25874
diff changeset
    46
 *   in the package {@code jdk.javadoc.doclet}.
d93a7f64e231 8157606: deprecate com.sun.javadoc API
jjg
parents: 25874
diff changeset
    47
 *   For more information, see the <i>Migration Guide</i> in the documentation for that package.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
 */
48840
5e2d2067da48 8194651: javadoc: mark the com.sun.javadoc API for removal
ksrini
parents: 47216
diff changeset
    49
@Deprecated(since="9", forRemoval=true)
5e2d2067da48 8194651: javadoc: mark the com.sun.javadoc API for removal
ksrini
parents: 47216
diff changeset
    50
@SuppressWarnings("removal")
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    51
public interface ClassDoc extends ProgramElementDoc, Type {
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
     * Return true if this class is abstract.  Return true
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
     * for all interfaces.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    56
     *
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    57
     * @return true if this class is abstract.  Return true
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    58
     *         for all interfaces.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    59
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    60
    boolean isAbstract();
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
06bc494ca11e Initial load
duke
parents:
diff changeset
    62
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    63
     * Return true if this class implements or interface extends
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    64
     * {@code java.io.Serializable}.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    65
     *
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    66
     * Since {@code java.io.Externalizable} extends
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    67
     * {@code java.io.Serializable},
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
     * Externalizable objects are also Serializable.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    69
     *
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    70
     * @return true if this class implements or interface extends
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    71
     *         {@code java.io.Serializable}.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    72
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    73
    boolean isSerializable();
06bc494ca11e Initial load
duke
parents:
diff changeset
    74
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    76
     * Return true if this class implements or interface extends
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    77
     * {@code java.io.Externalizable}.
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    78
     *
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    79
     * @return true if this class implements or interface extends
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    80
     *         {@code java.io.Externalizable}.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
    boolean isExternalizable();
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    85
     * Return the serialization methods for this class or
06bc494ca11e Initial load
duke
parents:
diff changeset
    86
     * interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
    87
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    88
     * @return an array of MethodDoc objects that represents
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
     *         the serialization methods for this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
    90
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    91
    MethodDoc[] serializationMethods();
06bc494ca11e Initial load
duke
parents:
diff changeset
    92
06bc494ca11e Initial load
duke
parents:
diff changeset
    93
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    94
     * Return the Serializable fields of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
    95
     * <p>
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
     * Return either a list of default fields documented by
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    97
     * {@code serial} tag<br>
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    98
     * or return a single {@code FieldDoc} for
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    99
     * {@code serialPersistentField} member.
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   100
     * There should be a {@code serialField} tag for
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   101
     * each Serializable field defined by an {@code ObjectStreamField}
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   102
     * array component of {@code serialPersistentField}.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
     *
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   104
     * @return an array of {@code FieldDoc} objects for the Serializable
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
     *         fields of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   107
     * @see #definesSerializableFields()
06bc494ca11e Initial load
duke
parents:
diff changeset
   108
     * @see SerialFieldTag
06bc494ca11e Initial load
duke
parents:
diff changeset
   109
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   110
    FieldDoc[] serializableFields();
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   113
     *  Return true if Serializable fields are explicitly defined with
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   114
     *  the special class member {@code serialPersistentFields}.
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   115
     *
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   116
     * @return true if Serializable fields are explicitly defined with
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   117
     *         the special class member {@code serialPersistentFields}.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
     * @see #serializableFields()
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
     * @see SerialFieldTag
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   122
    boolean definesSerializableFields();
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
06bc494ca11e Initial load
duke
parents:
diff changeset
   124
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   125
     * Return the superclass of this class.  Return null if this is an
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
     * interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   127
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
     * <p> <i>This method cannot accommodate certain generic type constructs.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   129
     * The {@code superclassType} method should be used instead.</i>
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   130
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   131
     * @return the ClassDoc for the superclass of this class, null if
06bc494ca11e Initial load
duke
parents:
diff changeset
   132
     *         there is no superclass.
06bc494ca11e Initial load
duke
parents:
diff changeset
   133
     * @see #superclassType
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
    ClassDoc superclass();
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   138
     * Return the superclass of this class.  Return null if this is an
06bc494ca11e Initial load
duke
parents:
diff changeset
   139
     * interface.  A superclass is represented by either a
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   140
     * {@code ClassDoc} or a {@code ParametrizedType}.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
     * @return the superclass of this class, or null if there is no superclass.
06bc494ca11e Initial load
duke
parents:
diff changeset
   143
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   144
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   145
    Type superclassType();
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
     * Test whether this class is a subclass of the specified class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
     * If this is an interface, return false for all classes except
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   150
     * {@code java.lang.Object} (we must keep this unexpected
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
     * behavior for compatibility reasons).
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
     * @param cd the candidate superclass.
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
     * @return true if cd is a superclass of this class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
    boolean subclassOf(ClassDoc cd);
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
06bc494ca11e Initial load
duke
parents:
diff changeset
   158
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
     * Return interfaces implemented by this class or interfaces extended
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
     * by this interface. Includes only directly-declared interfaces, not
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
     * inherited interfaces.
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
     * Return an empty array if there are no interfaces.
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
     * <p> <i>This method cannot accommodate certain generic type constructs.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   165
     * The {@code interfaceTypes} method should be used instead.</i>
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
     * @return an array of ClassDoc objects representing the interfaces.
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
     * @see #interfaceTypes
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
    ClassDoc[] interfaces();
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
06bc494ca11e Initial load
duke
parents:
diff changeset
   172
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   173
     * Return interfaces implemented by this class or interfaces extended
06bc494ca11e Initial load
duke
parents:
diff changeset
   174
     * by this interface. Includes only directly-declared interfaces, not
06bc494ca11e Initial load
duke
parents:
diff changeset
   175
     * inherited interfaces.
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
     * Return an empty array if there are no interfaces.
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
     * @return an array of interfaces, each represented by a
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   179
     *         {@code ClassDoc} or a {@code ParametrizedType}.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   180
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   181
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   182
    Type[] interfaceTypes();
06bc494ca11e Initial load
duke
parents:
diff changeset
   183
06bc494ca11e Initial load
duke
parents:
diff changeset
   184
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
     * Return the formal type parameters of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   186
     * Return an empty array if there are none.
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   188
     * @return the formal type parameters of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   189
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   190
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   191
    TypeVariable[] typeParameters();
06bc494ca11e Initial load
duke
parents:
diff changeset
   192
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
     * Return the type parameter tags of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
     * Return an empty array if there are none.
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   197
     * @return the type parameter tags of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   198
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
    ParamTag[] typeParamTags();
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
     * Return
06bc494ca11e Initial load
duke
parents:
diff changeset
   204
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   205
     * fields in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   206
     * Excludes enum constants if this is an enum type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   207
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
     * @return an array of FieldDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   209
     *         fields in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   210
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   211
    FieldDoc[] fields();
06bc494ca11e Initial load
duke
parents:
diff changeset
   212
06bc494ca11e Initial load
duke
parents:
diff changeset
   213
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   214
     * Return fields in this class or interface, filtered to the specified
06bc494ca11e Initial load
duke
parents:
diff changeset
   215
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">access
06bc494ca11e Initial load
duke
parents:
diff changeset
   216
     * modifier option</a>.
06bc494ca11e Initial load
duke
parents:
diff changeset
   217
     * Excludes enum constants if this is an enum type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   218
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   219
     * @param filter Specify true to filter according to the specified access
06bc494ca11e Initial load
duke
parents:
diff changeset
   220
     *               modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   221
     *               Specify false to include all fields regardless of
06bc494ca11e Initial load
duke
parents:
diff changeset
   222
     *               access modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   223
     * @return       an array of FieldDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   224
     *               fields in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   225
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   226
    FieldDoc[] fields(boolean filter);
06bc494ca11e Initial load
duke
parents:
diff changeset
   227
06bc494ca11e Initial load
duke
parents:
diff changeset
   228
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   229
     * Return the enum constants if this is an enum type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
     * Return an empty array if there are no enum constants, or if
06bc494ca11e Initial load
duke
parents:
diff changeset
   231
     * this is not an enum type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   232
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   233
     * @return the enum constants if this is an enum type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   234
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   235
    FieldDoc[] enumConstants();
06bc494ca11e Initial load
duke
parents:
diff changeset
   236
06bc494ca11e Initial load
duke
parents:
diff changeset
   237
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   238
     * Return
06bc494ca11e Initial load
duke
parents:
diff changeset
   239
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   240
     * methods in this class or interface.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   241
     * Same as {@code methods(true)}.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   242
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   243
     * @return an array of MethodDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   244
     *         methods in this class or interface.  Does not include
06bc494ca11e Initial load
duke
parents:
diff changeset
   245
     *         constructors or annotation type elements.
06bc494ca11e Initial load
duke
parents:
diff changeset
   246
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   247
    MethodDoc[] methods();
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 methods in this class or interface, filtered to the specified
06bc494ca11e Initial load
duke
parents:
diff changeset
   251
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">access
06bc494ca11e Initial load
duke
parents:
diff changeset
   252
     * modifier option</a>.  Does not include constructors or annotation
06bc494ca11e Initial load
duke
parents:
diff changeset
   253
     *          type elements.
06bc494ca11e Initial load
duke
parents:
diff changeset
   254
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   255
     * @param filter Specify true to filter according to the specified access
06bc494ca11e Initial load
duke
parents:
diff changeset
   256
     *               modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   257
     *               Specify false to include all methods regardless of
06bc494ca11e Initial load
duke
parents:
diff changeset
   258
     *               access modifier option.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   259
     *
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   260
     * @return       an array of MethodDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   261
     *               methods in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   262
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   263
    MethodDoc[] methods(boolean filter);
06bc494ca11e Initial load
duke
parents:
diff changeset
   264
06bc494ca11e Initial load
duke
parents:
diff changeset
   265
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   266
     * Return
06bc494ca11e Initial load
duke
parents:
diff changeset
   267
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   268
     * constructors in this class.  An array containing the default
06bc494ca11e Initial load
duke
parents:
diff changeset
   269
     * no-arg constructor is returned if no other constructors exist.
06bc494ca11e Initial load
duke
parents:
diff changeset
   270
     * Return empty array if this is an interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   271
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   272
     * @return an array of ConstructorDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   273
     *         constructors in this class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   274
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   275
    ConstructorDoc[] constructors();
06bc494ca11e Initial load
duke
parents:
diff changeset
   276
06bc494ca11e Initial load
duke
parents:
diff changeset
   277
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   278
     * Return constructors in this class, filtered to the specified
06bc494ca11e Initial load
duke
parents:
diff changeset
   279
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">access
06bc494ca11e Initial load
duke
parents:
diff changeset
   280
     * modifier option</a>.  Return an array containing the default
06bc494ca11e Initial load
duke
parents:
diff changeset
   281
     * no-arg constructor if no other constructors exist.
06bc494ca11e Initial load
duke
parents:
diff changeset
   282
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   283
     * @param filter Specify true to filter according to the specified access
06bc494ca11e Initial load
duke
parents:
diff changeset
   284
     *               modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   285
     *               Specify false to include all constructors regardless of
06bc494ca11e Initial load
duke
parents:
diff changeset
   286
     *               access modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   287
     * @return       an array of ConstructorDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   288
     *               constructors in this class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   289
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   290
    ConstructorDoc[] constructors(boolean filter);
06bc494ca11e Initial load
duke
parents:
diff changeset
   291
06bc494ca11e Initial load
duke
parents:
diff changeset
   292
06bc494ca11e Initial load
duke
parents:
diff changeset
   293
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   294
     * Return
06bc494ca11e Initial load
duke
parents:
diff changeset
   295
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   296
     * nested classes and interfaces within this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   297
     * This includes both static and non-static nested classes.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   298
     * (This method should have been named {@code nestedClasses()},
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   299
     * as inner classes are technically non-static.)  Anonymous and local classes
06bc494ca11e Initial load
duke
parents:
diff changeset
   300
     * or interfaces are not included.
06bc494ca11e Initial load
duke
parents:
diff changeset
   301
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   302
     * @return an array of ClassDoc objects representing the included classes
06bc494ca11e Initial load
duke
parents:
diff changeset
   303
     *         and interfaces defined in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   304
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   305
    ClassDoc[] innerClasses();
06bc494ca11e Initial load
duke
parents:
diff changeset
   306
06bc494ca11e Initial load
duke
parents:
diff changeset
   307
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   308
     * Return nested classes and interfaces within this class or interface
06bc494ca11e Initial load
duke
parents:
diff changeset
   309
     * filtered to the specified
06bc494ca11e Initial load
duke
parents:
diff changeset
   310
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">access
06bc494ca11e Initial load
duke
parents:
diff changeset
   311
     * modifier option</a>.
06bc494ca11e Initial load
duke
parents:
diff changeset
   312
     * This includes both static and non-static nested classes.
06bc494ca11e Initial load
duke
parents:
diff changeset
   313
     * Anonymous and local classes are not included.
06bc494ca11e Initial load
duke
parents:
diff changeset
   314
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   315
     * @param filter Specify true to filter according to the specified access
06bc494ca11e Initial load
duke
parents:
diff changeset
   316
     *               modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   317
     *               Specify false to include all nested classes regardless of
06bc494ca11e Initial load
duke
parents:
diff changeset
   318
     *               access modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   319
     * @return       a filtered array of ClassDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   320
     *               classes and interfaces defined in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   321
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   322
    ClassDoc[] innerClasses(boolean filter);
06bc494ca11e Initial load
duke
parents:
diff changeset
   323
06bc494ca11e Initial load
duke
parents:
diff changeset
   324
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   325
     * Find the specified class or interface within the context of this class doc.
06bc494ca11e Initial load
duke
parents:
diff changeset
   326
     * Search order: 1) qualified name, 2) nested in this class or interface,
06bc494ca11e Initial load
duke
parents:
diff changeset
   327
     * 3) in this package, 4) in the class imports, 5) in the package imports.
06bc494ca11e Initial load
duke
parents:
diff changeset
   328
     * Return the ClassDoc if found, null if not found.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   329
     * @param className Specify the class name to find as a String.
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   330
     * @return the ClassDoc if found, null if not found.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   331
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   332
    ClassDoc findClass(String className);
06bc494ca11e Initial load
duke
parents:
diff changeset
   333
06bc494ca11e Initial load
duke
parents:
diff changeset
   334
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   335
     * Get the list of classes and interfaces declared as imported.
9303
eae35c201e19 7032975: API files in javax.annotation.processing need to be updated for references to JLS
jjh
parents: 5520
diff changeset
   336
     * These are called "single-type-import declarations" in
eae35c201e19 7032975: API files in javax.annotation.processing need to be updated for references to JLS
jjh
parents: 5520
diff changeset
   337
     * <cite>The Java&trade; Language Specification</cite>.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   338
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   339
     * @return an array of ClassDoc representing the imported classes.
06bc494ca11e Initial load
duke
parents:
diff changeset
   340
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   341
     * @deprecated  Import declarations are implementation details that
06bc494ca11e Initial load
duke
parents:
diff changeset
   342
     *          should not be exposed here.  In addition, not all imported
06bc494ca11e Initial load
duke
parents:
diff changeset
   343
     *          classes are imported through single-type-import declarations.
06bc494ca11e Initial load
duke
parents:
diff changeset
   344
     */
48840
5e2d2067da48 8194651: javadoc: mark the com.sun.javadoc API for removal
ksrini
parents: 47216
diff changeset
   345
    @Deprecated(since="9", forRemoval=true)
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   346
    ClassDoc[] importedClasses();
06bc494ca11e Initial load
duke
parents:
diff changeset
   347
06bc494ca11e Initial load
duke
parents:
diff changeset
   348
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   349
     * Get the list of packages declared as imported.
9303
eae35c201e19 7032975: API files in javax.annotation.processing need to be updated for references to JLS
jjh
parents: 5520
diff changeset
   350
     * These are called "type-import-on-demand declarations" in
eae35c201e19 7032975: API files in javax.annotation.processing need to be updated for references to JLS
jjh
parents: 5520
diff changeset
   351
     * <cite>The Java&trade; Language Specification</cite>.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   352
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   353
     * @return an array of PackageDoc representing the imported packages.
06bc494ca11e Initial load
duke
parents:
diff changeset
   354
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   355
     * @deprecated  Import declarations are implementation details that
06bc494ca11e Initial load
duke
parents:
diff changeset
   356
     *          should not be exposed here.  In addition, this method's
06bc494ca11e Initial load
duke
parents:
diff changeset
   357
     *          return type does not allow for all type-import-on-demand
06bc494ca11e Initial load
duke
parents:
diff changeset
   358
     *          declarations to be returned.
06bc494ca11e Initial load
duke
parents:
diff changeset
   359
     */
48840
5e2d2067da48 8194651: javadoc: mark the com.sun.javadoc API for removal
ksrini
parents: 47216
diff changeset
   360
    @Deprecated(since="9", forRemoval=true)
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   361
    PackageDoc[] importedPackages();
06bc494ca11e Initial load
duke
parents:
diff changeset
   362
}