langtools/src/jdk.javadoc/share/classes/com/sun/javadoc/ClassDoc.java
author chegar
Sun, 17 Aug 2014 15:52:32 +0100
changeset 25874 83c19f00452c
parent 23799 langtools/src/share/classes/com/sun/javadoc/ClassDoc.java@daa645653200
child 38617 d93a7f64e231
permissions -rw-r--r--
8054834: Modular Source Code Reviewed-by: alanb, chegar, ihse, mduigou Contributed-by: alan.bateman@oracle.com, alex.buckley@oracle.com, chris.hegarty@oracle.com, erik.joelsson@oracle.com, jonathan.gibbons@oracle.com, karen.kinnear@oracle.com, magnus.ihse.bursie@oracle.com, mandy.chung@oracle.com, mark.reinhold@oracle.com, paul.sandoz@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
     2
 * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
 *
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
 *
5520
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
86e4b9a9da40 6943119: Rebrand source copyright notices
ohair
parents: 10
diff changeset
    23
 * questions.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    24
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    25
06bc494ca11e Initial load
duke
parents:
diff changeset
    26
package com.sun.javadoc;
06bc494ca11e Initial load
duke
parents:
diff changeset
    27
06bc494ca11e Initial load
duke
parents:
diff changeset
    28
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)
06bc494ca11e Initial load
duke
parents:
diff changeset
    43
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
    44
