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 } |