equal
deleted
inserted
replaced
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é |
45 * @author Peter von der Ahé |
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 } |