public interface ClassDoc extends ProgramElementDoc, Type {
06bc494ca11e Initial load
duke
parents:
diff changeset
    45
06bc494ca11e Initial load
duke
parents:
diff changeset
    46
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    47
     * Return true if this class is abstract.  Return true
06bc494ca11e Initial load
duke
parents:
diff changeset
    48
     * for all interfaces.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    49
     *
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    50
     * @return true if this class is abstract.  Return true
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    51
     *         for all interfaces.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    52
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    53
    boolean isAbstract();
06bc494ca11e Initial load
duke
parents:
diff changeset
    54
06bc494ca11e Initial load
duke
parents:
diff changeset
    55
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    56
     * 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
    57
     * {@code java.io.Serializable}.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    58
     *
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    59
     * Since {@code java.io.Externalizable} extends
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    60
     * {@code java.io.Serializable},
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    61
     * Externalizable objects are also Serializable.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    62
     *
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    63
     * @return true if this class implements or interface extends
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
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    66
    boolean isSerializable();
06bc494ca11e Initial load
duke
parents:
diff changeset
    67
06bc494ca11e Initial load
duke
parents:
diff changeset
    68
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
    69
     * 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
    70
     * {@code java.io.Externalizable}.
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    71
     *
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    72
     * @return true if this class implements or interface extends
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    73
     *         {@code java.io.Externalizable}.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    74
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    75
    boolean isExternalizable();
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 the serialization methods for this class or
06bc494ca11e Initial load
duke
parents:
diff changeset
    79
     * interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
    80
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
    81
     * @return an array of MethodDoc objects that represents
06bc494ca11e Initial load
duke
parents:
diff changeset
    82
     *         the serialization methods for this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
    83
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
    84
    MethodDoc[] serializationMethods();
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 the Serializable fields of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
    88
     * <p>
06bc494ca11e Initial load
duke
parents:
diff changeset
    89
     * 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
    90
     * {@code serial} tag<br>
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    91
     * or return a single {@code FieldDoc} for
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    92
     * {@code serialPersistentField} member.
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    93
     * There should be a {@code serialField} tag for
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    94
     * each Serializable field defined by an {@code ObjectStreamField}
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    95
     * array component of {@code serialPersistentField}.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    96
     *
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
    97
     * @return an array of {@code FieldDoc} objects for the Serializable
10
06bc494ca11e Initial load
duke
parents:
diff changeset
    98
     *         fields of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
    99
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   100
     * @see #definesSerializableFields()
06bc494ca11e Initial load
duke
parents:
diff changeset
   101
     * @see SerialFieldTag
06bc494ca11e Initial load
duke
parents:
diff changeset
   102
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   103
    FieldDoc[] serializableFields();
06bc494ca11e Initial load
duke
parents:
diff changeset
   104
06bc494ca11e Initial load
duke
parents:
diff changeset
   105
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   106
     *  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
   107
     *  the special class member {@code serialPersistentFields}.
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   108
     *
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   109
     * @return true if Serializable fields are explicitly defined with
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   110
     *         the special class member {@code serialPersistentFields}.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   111
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   112
     * @see #serializableFields()
06bc494ca11e Initial load
duke
parents:
diff changeset
   113
     * @see SerialFieldTag
06bc494ca11e Initial load
duke
parents:
diff changeset
   114
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   115
    boolean definesSerializableFields();
06bc494ca11e Initial load
duke
parents:
diff changeset
   116
06bc494ca11e Initial load
duke
parents:
diff changeset
   117
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   118
     * Return the superclass of this class.  Return null if this is an
06bc494ca11e Initial load
duke
parents:
diff changeset
   119
     * interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   120
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   121
     * <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
   122
     * The {@code superclassType} method should be used instead.</i>
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   123
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   124
     * @return the ClassDoc for the superclass of this class, null if
06bc494ca11e Initial load
duke
parents:
diff changeset
   125
     *         there is no superclass.
06bc494ca11e Initial load
duke
parents:
diff changeset
   126
     * @see #superclassType
06bc494ca11e Initial load
duke
parents:
diff changeset
   127
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   128
    ClassDoc superclass();
06bc494ca11e Initial load
duke
parents:
diff changeset
   129
06bc494ca11e Initial load
duke
parents:
diff changeset
   130
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   131
     * Return the superclass of this class.  Return null if this is an
06bc494ca11e Initial load
duke
parents:
diff changeset
   132
     * interface.  A superclass is represented by either a
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   133
     * {@code ClassDoc} or a {@code ParametrizedType}.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   134
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   135
     * @return the superclass of this class, or null if there is no superclass.
06bc494ca11e Initial load
duke
parents:
diff changeset
   136
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   137
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   138
    Type superclassType();
06bc494ca11e Initial load
duke
parents:
diff changeset
   139
06bc494ca11e Initial load
duke
parents:
diff changeset
   140
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   141
     * Test whether this class is a subclass of the specified class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   142
     * 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
   143
     * {@code java.lang.Object} (we must keep this unexpected
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   144
     * behavior for compatibility reasons).
06bc494ca11e Initial load
duke
parents:
diff changeset
   145
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   146
     * @param cd the candidate superclass.
06bc494ca11e Initial load
duke
parents:
diff changeset
   147
     * @return true if cd is a superclass of this class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   148
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   149
    boolean subclassOf(ClassDoc cd);
06bc494ca11e Initial load
duke
parents:
diff changeset
   150
06bc494ca11e Initial load
duke
parents:
diff changeset
   151
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   152
     * Return interfaces implemented by this class or interfaces extended
06bc494ca11e Initial load
duke
parents:
diff changeset
   153
     * by this interface. Includes only directly-declared interfaces, not
06bc494ca11e Initial load
duke
parents:
diff changeset
   154
     * inherited interfaces.
06bc494ca11e Initial load
duke
parents:
diff changeset
   155
     * Return an empty array if there are no interfaces.
06bc494ca11e Initial load
duke
parents:
diff changeset
   156
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   157
     * <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
   158
     * The {@code interfaceTypes} method should be used instead.</i>
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   159
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   160
     * @return an array of ClassDoc objects representing the interfaces.
06bc494ca11e Initial load
duke
parents:
diff changeset
   161
     * @see #interfaceTypes
06bc494ca11e Initial load
duke
parents:
diff changeset
   162
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   163
    ClassDoc[] interfaces();
06bc494ca11e Initial load
duke
parents:
diff changeset
   164
06bc494ca11e Initial load
duke
parents:
diff changeset
   165
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   166
     * Return interfaces implemented by this class or interfaces extended
06bc494ca11e Initial load
duke
parents:
diff changeset
   167
     * by this interface. Includes only directly-declared interfaces, not
06bc494ca11e Initial load
duke
parents:
diff changeset
   168
     * inherited interfaces.
06bc494ca11e Initial load
duke
parents:
diff changeset
   169
     * Return an empty array if there are no interfaces.
06bc494ca11e Initial load
duke
parents:
diff changeset
   170
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   171
     * @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
   172
     *         {@code ClassDoc} or a {@code ParametrizedType}.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   173
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   174
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   175
    Type[] interfaceTypes();
06bc494ca11e Initial load
duke
parents:
diff changeset
   176
06bc494ca11e Initial load
duke
parents:
diff changeset
   177
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   178
     * Return the formal type parameters of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   179
     * Return an empty array if there are none.
06bc494ca11e Initial load
duke
parents:
diff changeset
   180
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   181
     * @return the formal type parameters of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   182
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   183
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   184
    TypeVariable[] typeParameters();
06bc494ca11e Initial load
duke
parents:
diff changeset
   185
06bc494ca11e Initial load
duke
parents:
diff changeset
   186
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   187
     * Return the type parameter tags of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   188
     * Return an empty array if there are none.
06bc494ca11e Initial load
duke
parents:
diff changeset
   189
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   190
     * @return the type parameter tags of this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   191
     * @since 1.5
06bc494ca11e Initial load
duke
parents:
diff changeset
   192
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   193
    ParamTag[] typeParamTags();
06bc494ca11e Initial load
duke
parents:
diff changeset
   194
06bc494ca11e Initial load
duke
parents:
diff changeset
   195
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   196
     * Return
06bc494ca11e Initial load
duke
parents:
diff changeset
   197
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   198
     * fields in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   199
     * Excludes enum constants if this is an enum type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   200
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   201
     * @return an array of FieldDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   202
     *         fields in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   203
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   204
    FieldDoc[] fields();
06bc494ca11e Initial load
duke
parents:
diff changeset
   205
06bc494ca11e Initial load
duke
parents:
diff changeset
   206
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   207
     * Return fields in this class or interface, filtered to the specified
06bc494ca11e Initial load
duke
parents:
diff changeset
   208
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">access
06bc494ca11e Initial load
duke
parents:
diff changeset
   209
     * modifier option</a>.
06bc494ca11e Initial load
duke
parents:
diff changeset
   210
     * Excludes enum constants if this is an enum type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   211
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   212
     * @param filter Specify true to filter according to the specified access
06bc494ca11e Initial load
duke
parents:
diff changeset
   213
     *               modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   214
     *               Specify false to include all fields regardless of
06bc494ca11e Initial load
duke
parents:
diff changeset
   215
     *               access modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   216
     * @return       an array of FieldDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   217
     *               fields in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   218
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   219
    FieldDoc[] fields(boolean filter);
06bc494ca11e Initial load
duke
parents:
diff changeset
   220
06bc494ca11e Initial load
duke
parents:
diff changeset
   221
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   222
     * Return the enum constants if this is an enum type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   223
     * Return an empty array if there are no enum constants, or if
06bc494ca11e Initial load
duke
parents:
diff changeset
   224
     * this is not an enum type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   225
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   226
     * @return the enum constants if this is an enum type.
06bc494ca11e Initial load
duke
parents:
diff changeset
   227
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   228
    FieldDoc[] enumConstants();
06bc494ca11e Initial load
duke
parents:
diff changeset
   229
06bc494ca11e Initial load
duke
parents:
diff changeset
   230
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   231
     * Return
06bc494ca11e Initial load
duke
parents:
diff changeset
   232
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   233
     * methods in this class or interface.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   234
     * Same as {@code methods(true)}.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   235
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   236
     * @return an array of MethodDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   237
     *         methods in this class or interface.  Does not include
06bc494ca11e Initial load
duke
parents:
diff changeset
   238
     *         constructors or annotation type elements.
06bc494ca11e Initial load
duke
parents:
diff changeset
   239
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   240
    MethodDoc[] methods();
06bc494ca11e Initial load
duke
parents:
diff changeset
   241
06bc494ca11e Initial load
duke
parents:
diff changeset
   242
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   243
     * Return methods in this class or interface, filtered to the specified
06bc494ca11e Initial load
duke
parents:
diff changeset
   244
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">access
06bc494ca11e Initial load
duke
parents:
diff changeset
   245
     * modifier option</a>.  Does not include constructors or annotation
06bc494ca11e Initial load
duke
parents:
diff changeset
   246
     *          type elements.
06bc494ca11e Initial load
duke
parents:
diff changeset
   247
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   248
     * @param filter Specify true to filter according to the specified access
06bc494ca11e Initial load
duke
parents:
diff changeset
   249
     *               modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   250
     *               Specify false to include all methods regardless of
06bc494ca11e Initial load
duke
parents:
diff changeset
   251
     *               access modifier option.
23136
aa8958a4c8f4 8035877: javadoc classes are missing @return and @param tags
jjg
parents: 14951
diff changeset
   252
     *
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   253
     * @return       an array of MethodDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   254
     *               methods in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   255
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   256
    MethodDoc[] methods(boolean filter);
06bc494ca11e Initial load
duke
parents:
diff changeset
   257
06bc494ca11e Initial load
duke
parents:
diff changeset
   258
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   259
     * Return
06bc494ca11e Initial load
duke
parents:
diff changeset
   260
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   261
     * constructors in this class.  An array containing the default
06bc494ca11e Initial load
duke
parents:
diff changeset
   262
     * no-arg constructor is returned if no other constructors exist.
06bc494ca11e Initial load
duke
parents:
diff changeset
   263
     * Return empty array if this is an interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   264
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   265
     * @return an array of ConstructorDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   266
     *         constructors in this class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   267
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   268
    ConstructorDoc[] constructors();
06bc494ca11e Initial load
duke
parents:
diff changeset
   269
06bc494ca11e Initial load
duke
parents:
diff changeset
   270
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   271
     * Return constructors in this class, filtered to the specified
06bc494ca11e Initial load
duke
parents:
diff changeset
   272
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">access
06bc494ca11e Initial load
duke
parents:
diff changeset
   273
     * modifier option</a>.  Return an array containing the default
06bc494ca11e Initial load
duke
parents:
diff changeset
   274
     * no-arg constructor if no other constructors exist.
06bc494ca11e Initial load
duke
parents:
diff changeset
   275
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   276
     * @param filter Specify true to filter according to the specified access
06bc494ca11e Initial load
duke
parents:
diff changeset
   277
     *               modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   278
     *               Specify false to include all constructors regardless of
06bc494ca11e Initial load
duke
parents:
diff changeset
   279
     *               access modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   280
     * @return       an array of ConstructorDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   281
     *               constructors in this class.
06bc494ca11e Initial load
duke
parents:
diff changeset
   282
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   283
    ConstructorDoc[] constructors(boolean filter);
06bc494ca11e Initial load
duke
parents:
diff changeset
   284
06bc494ca11e Initial load
duke
parents:
diff changeset
   285
06bc494ca11e Initial load
duke
parents:
diff changeset
   286
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   287
     * Return
06bc494ca11e Initial load
duke
parents:
diff changeset
   288
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">included</a>
06bc494ca11e Initial load
duke
parents:
diff changeset
   289
     * nested classes and interfaces within this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   290
     * 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
   291
     * (This method should have been named {@code nestedClasses()},
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   292
     * as inner classes are technically non-static.)  Anonymous and local classes
06bc494ca11e Initial load
duke
parents:
diff changeset
   293
     * or interfaces are not included.
06bc494ca11e Initial load
duke
parents:
diff changeset
   294
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   295
     * @return an array of ClassDoc objects representing the included classes
06bc494ca11e Initial load
duke
parents:
diff changeset
   296
     *         and interfaces defined in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   297
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   298
    ClassDoc[] innerClasses();
06bc494ca11e Initial load
duke
parents:
diff changeset
   299
06bc494ca11e Initial load
duke
parents:
diff changeset
   300
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   301
     * Return nested classes and interfaces within this class or interface
06bc494ca11e Initial load
duke
parents:
diff changeset
   302
     * filtered to the specified
06bc494ca11e Initial load
duke
parents:
diff changeset
   303
     * <a href="{@docRoot}/com/sun/javadoc/package-summary.html#included">access
06bc494ca11e Initial load
duke
parents:
diff changeset
   304
     * modifier option</a>.
06bc494ca11e Initial load
duke
parents:
diff changeset
   305
     * This includes both static and non-static nested classes.
06bc494ca11e Initial load
duke
parents:
diff changeset
   306
     * Anonymous and local classes are not included.
06bc494ca11e Initial load
duke
parents:
diff changeset
   307
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   308
     * @param filter Specify true to filter according to the specified access
06bc494ca11e Initial load
duke
parents:
diff changeset
   309
     *               modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   310
     *               Specify false to include all nested classes regardless of
06bc494ca11e Initial load
duke
parents:
diff changeset
   311
     *               access modifier option.
06bc494ca11e Initial load
duke
parents:
diff changeset
   312
     * @return       a filtered array of ClassDoc objects representing the included
06bc494ca11e Initial load
duke
parents:
diff changeset
   313
     *               classes and interfaces defined in this class or interface.
06bc494ca11e Initial load
duke
parents:
diff changeset
   314
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   315
    ClassDoc[] innerClasses(boolean filter);
06bc494ca11e Initial load
duke
parents:
diff changeset
   316
06bc494ca11e Initial load
duke
parents:
diff changeset
   317
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   318
     * Find the specified class or interface within the context of this class doc.
06bc494ca11e Initial load
duke
parents:
diff changeset
   319
     * Search order: 1) qualified name, 2) nested in this class or interface,
