1.1 --- a/src/share/classes/com/sun/javadoc/Type.java Wed Jan 23 20:57:40 2013 +0000 1.2 +++ b/src/share/classes/com/sun/javadoc/Type.java Wed Jan 23 13:27:24 2013 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 1997, 2006, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -142,6 +142,16 @@ 1.11 WildcardType asWildcardType(); 1.12 1.13 /** 1.14 + * Returns this type as a <code>AnnotatedType</code> if it represents 1.15 + * an annotated type. 1.16 + * 1.17 + * @return a <code>AnnotatedType</code> if the type if an annotated type, 1.18 + * or null if it is not 1.19 + * @since 1.8 1.20 + */ 1.21 + AnnotatedType asAnnotatedType(); 1.22 + 1.23 + /** 1.24 * Return this type as an <code>AnnotationTypeDoc</code> if it represents 1.25 * an annotation type. Array dimensions are ignored. 1.26 *