langtools/src/jdk.compiler/share/classes/com/sun/source/doctree/AttributeTree.java
author chegar
Sun, 17 Aug 2014 15:52:32 +0100
changeset 25874 83c19f00452c
parent 25287 langtools/src/share/classes/com/sun/source/doctree/AttributeTree.java@d2440361b323
child 34916 16043fc1d90b
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:
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
     1
/*
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
     2
 * Copyright (c) 2011, 2014, 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
import java.util.List;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    29
import javax.lang.model.element.Name;
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    30
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    31
/**
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    32
 * A tree node for an attribute in an HTML element.
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    33
 *
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    34
 * @since 1.8
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    35
 */
20612
4761f3ff7afb 8025913: Rename jdk.Supported to jdk.Exported
darcy
parents: 16303
diff changeset
    36
@jdk.Exported
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    37
public interface AttributeTree extends DocTree {
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    38
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    39
     * The kind of an attribute value.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    40
     */
20612
4761f3ff7afb 8025913: Rename jdk.Supported to jdk.Exported
darcy
parents: 16303
diff changeset
    41
    @jdk.Exported
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    42
    enum ValueKind {
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    43
        /** The attribute value is empty. */
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    44
        EMPTY,
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    45
        /** The attribute value is not enclosed in quotes. */
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    46
        UNQUOTED,
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    47
        /** The attribute value is enclosed in single quotation marks. */
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    48
        SINGLE,
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    49
        /** The attribute value is enclosed in double quotation marks. */
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    50
        DOUBLE
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    51
    }
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    52
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    53
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    54
     * Returns the name of the attribute.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    55
     * @return the name of the attribute
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    56
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    57
    Name getName();
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    58
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    59
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    60
     * Returns the kind of the attribute.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    61
     * @return the kind of the attribute.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    62
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    63
    ValueKind getValueKind();
25287
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    64
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    65
    /**
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    66
     * Returns the value of the attribute, or {@code null} if the kind is EMPTY.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    67
     * @return the value of the attribute.
d2440361b323 8046614: Fill in missing doc comments
jjg
parents: 22163
diff changeset
    68
     */
14541
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    69
    List<? extends DocTree> getValue();
36f9d11fc9aa 7021614: extend com.sun.source API to support parsing javadoc comments
jjg
parents:
diff changeset
    70
}