06bc494ca11e Initial load
duke
parents:
diff changeset
   320
     * 3) in this package, 4) in the class imports, 5) in the package imports.
06bc494ca11e Initial load
duke
parents:
diff changeset
   321
     * 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
   322
     * @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
   323
     * @return the ClassDoc if found, null if not found.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   324
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   325
    ClassDoc findClass(String className);
06bc494ca11e Initial load
duke
parents:
diff changeset
   326
06bc494ca11e Initial load
duke
parents:
diff changeset
   327
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   328
     * 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
   329
     * 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
   330
     * <cite>The Java&trade; Language Specification</cite>.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   331
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   332
     * @return an array of ClassDoc representing the imported classes.
06bc494ca11e Initial load
duke
parents:
diff changeset
   333
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   334
     * @deprecated  Import declarations are implementation details that
06bc494ca11e Initial load
duke
parents:
diff changeset
   335
     *          should not be exposed here.  In addition, not all imported
06bc494ca11e Initial load
duke
parents:
diff changeset
   336
     *          classes are imported through single-type-import declarations.
06bc494ca11e Initial load
duke
parents:
diff changeset
   337
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   338
    @Deprecated
06bc494ca11e Initial load
duke
parents:
diff changeset
   339
    ClassDoc[] importedClasses();
