langtools/src/share/classes/com/sun/source/tree/TypeParameterTree.java
changeset 19651 b1aa46cc2198
parent 16303 b5dca0b42963
child 20612 4761f3ff7afb
equal deleted inserted replaced
19512:07dcf1232608 19651:b1aa46cc2198
    34  * For example:
    34  * For example:
    35  * <pre>
    35  * <pre>
    36  *   <em>name</em>
    36  *   <em>name</em>
    37  *
    37  *
    38  *   <em>name</em> extends <em>bounds</em>
    38  *   <em>name</em> extends <em>bounds</em>
       
    39  *
       
    40  *   <em>annotations</em> <em>name</em>
    39  * </pre>
    41  * </pre>
    40  *
    42  *
    41  * @jls section 4.4
    43  * @jls section 4.4
    42  *
    44  *
    43  * @author Peter von der Ah&eacute;
    45  * @author Peter von der Ah&eacute;
    46  */
    48  */
    47 @jdk.Supported
    49 @jdk.Supported
    48 public interface TypeParameterTree extends Tree {
    50 public interface TypeParameterTree extends Tree {
    49     Name getName();
    51     Name getName();
    50     List<? extends Tree> getBounds();
    52     List<? extends Tree> getBounds();
       
    53 
       
    54     /**
       
    55      * Return annotations on the type parameter declaration.
       
    56      *
       
    57      * Annotations need Target meta-annotations of
       
    58      * {@link java.lang.annotation.ElementType#TYPE_PARAMETER} or
       
    59      * {@link java.lang.annotation.ElementType#TYPE_USE}
       
    60      * to appear in this position.
       
    61      *
       
    62      * @return annotations on the type parameter declaration
       
    63      * @since 1.8
       
    64      */
    51     List<? extends AnnotationTree> getAnnotations();
    65     List<? extends AnnotationTree> getAnnotations();
    52 }
    66 }