24 */
25
26 package com.sun.source.tree;
27
28 import java.util.List;
29
30 /**
31 * A tree node for an annotated type.
32 *
33 * For example:
34 * <pre>
35 * {@code @}<em>annotationType String</em>
36 * {@code @}<em>annotationType</em> ( <em>arguments</em> ) <em>Date</em>
37 * </pre>
38 *
39 * @see "JSR 308: Annotations on Java Types"
40 *
41 * @author Mahmood Ali
42 * @since 1.8
43 */
44 @jdk.Exported
45 public interface AnnotatedTypeTree extends ExpressionTree {
46 /**
47 * Returns the annotations associated with this type expression.
48 * @return the annotations
49 */
50 List<? extends AnnotationTree> getAnnotations();
51
52 /**
53 * Returns the underlying type with which the annotations are associated.
54 * @return the underlying type
55 */
56 ExpressionTree getUnderlyingType();
57 }
|
24 */
25
26 package com.sun.source.tree;
27
28 import java.util.List;
29
30 /**
31 * A tree node for an annotated type.
32 *
33 * For example:
34 * <pre>
35 * {@code @}<em>annotationType String</em>
36 * {@code @}<em>annotationType</em> ( <em>arguments</em> ) <em>Date</em>
37 * </pre>
38 *
39 * @see "JSR 308: Annotations on Java Types"
40 *
41 * @author Mahmood Ali
42 * @since 1.8
43 */
44 public interface AnnotatedTypeTree extends ExpressionTree {
45 /**
46 * Returns the annotations associated with this type expression.
47 * @return the annotations
48 */
49 List<? extends AnnotationTree> getAnnotations();
50
51 /**
52 * Returns the underlying type with which the annotations are associated.
53 * @return the underlying type
54 */
55 ExpressionTree getUnderlyingType();
56 }
|