1 /* |
1 /* |
2 * Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
140 * @since 1.5 |
140 * @since 1.5 |
141 */ |
141 */ |
142 WildcardType asWildcardType(); |
142 WildcardType asWildcardType(); |
143 |
143 |
144 /** |
144 /** |
|
145 * Returns this type as a <code>AnnotatedType</code> if it represents |
|
146 * an annotated type. |
|
147 * |
|
148 * @return a <code>AnnotatedType</code> if the type if an annotated type, |
|
149 * or null if it is not |
|
150 * @since 1.8 |
|
151 */ |
|
152 AnnotatedType asAnnotatedType(); |
|
153 |
|
154 /** |
145 * Return this type as an <code>AnnotationTypeDoc</code> if it represents |
155 * Return this type as an <code>AnnotationTypeDoc</code> if it represents |
146 * an annotation type. Array dimensions are ignored. |
156 * an annotation type. Array dimensions are ignored. |
147 * |
157 * |
148 * @return an <code>AnnotationTypeDoc</code> if the type is an annotation |
158 * @return an <code>AnnotationTypeDoc</code> if the type is an annotation |
149 * type, or null if it is not. |
159 * type, or null if it is not. |