src/jdk.compiler/share/classes/com/sun/source/doctree/DocTreeVisitor.java
author rkennke
Fri, 12 Oct 2018 16:25:24 +0200
changeset 52107 0c1e44da019c
parent 48060 532cdc178e42
child 52487 5d1d07b72f15
permissions -rw-r--r--
8212053: A few more missing object equals barriers Reviewed-by: shade, zgu
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     1
/*
44878
9dd9cf7919ff 8179299: Fix HTML 5 errors in java.compiler module
jjg
parents: 42831
diff changeset
     2
 * Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     4
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    10
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    15
 * accompanied this code).
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    16
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    20
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    23
 * questions.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    24
 */
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    25
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    26
package com.sun.source.doctree;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    27
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    28
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    29
/**
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    30
 * A visitor of trees, in the style of the visitor design pattern.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    31
 * Classes implementing this interface are used to operate
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    32
 * on a tree when the kind of tree is unknown at compile time.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    33
 * When a visitor is passed to an tree's {@link DocTree#accept
44878
9dd9cf7919ff 8179299: Fix HTML 5 errors in java.compiler module
jjg
parents: 42831
diff changeset
    34
 * accept} method, the <code>visit<i>Xyz</i></code> method most applicable
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    35
 * to that tree is invoked.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    36
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    37
 * <p> Classes implementing this interface may or may not throw a
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    38
 * {@code NullPointerException} if the additional parameter {@code p}
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    39
 * is {@code null}; see documentation of the implementing class for
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    40
 * details.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    41
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    42
 * <p> <b>WARNING:</b> It is possible that methods will be added to
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    43
 * this interface to accommodate new, currently unknown, doc comment
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    44
 * structures added to future versions of the Java&trade; programming
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    45
 * language.  Therefore, visitor classes directly implementing this
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    46
 * interface may be source incompatible with future versions of the
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    47
 * platform.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    48
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    49
 * @param <R> the return type of this visitor's methods.  Use {@link
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    50
 *            Void} for visitors that do not need to return results.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    51
 * @param <P> the type of the additional parameter to this visitor's
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    52
 *            methods.  Use {@code Void} for visitors that do not need an
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    53
 *            additional parameter.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    54
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    55
 * @since 1.8
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    56
 */
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    57
public interface DocTreeVisitor<R,P> {
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    58
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    59
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    60
     * Visits an AttributeTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    61
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    62
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    63
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    64
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    65
    R visitAttribute(AttributeTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    66
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    67
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    68
     * Visits an AuthorTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    69
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    70
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    71
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    72
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    73
    R visitAuthor(AuthorTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    74
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    75
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    76
     * Visits a CommentTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    77
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    78
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    79
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    80
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    81
    R visitComment(CommentTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    82
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    83
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    84
     * Visits a DeprecatedTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    85
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    86
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    87
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    88
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    89
    R visitDeprecated(DeprecatedTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    90
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    91
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    92
     * Visits a DocCommentTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    93
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    94
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    95
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    96
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    97
    R visitDocComment(DocCommentTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    98
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
    99
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   100
     * Visits a DocRootTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   101
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   102
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   103
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   104
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   105
    R visitDocRoot(DocRootTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   106
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   107
    /**
48028
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   108
     * Visits a DocTypeTree node.
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   109
     *
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   110
     * @implSpec Visits a {@code DocTypeTree} node
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   111
     * by calling {@code visitOther(node, p)}.
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   112
     *
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   113
     * @param node the node being visited
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   114
     * @param p    a parameter value
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   115
     * @return a result value
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   116
     * @since 10
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   117
     */
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   118
    default R visitDocType(DocTypeTree node, P p) {
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   119
        return visitOther(node, p);
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   120
    }
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   121
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   122
    /**
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   123
     * Visits an EndElementTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   124
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   125
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   126
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   127
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   128
    R visitEndElement(EndElementTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   129
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   130
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   131
     * Visits an EntityTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   132
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   133
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   134
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   135
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   136
    R visitEntity(EntityTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   137
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   138
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   139
     * Visits an ErroneousTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   140
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   141
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   142
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   143
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   144
    R visitErroneous(ErroneousTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   145
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   146
    /**
37009
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   147
     * Visits a HiddenTree node.
48060
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   148
     *
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   149
     * @implSpec Visits a {@code HiddenTree} node
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   150
     * by calling {@code visitOther(node, p)}.
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   151
     *
37009
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   152
     * @param node the node being visited
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   153
     * @param p a parameter value
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   154
     * @return a result value
48060
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   155
     *
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   156
     * @since 9
37009
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   157
     */
48060
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   158
    default R visitHidden(HiddenTree node, P p)  {
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   159
        return visitOther(node, p);
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   160
    }
37009
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   161
476d8d615222 8073100: [javadoc] Provide an ability to suppress document generation for specific elements.
ksrini
parents: 34916
diff changeset
   162
    /**
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   163
     * Visits an IdentifierTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   164
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   165
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   166
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   167
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   168
    R visitIdentifier(IdentifierTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   169
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   170
    /**
34567
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   171
     * Visits an IndexTree node.
48060
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   172
     *
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   173
     * @implSpec Visits an {@code IndexTree} node
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   174
     * by calling {@code visitOther(node, p)}.
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   175
     *
34567
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   176
     * @param node the node being visited
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   177
     * @param p a parameter value
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   178
     * @return a result value
48060
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   179
     *
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   180
     * @since 9
34567
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   181
     */
48060
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   182
    default R visitIndex(IndexTree node, P p) {
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   183
        return visitOther(node, p);
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   184
    }
34567
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   185
c74f68484156 8144287: Enhance DocTree API to support @index javadoc tags.
ksrini
parents: 25874
diff changeset
   186
    /**
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   187
     * Visits an InheritDocTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   188
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   189
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   190
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   191
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   192
    R visitInheritDoc(InheritDocTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   193
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   194
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   195
     * Visits a LinkTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   196
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   197
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   198
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   199
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   200
    R visitLink(LinkTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   201
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   202
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   203
     * Visits an LiteralTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   204
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   205
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   206
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   207
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   208
    R visitLiteral(LiteralTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   209
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   210
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   211
     * Visits a ParamTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   212
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   213
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   214
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   215
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   216
    R visitParam(ParamTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   217
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   218
    /**
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 37009
diff changeset
   219
     * Visits a ProvidesTree node.
48060
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   220
     *
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   221
     * @implSpec Visits a {@code ProvidesTree} node
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   222
     * by calling {@code visitOther(node, p)}.
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   223
     *
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 37009
diff changeset
   224
     * @param node the node being visited
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 37009
diff changeset
   225
     * @param p a parameter value
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 37009
diff changeset
   226
     * @return a result value
48060
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   227
     *
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   228
     * @since 9
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 37009
diff changeset
   229
     */
48060
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   230
    default R visitProvides(ProvidesTree node, P p) {
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   231
        return visitOther(node, p);
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   232
    }
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 37009
diff changeset
   233
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 37009
diff changeset
   234
    /**
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   235
     * Visits a ReferenceTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   236
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   237
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   238
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   239
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   240
    R visitReference(ReferenceTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   241
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   242
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   243
     * Visits a ReturnTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   244
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   245
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   246
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   247
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   248
    R visitReturn(ReturnTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   249
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   250
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   251
     * Visits a SeeTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   252
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   253
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   254
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   255
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   256
    R visitSee(SeeTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   257
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   258
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   259
     * Visits a SerialTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   260
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   261
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   262
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   263
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   264
    R visitSerial(SerialTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   265
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   266
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   267
     * Visits a SerialDataTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   268
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   269
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   270
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   271
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   272
    R visitSerialData(SerialDataTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   273
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   274
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   275
     * Visits a SerialFieldTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   276
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   277
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   278
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   279
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   280
    R visitSerialField(SerialFieldTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   281
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   282
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   283
     * Visits a SinceTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   284
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   285
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   286
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   287
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   288
    R visitSince(SinceTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   289
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   290
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   291
     * Visits a StartElementTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   292
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   293
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   294
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   295
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   296
    R visitStartElement(StartElementTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   297
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   298
    /**
46184
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents: 44878
diff changeset
   299
     * Visits a SummaryTree node.
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents: 44878
diff changeset
   300
     *
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents: 44878
diff changeset
   301
     * @implSpec Visits a {@code SummaryTree} node
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents: 44878
diff changeset
   302
     * by calling {@code visitOther(node, p)}.
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents: 44878
diff changeset
   303
     *
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents: 44878
diff changeset
   304
     * @param node the node being visited
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents: 44878
diff changeset
   305
     * @param p a parameter value
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents: 44878
diff changeset
   306
     * @return a result value
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents: 44878
diff changeset
   307
     * @since 10
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents: 44878
diff changeset
   308
     */
48028
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   309
    default R visitSummary(SummaryTree node, P p) {
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   310
        return visitOther(node, p);
9e022f580a9d 8190552: Augment the Compiler API tree with APIs to represent HTML content
ksrini
parents: 47216
diff changeset
   311
    }
46184
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents: 44878
diff changeset
   312
f1325703ea85 8173425: Javadoc needs a new tag to specify the summary.
ksrini
parents: 44878
diff changeset
   313
    /**
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   314
     * Visits a TextTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   315
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   316
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   317
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   318
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   319
    R visitText(TextTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   320
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   321
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   322
     * Visits a ThrowsTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   323
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   324
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   325
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   326
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   327
    R visitThrows(ThrowsTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   328
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   329
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   330
     * Visits an UnknownBlockTagTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   331
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   332
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   333
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   334
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   335
    R visitUnknownBlockTag(UnknownBlockTagTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   336
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   337
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   338
     * Visits an UnknownInlineTagTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   339
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   340
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   341
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   342
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   343
    R visitUnknownInlineTag(UnknownInlineTagTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   344
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   345
    /**
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 37009
diff changeset
   346
     * Visits a UsesTree node.
48060
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   347
     *
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   348
     * @implSpec Visits a {@code UsesTree} node
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   349
     * by calling {@code visitOther(node, p)}.
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   350
     *
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 37009
diff changeset
   351
     * @param node the node being visited
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 37009
diff changeset
   352
     * @param p a parameter value
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 37009
diff changeset
   353
     * @return a result value
48060
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   354
     *
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   355
     * @since 9
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 37009
diff changeset
   356
     */
48060
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   357
    default R visitUses(UsesTree node, P p) {
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   358
        return visitOther(node, p);
532cdc178e42 8184683: Add @since and default methods of Compiler Tree API methods
ksrini
parents: 48028
diff changeset
   359
    }
42831
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 37009
diff changeset
   360
feff6f296019 8160196: Module summary page should display information based on "api" or "detail" mode.
bpatel
parents: 37009
diff changeset
   361
    /**
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   362
     * Visits a ValueTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   363
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   364
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   365
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   366
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   367
    R visitValue(ValueTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   368
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   369
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   370
     * Visits a VersionTreeTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   371
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   372
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   373
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   374
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   375
    R visitVersion(VersionTree node, P p);
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   376
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   377
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   378
     * Visits an unknown type of DocTree node.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   379
     * This can occur if the set of tags evolves and new kinds
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   380
     * of nodes are added to the {@code DocTree} hierarchy.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   381
     * @param node the node being visited
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   382
     * @param p a parameter value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   383
     * @return a result value
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 20612
diff changeset
   384
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   385
    R visitOther(DocTree node, P p);
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
   386
}