src/share/classes/com/sun/source/tree/TypeParameterTree.java

changeset 1969
7de231613e4a
parent 1590
011cf7e0a148
child 2083
379c04c090cf
     1.1 --- a/src/share/classes/com/sun/source/tree/TypeParameterTree.java	Tue Aug 20 15:12:16 2013 -0700
     1.2 +++ b/src/share/classes/com/sun/source/tree/TypeParameterTree.java	Wed Aug 21 16:13:50 2013 -0700
     1.3 @@ -36,6 +36,8 @@
     1.4   *   <em>name</em>
     1.5   *
     1.6   *   <em>name</em> extends <em>bounds</em>
     1.7 + *
     1.8 + *   <em>annotations</em> <em>name</em>
     1.9   * </pre>
    1.10   *
    1.11   * @jls section 4.4
    1.12 @@ -48,5 +50,17 @@
    1.13  public interface TypeParameterTree extends Tree {
    1.14      Name getName();
    1.15      List<? extends Tree> getBounds();
    1.16 +
    1.17 +    /**
    1.18 +     * Return annotations on the type parameter declaration.
    1.19 +     *
    1.20 +     * Annotations need Target meta-annotations of
    1.21 +     * {@link java.lang.annotation.ElementType#TYPE_PARAMETER} or
    1.22 +     * {@link java.lang.annotation.ElementType#TYPE_USE}
    1.23 +     * to appear in this position.
    1.24 +     *
    1.25 +     * @return annotations on the type parameter declaration
    1.26 +     * @since 1.8
    1.27 +     */
    1.28      List<? extends AnnotationTree> getAnnotations();
    1.29  }

mercurial