06bc494ca11e Initial load
duke
parents:
diff changeset
   340
06bc494ca11e Initial load
duke
parents:
diff changeset
   341
    /**
06bc494ca11e Initial load
duke
parents:
diff changeset
   342
     * 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
   343
     * 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
   344
     * <cite>The Java&trade; Language Specification</cite>.
10
06bc494ca11e Initial load
duke
parents:
diff changeset
   345
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   346
     * @return an array of PackageDoc representing the imported packages.
06bc494ca11e Initial load
duke
parents:
diff changeset
   347
     *
06bc494ca11e Initial load
duke
parents:
diff changeset
   348
     * @deprecated  Import declarations are implementation details that
06bc494ca11e Initial load
duke
parents:
diff changeset
   349
     *          should not be exposed here.  In addition, this method's
06bc494ca11e Initial load
duke
parents:
diff changeset
   350
     *          return type does not allow for all type-import-on-demand
06bc494ca11e Initial load
duke
parents:
diff changeset
   351
     *          declarations to be returned.
06bc494ca11e Initial load
duke
parents:
diff changeset
   352
     */
06bc494ca11e Initial load
duke
parents:
diff changeset
   353
    @Deprecated
06bc494ca11e Initial load
duke
parents:
diff changeset
   354
    PackageDoc[] importedPackages();
06bc494ca11e Initial load
duke
parents:
diff changeset
   355
}